@extends('layouts.app', ['title' => __('categories')]) @section('admin_title') {{ __('Item Category Manager') }} @endsection @section('content') @include('category.owner.partials.modals')

Item Category Manager

@include('partials.flash')
@forelse($categories ?? [] as $category) {{-- LEVEL 1: Main Category --}}
▼ {{ $category->name ?? 'N/A' }} @if($category->type) {{ $category->type->name }} @endif
{{ $category->items_count ?? 0 }} Products
@foreach($category->forsubcategories ?? [] as $sub) {{-- LEVEL 2: Sub Category --}}
▼ {{ $sub->name ?? 'N/A' }}
{{ $sub->items_count ?? 0 }} Products
@foreach($sub->subsubCategories ?? [] as $subsub) {{-- LEVEL 3: Sub-Sub Category --}}
{{ $subsub->name ?? 'N/A' }}
{{ $subsub->items_count ?? 0 }} Products
@endforeach
@endforeach
@empty
No categories found.
@endforelse
@include('layouts.footers.auth') {{-- Hidden Delete Form --}} @endsection @section('js') @endsection