{{-- Items-per-page (LST-007) --}}
Showing {{ $categories->firstItem() }}–{{ $categories->lastItem() }} of {{ $categories->total() }} categories
{{-- Category table (LST-004) --}}
| Category |
Statuses |
Groups |
@if(isset($permission['edit']) && $permission['edit'])
Actions |
@endif
@forelse($categories as $cat)
|
{{ $cat->title }}
|
{{ $cat->children->count() }} |
@php
$groupNames = $cat->groupMaps
->map(fn($m) => optional($m->group)->title)
->filter()
->values();
@endphp
@if($groupNames->count())
{{ $groupNames->implode(', ') }}
@else
—
@endif
|
@if(isset($permission['edit']) && $permission['edit'])
|
@endif
@empty
| No categories found. |
@endforelse
{{-- Pagination (LST-006) --}}