{{-- Search and Filters --}}
All Categories @foreach ($categories as $category) {{ $category->name }} @endforeach All Brands @foreach ($brands as $brand) {{ $brand->name }} @endforeach
{{-- Product Results --}} @if ($products->count() > 0)
@foreach ($products as $product)
{{-- Product Image --}}
@if ($product->productImages->first()) {{ $product->name }} @else
@endif
{{-- Product Details --}}
{{ $product->brand?->name ?? 'Unknown Brand' }}
{{ $product->name }}
{{ $product->category?->name ?? 'N/A' }} @if($product->subcategory) {{ $product->subcategory->name }} @endif
{{-- Select Button / Checkmark --}}
@if ($selectedProductId === $product->id)
@else @endif
@endforeach
{{-- Pagination --}}
{{ $products->links() }}
@else {{-- Empty State --}}

No products found

Try adjusting your search or filters

@endif