index.blade.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. @extends('layouts.idara.panel')
  2. @section('content')
  3. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js" integrity="sha512-STof4xm1wgkfm7heWqFJVn58Hm3EtS31XFaagaa8VMReCXAkQnJZ+jEy8PCC/iT18dFy95WcExNHFTqLyp72eQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  4. <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js" integrity="sha512-F636MAkMAhtTplahL9F6KmTfxTmYcAcjcCkyu0f0voT3N/6vzAuJ4Num55a0gEJ+hRLHhdz3vDvZpf6kqgEa5w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  5. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" integrity="sha512-hievggED+/IcfxhYRSr4Auo1jbiOczpqpLZwfTVL/6hFACdbI3WQ8S9NCX50gsM9QVE+zLk/8wb9TlgriFbX+Q==" crossorigin="anonymous" referrerpolicy="no-referrer" />
  6. @include('backend.partials.import')
  7. <section style="margin-bottom: 44px;">
  8. <div class="card">
  9. <div class="card-header">
  10. Demande de devis
  11. </div>
  12. <div class="card-body">
  13. <a href="<?php echo $_SERVER["REQUEST_URI"]; ?>" class="btn btn-secondary"><i class="fa-solid fa-arrows-rotate"></i>Actualiser</a>
  14. </div>
  15. </div>
  16. </section>
  17. <section>
  18. <div class="card">
  19. <div class="card-header">
  20. Demande de Devis
  21. </div>
  22. <div class="card-body">
  23. <div class="table-responsive">
  24. <table class="table table-bordered">
  25. <thead>
  26. <tr>
  27. <th scope="col">Objet</th>
  28. <th scope="col">Nom</th>
  29. <th scope="col">Date</th>
  30. <th scope="col">Action</th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. @foreach($devis as $devi)
  35. <tr>
  36. <th scope="row">
  37. {{$devi->objet}}
  38. </th>
  39. <th>
  40. {{$devi->nom}}
  41. </th>
  42. <th>
  43. {{$devi->created_at}}
  44. </th>
  45. <th scope="row" class="buttonOffOut">
  46. <div>
  47. <form method="POST" action="{{ url('/delete/demande/'. $devi->id) }}">
  48. @csrf
  49. <a class="btn btn-primary" href="{{route('demande.show',['id'=>$devi->id])}}">Details</a>
  50. <input name="_method" type="hidden" value="DELETE">
  51. <Tooltip title="Supprimer"> <button type="submit" class="btn btn-xs btn-danger btn-flat show_confirm" data-toggle="tooltip" ref="{{ url('/delete/demande/'.$devi->id) }}">delete</button></Tooltip>
  52. </form>
  53. </div>
  54. </th>
  55. </tr>
  56. @endforeach
  57. </tbody>
  58. </table>
  59. {!! $devis->links() !!}
  60. </div>
  61. </div>
  62. </div>
  63. </section>
  64. @endsection