index.blade.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. @extends('layouts.front.app')
  2. @section('og')
  3. <meta property="og:type" content="home"/>
  4. <meta property="og:title" content="{{ config('app.name') }}"/>
  5. <meta property="og:description" content="{{ config('app.name') }}"/>
  6. @endsection
  7. @section('content')
  8. @include('layouts.front.home-slider')
  9. @if($cat1->products->isNotEmpty())
  10. <section class="new-product t100 home">
  11. <div class="container">
  12. <div class="section-title b50">
  13. <h2>{{ $cat1->name }}</h2>
  14. </div>
  15. @include('front.products.product-list', ['products' => $cat1->products->where('status', 1)])
  16. <div id="browse-all-btn"> <a class="btn btn-default browse-all-btn" href="{{ route('front.category.slug', $cat1->slug) }}" role="button">browse all items</a></div>
  17. </div>
  18. </section>
  19. @endif
  20. <hr>
  21. @if($cat2->products->isNotEmpty())
  22. <div class="container">
  23. <div class="section-title b100">
  24. <h2>{{ $cat2->name }}</h2>
  25. </div>
  26. @include('front.products.product-list', ['products' => $cat2->products->where('status', 1)])
  27. <div id="browse-all-btn"> <a class="btn btn-default browse-all-btn" href="{{ route('front.category.slug', $cat2->slug) }}" role="button">browse all items</a></div>
  28. </div>
  29. @endif
  30. <hr />
  31. @include('mailchimp::mailchimp')
  32. @endsection