@php [ $categories, $brands, $tags, $rand, $categoriesRequest, $urlCurrent, $categoryId, $maxFilterPrice, ] = EcommerceHelper::dataForFilter($category ?? null); @endphp
{{-- Main Toolbar Row --}}
{{-- Search Box - Full Width --}} {{-- Category Filter --}} @if ($categories->isNotEmpty())
@endif {{-- Brand Filter --}} @if ($brands->isNotEmpty())
@endif {{-- Right Side: Sort + View Toggle --}}
{{-- Sort Info Box --}}
@if ($sortParams = EcommerceHelper::getSortParams()) @php $sortBy = request()->input('sort-by'); if ($sortBy && Arr::has($sortParams, $sortBy)) { $sortByLabel = Arr::get($sortParams, $sortBy); } else { $sortByLabel = Arr::first($sortParams); $sortBy = array_key_first($sortParams); } @endphp
{{ __('Sort by') }}:
@endif
{{-- View Toggle Buttons --}}
{{-- Product Count --}}
{{ $products->total() }} {{ __('product(s) found') }}