@extends('layouts.store')
@section('content')
@php
$currency = $s->currency_code ?? '$';
$total = $products->total();
$hasFilters = filled($q ?? null) || filled($cat ?? null) || filled($collection ?? null) || filled($min ?? null) || filled($max ?? null);
@endphp
{{-- ===== Top bar ===== --}}
{{ __('messages.Shop') }}
{{ __('messages.Shop') }}
{{ trans_choice('messages.products', $total, ['count' => $total]) }}
@if($hasFilters) ยท {{ __('messages.FiltersApplied') }}@endif
{{-- ===== Sidebar filters (desktop) ===== --}}
{{-- ===== Main content ===== --}}
@include('store.partials.shop-product-grid', [
's' => $s,
'products' => $products,
'categories' => $categories,
'collections' => $collections,
'q' => $q,
'cat' => $cat,
'collection' => $collection,
'min' => $min,
'max' => $max,
'sort' => $sort,
'currency' => $currency,
])
{{-- ===== Drawer Filters (mobile) ===== --}}
@include('store.partials.shop-modals-scripts', ['currency' => $currency])
@endsection