@can('create category') @endcan
@canany(['edit category', 'delete category']) @endcanany @forelse ($categories as $item) @empty @endforelse
# {{ __('app.icon') }} {{ __('app.name') }} {{ __('app.number_of_products') }} {{ __('app.created_at') }} {{ __('app.is_active') }}{{ __('app.actions') }}
{{ $item->id }}
{{ $item->name }}
{{ $item->name }} {{ $item->getCategoryProductsNumber() }} {{ $item->created_at->format('d m Y') }}
is_active ? 'checked' : '' }} wire:click="toggleActive({{ $item->id }})">
@can('edit category') @endcan @can('delete category') @if ($item->canBeDeleted()) @else @endif @endcan
{{ __('app.no_results_found') }}
{{ $categories->links() }}
{{-- delete modal --}}