@can('create restaurants') {{ __('New restaurant') }} @endcan
@forelse ($restaurants as $restaurant)
{{ $restaurant->name }}
#{{ $restaurant->id }} @if ($restaurant->bundle_id) · {{ $restaurant->bundle_id }} @endif
{{ $restaurant->user?->email ?? '—' }}
{{ $restaurant->user?->phone ?? '—' }}
{{ collect([$restaurant->commune, $restaurant->willaya])->filter()->join(', ') ?: '—' }}
@can('view restaurant wallet') {{ __('Wallet') }} @endcan @can('edit restaurants') {{ __('Edit') }} @endcan @can('delete restaurants') {{-- wire:confirm, not a modal: deleting a restaurant takes its owner's login with it and there is no undo --}} {{ __('Delete') }} @endcan
@empty @if ($search) {{ __('No restaurant matches “:search”.', ['search' => $search]) }} @else {{ __('No restaurants yet. Create the first one.') }} @endif @endforelse
@if ($restaurants->hasPages())
{{ $restaurants->links() }}
@endif