@php $categoryCount = $categories->count(); $subcategoryCount = $categories->sum(fn ($category) => $category->children->count()); @endphp
Explore every top-level category from one clean directory. Header, footer, spacing, and navigation now stay aligned with the rest of the site.
Root categories
{{ number_format($categoryCount, 0, '.', ',') }}
Only top-level sections are shown first for a simpler directory.
Subcategories
{{ number_format($subcategoryCount, 0, '.', ',') }}
Each card previews its most relevant child sections before you drill in.
A single directory view with the same spacing and chrome used across the frontend.
{{ number_format($categoryCount, 0, '.', ',') }} categories
{{ $childNames !== '' ? $childNames : 'Open this category to browse available listings and subcategories.' }} @if($extraChildCount > 0) +{{ $extraChildCount }} more @endif