@if(\App\Support\RestaurantAccess::allows(auth()->user(),$restaurant,'settings.manage')) QR-codes bekijken, downloaden en afdrukken
@endif
Totaal tafels
{{ $statistics['total'] }}
Beschikbaar
{{ $statistics['available'] }}
Totale capaciteit
{{ $statistics['total_capacity'] }}
Bezet
{{ $statistics['occupied'] }}
@if($tables->isEmpty())
Nog geen tafels
Voeg je eerste tafel toe. Daarna kun je capaciteit, status, QR-toegang en toekomstige tafelsessies beheren.
@if(\App\Support\RestaurantAccess::allows(auth()->user(),$restaurant,'settings.manage'))
@endif
@else
@foreach($tables as $table)
@php
$displayStatus = $table->active ? $table->status : 'inactive';
$statusLabel = match($displayStatus) {
'available' => 'Beschikbaar',
'occupied' => 'Bezet',
'reserved' => 'Gereserveerd',
'inactive' => 'Inactief',
default => ucfirst($displayStatus),
};
@endphp
Capaciteit
{{ $table->capacity }} personen
Volgorde
{{ $table->sort_order }}
@if($table->currentSession)Totaal{{ $table->currentSession->currency_code ?? $restaurant->currency }} {{ number_format($table->currentSession->rateGuests->sum('line_total_snapshot')+$table->currentSession->orders->where('status','!=','cancelled')->sum('total_amount'),2,',','.') }}
@if($restaurant->usesAyce())
Rondes{{ $table->currentSession->orders->count() }}
@endif
@endif
@if($table->currentSession)Gasten{{ $table->currentSession->guest_count }}
{{ $table->currentSession->hasExpired() ? 'Verlopen' : 'Gestart' }}{{ $table->currentSession->started_at?->timezone($restaurant->timezone)->format('H:i') }}
@endif
QR-toegang
{{ Str::limit($table->qr_token, 18) }}
@if(\App\Support\RestaurantAccess::allows(auth()->user(),$restaurant,'settings.manage'))
@endif
@endforeach
Geen tafels gevonden
Pas je zoekterm of statusfilter aan.
@endif
Nieuwe tafel
Tafel toevoegen
Stel de basisgegevens van de tafel in. Alles kan later nog aangepast worden.
@if(\App\Support\RestaurantAccess::allows(auth()->user(),$restaurant,'settings.manage'))
@endif
Definitief verwijderen
Weet je zeker dat je deze tafel wilt verwijderen?
Deze actie kan niet ongedaan worden gemaakt.
Typ om te bevestigen.
@endsection
@push('scripts')
@endpush