@extends('frontend.layouts.template-base') @section('meta_tags') @include('frontend.layouts.meta-tags', ['title' => $catalogTitle, 'page' => 'category']) @endsection @section('content') {{-- Mobile filter offcanvas --}}
Filters
@include('frontend.components.category-filters')
{{-- ── Horizontal tab strip ───────────────────────────────────────────── No group selected → All + every group Group selected → ← All + subgroups of that group (if any) ──────────────────────────────────────────────────────────────────────── --}} {{-- ── Mobile filter bar ── --}}
@foreach ($catalogFilters['quantity'] as $quantity) {{ $quantity }} @endforeach @if (in_array('discounted', $catalogFilters['offer'], true)) On Discount @endif
{{-- ── Left sidebar ──────────────────────────────────────────────────── No group selected → lists all groups Group selected → lists subgroups of that group (or just back link) ──────────────────────────────────────────────────────────────────────── --}} {{-- ── Main product area ── --}}
{{-- Breadcrumb above the title --}}

{{ $catalogTitle }} @if ($catalogFilters['subgroup_id']) @php $activeSg = $catalogSubgroups->firstWhere('id', $catalogFilters['subgroup_id']); @endphp @if ($activeSg) / {{ $activeSg->name }} @endif @endif

Total Items-({{ $catalogProducts->total() }})
@include('frontend.components.catalog-products-partial')
{{-- Loading spinner (hidden by default) --}}
@endsection @section('scripts') @endsection