• Home
  • @foreach(App\Models\Type::latest()->where('is_active',1)->limit(5)->get() as $type)
  • {{ $type->title }}
  • @endforeach @foreach($cats as $cat) @php $hasSub = $cat->sub_categories->count(); @endphp
  • {{ $cat->name }} @if($hasSub)
      @foreach($cat->sub_categories as $sub) @php $hasChild = $sub->sub_categories->count(); @endphp
    • {{ $sub->name }} @if($hasChild)
        @foreach($sub->sub_categories as $child)
      • {{ $child->name }}
      • @endforeach
      @endif
    • @endforeach
    @endif
  • @endforeach