@extends('layouts.front') @section('content')

Browse Categories

    @foreach($categories as $category)
  • {{$category->name}} @php $children = TCG\Voyager\Models\Category::where('parent_id', $category->id)->get(); @endphp @if($children->isNotEmpty())
    @foreach ($children as $child)

    {{$child->name}}

    @php $grandChild = TCG\Voyager\Models\Category::where('parent_id', $child->id)->get(); @endphp @if($grandChild->isNotEmpty()) @endif
    @endforeach
    @endif
  • @endforeach
@endsection