Category
@if (Session::has('status')) @endif @can('create', App\Models\Category::class) @endcan

Show  

  entries

ID Name Description Creation Date @can('manage-items', App\User::class) Actions @endcan @foreach ($categories as $category) {{ $category->id }} {{ $category->name }} {{ $category->description }} {{ $category->created_at }} @can('manage-items', auth()->user()) @can('update', $category) edit
@endcan @if ($category->item->isEmpty() && auth()->user()->can('delete',$category)) @endif @endcan
@endforeach
{{ $categories->links() }}
@push('js') @endpush