@include('layouts.header')
Home
All Categories
Explore Categories
Browse every product category, sub-category and style available on Uthhan.
{{ count($categories) }} main categories
@forelse($categories as $cat) @php $subCategories = $cat['sub_categories'] ?? []; $subCount = count($subCategories); @endphp
{{-- Main category row --}}
{{ strtoupper(mb_substr($cat['name'], 0, 1)) }}
{{ $cat['name'] }}
{{ $subCount }} sub-categories
View all in {{ $cat['name'] }} →
{{-- Sub + sub-sub categories --}} @if($subCount)
@foreach($subCategories as $sub) @php $subName = $sub['name']; $subSub = $sub['sub_sub_cats'] ?? collect(); @endphp
@if($subName)
{{ $subName }}
@endif @if(!empty($subSub) && count($subSub))
@foreach($subSub as $ssc) @if($ssc)
{{ $ssc }}
@endif @endforeach
@endif
@endforeach
@endif
@empty
No categories found.
@endforelse
@include('layouts.footer')