@push('head') @endpush

Category

Data table category
{{-- Header --}}
{{-- Bulk Action --}} @if(count($selected) > 0) @endif
@forelse($categories->where('parent_id', null) as $cat) {{-- Show Sub Categories --}} @foreach($cat->children as $sub) {{-- Show Child Categories --}} @foreach($sub->children as $child) @endforeach @endforeach @empty @endforelse
Name @if($sortField === 'name') @endif
Description
Parent @if($sortField === 'parent_id') @endif
Status @if($sortField === 'is_active') @endif
Actions
{{ $cat->name }} {{ $cat->description }} {{ $cat->parent?->name ?? '-' }} @if($cat->is_active) Active @else Inactive @endif
— {{ $sub->name }} {{ $sub->description }} {{ $sub->parent?->name }} @if($sub->is_active) Active @else Inactive @endif
—— {{ $child->name }} {{ $child->description }} {{ $child->parent?->name }} @if($child->is_active) Active @else Inactive @endif

No categories found.

{{-- Pagination --}}
{{ $categories->links('components.utilities.paginate') }}
@include('components.modal.ModalDeleteComfrimed', ['title' => 'Data Produk', 'count' => count($selected)])
@push('script') @endpush