@forelse($categories as $key => $category)
@php
$cls = $category->status === 'active' ? 'success' : 'danger';
@endphp
| {{ $categories->firstItem() + $key }} |
{{ $category->name }} |
{{ $category->slug }} |
{{ \Str::limit($category->description, 80, '...') }} |
{{ admin_label(ucfirst($category->status)) }}
|
|
@empty
@endforelse
{{-- pagination --}}
{{-- @if ($categories->count())
@endif --}}