@php $categoryCount = $categories->count(); @endphp

All categories

A single directory view with the same spacing and chrome used across the frontend.

{{ number_format($categoryCount, 0, '.', ',') }} categories

@foreach($categories as $category) @php $childNames = $category->children ->take(3) ->pluck('name') ->filter() ->implode(' ยท '); $extraChildCount = max($category->children->count() - 3, 0); $iconUrl = $category->iconUrl(); $iconLabel = strtoupper(\Illuminate\Support\Str::substr($category->name, 0, 1)); @endphp
@if($iconUrl) {{ $category->name }} @else {{ $iconLabel }} @endif {{ number_format($category->children->count(), 0, '.', ',') }} subcategories

{{ $category->name }}

{{ $childNames !== '' ? $childNames : 'Open this category to browse available listings and subcategories.' }} @if($extraChildCount > 0) +{{ $extraChildCount }} more @endif

Explore category
@endforeach