@forelse($categories as $category) @empty @endforelse
Name Layout Status Action
{{ $category->name }} @php $layoutLabel = match ($category->layout) { 'featured' => 'Featured', 'hidden' => 'Not on homepage', default => 'Grid', }; @endphp {{ $layoutLabel }} {{ $category->status ? 'Deactivate' : 'Activate' }} Edit
No categories found.
@if($categories->total() > 0) Showing {{ $categories->firstItem() }} to {{ $categories->lastItem() }} of {{ $categories->total() }} entries @else Showing 0 entries @endif
{{ $categories->links('pagination::bootstrap-4') }}