@extends('layouts.app') @section('title', 'Jegan Crackers – Home') @section('content')
@if($banners->count())
count() > 1) x-init="setInterval(() => active = (active + 1) % {{ $banners->count() }}, 4500)" @endif> @foreach($banners as $i => $banner) {{ $banner->title }}

{{ $banner->title }}

@endforeach @if($banners->count() > 1)
@foreach($banners as $i => $banner) @endforeach
@endif
@endif

Shop by Category

@foreach($categories as $category)
🎆
{{ $category->name }}
@endforeach

Featured Products

@foreach($featured as $product) @include('customer.products._card', ['product' => $product]) @endforeach

Best Sellers

@foreach($bestSellers as $product) @include('customer.products._card', ['product' => $product]) @endforeach
@endsection