@php $hasProducts = $categories->filter(fn($cat) => $cat->products->isNotEmpty())->isNotEmpty(); @endphp @if ($hasProducts) @foreach ($categories as $category) @if ($category->products->isNotEmpty())

{{ ucfirst($category->name) }}

@foreach ($category->products as $product)
{{ $product->product_alt ?? $product->name }}

{{ $product->name }}

${{ number_format($product->price, 2) }}
@endforeach
@endif @endforeach @else

No products found based on selected filters.

@endif