@extends('admin.layouts.app') @section('title', $label . 's') @section('content')
{{-- Page Header --}}
Global Directory Taxonomy

{{ $label }}s {{ $rows->total() }} Categories

Taxonomy hierarchy: Root categories and child subcategories. Deletion is automatically guarded if businesses reference a category.

{{-- Sub Navigation Tabs for Taxonomy --}}
Service Categories Product Categories Search Keywords & Taxonomy Back to All Listings
{{-- Alerts --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- Filter Toolbar --}}
{{-- Search Input --}}
{{-- Parent Level Filter --}}
{{-- Status Filter --}}
{{-- Submit & Clear --}}
@if(request()->hasAny(['q', 'parent', 'status'])) @endif
{{-- Categories Table Card --}}
@forelse($rows as $cat) {{-- Name --}} {{-- Parent --}} {{-- Subcategories Count --}} {{-- Status Pill / Toggle --}} {{-- Actions --}} @empty @endforelse
Category Name Parent Level Subcategories Status Actions
@if($cat->icon) @else @endif
{{ $cat->name }} @if($cat->is_featured) Featured @endif
{{ $cat->slug }}
@if($cat->parent) {{ $cat->parent->name }} @else Root Category @endif {{ $cat->children_count }}
@csrf
@csrf @method('DELETE')
No categories found

Click below to create your first {{ strtolower($label) }}.

{{-- Pagination --}} @if(method_exists($rows, 'hasPages') && $rows->hasPages())
{{ $rows->links() }}
@endif
@endsection