@can('create product') @endcan
@canany(['edit product', 'delete product']) @endcanany @forelse ($products as $item) @empty @endforelse
# {{ __('app.image') }} {{ __('app.name') }} {{ __('app.price') }} {{ __('app.restaurant') }} {{ __('app.category') }} {{ __('app.created_at') }} {{ __('app.is_available') }}{{ __('app.actions') }}
{{ $item->id }}
{{ $item->name }}
{{ $item->name }} {{ $item->price }} {{ $item->restaurant->name ?? __('app.not_selected') }} {{ $item->category->name ?? __('app.not_selected') }} {{ $item->created_at->format('d m Y') }}
is_available ? 'checked' : '' }} wire:click="toggleActive({{ $item->id }})">
@can('view reviews product') @endcan @can('edit product') @endcan @can('delete product') @endcan
{{ __('app.no_results_found') }}
{{ $products->links() }}
{{-- delete modal --}}