search.blade.php 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. @extends('frontend.layouts.navBar')
  2. @section('content')
  3. <div class="page">
  4. <section class="breadcrumbs-custom">
  5. <div class="parallax-container" data-parallax-img="{{asset('frontend/images/bg-shop.jpg')}}">
  6. <div class="breadcrumbs-custom-body parallax-content context-dark">
  7. <div class="container">
  8. <h2 class="breadcrumbs-custom-title">Shop</h2>
  9. </div>
  10. </div>
  11. </div>
  12. <div class="breadcrumbs-custom-footer">
  13. <div class="container">
  14. @if (request()->input())
  15. <h6>{{$produits->total()}} résultat(s) pour la recherche "{{request()->q}}"
  16. @endif
  17. </div>
  18. </div>
  19. </section>
  20. <!-- Section Shop-->
  21. <section class="section section-xxl bg-default text-md-left">
  22. <div class="container">
  23. <div class="row row-50">
  24. <div class="col-lg-4 col-xl-3">
  25. <div class="aside row row-30 row-md-50 justify-content-md-between">
  26. <div class="aside-item col-sm-6 col-md-5 col-lg-12">
  27. <h6 class="aside-title">Categories</h6>
  28. <ul class="list-shop-filter">
  29. @foreach($categories as $categorie)
  30. <li>
  31. <label class="checkbox-inline">
  32. <input name="input-group-radio" value="checkbox-1" type="checkbox"> {{$categorie->nom}}<a>
  33. </label><span class="list-shop-filter-number">({{ $categorie->produits->count() }})</span>
  34. </li>
  35. @endforeach
  36. </ul>
  37. <!-- RD Search Form-->
  38. <form class="rd-search form-search" action="search-results.html" method="GET">
  39. <div class="form-wrap">
  40. <input class="form-input" id="search-form" type="text" name="s" autocomplete="off">
  41. <label class="form-label" for="search-form">Search the shop...</label>
  42. <button class="button-search fl-bigmug-line-search74" type="submit"></button>
  43. </div>
  44. </form>
  45. </div>
  46. </div>
  47. </div>
  48. <div class="col-lg-8 col-xl-9">
  49. <div class="row row-30 row-lg-50">
  50. @foreach ($produits as $produit)
  51. <div class="col-sm-6 col-md-4 col-lg-6 col-xl-4">
  52. <!-- Product-->
  53. <article class="product">
  54. <div class="product-body">
  55. <div class="product-figure"><img src="{{ asset('storage/image/'.$produit->image) }}" alt="" width="220" height="160"/>
  56. </div>
  57. <h5 class="transform-none product-title"><a href="single-product.html">{{$produit->nom}}</a></h5>
  58. {{-- <div class="product-price-wrap">
  59. </div> --}}
  60. </div>
  61. {{-- <span class=""></span> --}}
  62. <div class="product-button-wrap mt-4">
  63. <div class="product-button"><a class="button button-secondary button-zakaria fl-bigmug-line-search74" href="single-product.html"></a></div>
  64. <div class="product-button"><a class="button button-primary button-zakaria fl-bigmug-line-shopping202" href="cart-page.html"></a></div>
  65. </div>
  66. </article>
  67. </div>
  68. @endforeach
  69. </div>
  70. <div class="pagination-wrap">
  71. <!-- Bootstrap Pagination-->
  72. {!! $produits->links()!!}
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </section>
  78. </div>
  79. @endsection