produit.blade.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. @extends('frontend.layouts.navBar')
  2. @section('content')
  3. <style>
  4. .section.produit {
  5. padding-top: 0;
  6. }
  7. .container.produit {
  8. max-width: 1659px;
  9. margin-top: 96px;
  10. margin-bottom: 96px;
  11. }
  12. </style>
  13. <div class="page">
  14. <section class="breadcrumbs-custom">
  15. <div class="parallax-container" data-parallax-img="{{ asset('frontend/images/bg-shop.jpg') }}">
  16. <div class="breadcrumbs-custom-body parallax-content context-dark">
  17. <div class="container">
  18. <h2 class="breadcrumbs-custom-title">Shop</h2>
  19. </div>
  20. </div>
  21. </div>
  22. <div class="breadcrumbs-custom-footer">
  23. <div class="container">
  24. <ul class="breadcrumbs-custom-path">
  25. <li><a href="/">Accueil</a></li>
  26. <li class="active">Produit</li>
  27. </ul>
  28. </div>
  29. </div>
  30. </section>
  31. <!-- Section Shop-->
  32. <section class="section produit section-xxl bg-default text-md-left">
  33. <div class="container produit">
  34. <div class="row row-50">
  35. <!-- RD Search Form-->
  36. <div class="col-lg-4 col-xl-3">
  37. <div class="aside row row-30 row-md-50 justify-content-md-between">
  38. <div class="aside-item col-sm-6 col-md-5 col-lg-12">
  39. <h6 class="aside-title">Categories</h6>
  40. <ul class="list-shop-filter">
  41. @foreach ($categories as $categorie)
  42. <li>
  43. <label class="checkbox-inline">
  44. <a href="{{ route('produits.index', ['categorieId' => $categorie]) }}"
  45. style=" color: #464c52;">{{ $categorie->nom }}</a>
  46. </label><span
  47. class="list-shop-filter-number">({{ $categorie->produits->count() }})</span>
  48. </li>
  49. @endforeach
  50. </ul>
  51. <!-- RD Search Form-->
  52. <form class="rd-search form-search" action="{{ route('produits.search') }}" method="GET">
  53. <div class="form-wrap">
  54. <input class="form-input" id="search-form" type="text" name="q"
  55. autocomplete="off">
  56. <label class="form-label" for="search-form">Recherche...</label>
  57. <button class="button-search fl-bigmug-line-search74" type="submit"></button>
  58. </div>
  59. </form>
  60. </div>
  61. </div>
  62. </div>
  63. <div class="col-lg-8 col-xl-9">
  64. @if ($category)
  65. {{ $category->nom }}
  66. @endif
  67. <div class="row row-30 row-lg-50">
  68. @foreach ($produits as $produit)
  69. <div class="col-sm-6 col-md-4 col-lg-6 col-xl-4" >
  70. <!-- Product-->
  71. <article class="product">
  72. <div class="product-body">
  73. <div class="product-figure"><img
  74. src="{{ asset('storage/image/' . $produit->image) }}" alt=""
  75. width="220" height="160" />
  76. </div>
  77. <h5 class="transform-none product-title"><a
  78. href="{{ route('produit.show', ['id' => $produit]) }}">{{ $produit->nom }}</a>
  79. </h5>
  80. @if ($produit->promotion)
  81. @foreach ($promotions as $promotion)
  82. <span
  83. class="product-badge product-badge-sale">{{ $promotion->remise }}</span>
  84. @endforeach
  85. @endif
  86. </div>
  87. <div class="product-button-wrap mt-4">
  88. <div class="product-button"><a class="button button-secondary button-zakaria "
  89. href="{{ route('produit.show', ['id' => $produit]) }}"><i
  90. class="fa-solid fa-plus"
  91. style="color: grey; text-align:center"></i></a></div>
  92. </div>
  93. </article>
  94. </div>
  95. @endforeach
  96. </div>
  97. <div class="pagination-wrap">
  98. <!-- Bootstrap Pagination-->
  99. {!! $produits->links() !!}
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </section>
  105. </div>
  106. @endsection