@extends('frontend.layouts.app') @section('title', 'Products - ShopNow') @section('content')
Filters
@if(request('keyword')) @endif
@foreach($categories as $cat)
id ? 'checked' : '' }} onchange="document.getElementById('filterForm').submit()">
@endforeach @if(request('category_id')) Clear @endif
@if($brands->count() > 0)
@foreach($brands as $brand)
id ? 'checked' : '' }} onchange="document.getElementById('filterForm').submit()">
@endforeach @if(request('brand_id')) Clear @endif
@endif
@if(request()->hasAny(['category_id','brand_id','type','keyword'])) Reset All Filters @endif

{{ $products->total() }} products found

@if($products->count() > 0)
@foreach($products as $product) @include('frontend.partials.product-card', compact('product')) @endforeach
{{ $products->appends(request()->all())->links() }}
@else

No products found

Browse All Products
@endif
@endsection