Total Categories

{{ $this->getTotalCategories() }}

Active Categories

{{ $this->getActiveCategories() }}

Root Categories

{{ $this->getRootCategories() }}

Category Hierarchy

Complete category tree structure with parent-child relationships

@foreach($this->getCategoryTree() as $rootCategory) @php $treeArray = $this->buildTreeArray($rootCategory); @endphp @foreach($treeArray as $item)
@if($item['level'] > 0) @else @endif {{ \App\Models\Category::find($item['id'])->name }} {{ $item['status'] === 'active' ? '✓ Active' : '✗ Inactive' }} @if($item['has_children']) ({{ \App\Models\Category::find($item['id'])->children->count() }} {{ Str::plural('child', \App\Models\Category::find($item['id'])->children->count()) }}) @endif #{{ $item['id'] }}
@endforeach @if(!$loop->last)
@endif @endforeach @if($this->getCategoryTree()->isEmpty())

No categories

Get started by creating a new category.

@endif

💡 Click inside the text area to select all, then press Ctrl+C (Cmd+C on Mac) to copy

Legend

Root Category (no parent)
Child Category (has parent)
✓ Active Category is active
✗ Inactive Category is inactive