@php $currency = $currency ?? ($s->currency_code ?? '$'); $hasFilters = filled($q ?? null) || filled($cat ?? null) || filled($collection ?? null) || filled($min ?? null) || filled($max ?? null); @endphp {{-- Applied filter chips --}} @if($hasFilters)
@if(filled($q)) "{{ $q }}" @endif @if(filled($cat)) @php $catName = optional($categories->firstWhere('id', $cat))->name ?? $cat; @endphp {{ $catName }} @endif @if(filled($collection)) @php $coObj = $collections->first(fn($c) => (string)$c->slug === (string)$collection || (string)$c->id === (string)$collection); $coName = $coObj->title ?? $collection; @endphp {{ $coName }} @endif @if(filled($min)) {{ __('messages.Min') }}: {{ $currency }}{{ number_format((float)$min, 2) }} @endif @if(filled($max)) {{ __('messages.Max') }}: {{ $currency }}{{ number_format((float)$max, 2, '.', ',') }} @endif {{ __('messages.ResetAll') }}
@endif @if($products->count())
@foreach($products as $p) @include('store.partials.product-card', ['p' => $p, 'currency' => $currency]) @endforeach
@php $products->appends(request()->except('page')); @endphp @if ($products->hasPages())
@if($products->total() > 0)
{{ __('messages.Showing') }} {{ $products->firstItem() }}{{ $products->lastItem() }} {{ __('messages.of') }} {{ $products->total() }} {{ __('messages.productsLower') }}
@endif
@endif @else

{{ __('messages.NoProductsFound') }}

{{ __('messages.TryAdjustingFiltersOrBrowseAll') }}

{{ __('messages.ClearFilters') }}
@endif