@extends($tablet ? 'layouts.table-staff' : 'layouts.dashboard') @section('title','Tafelsessie - '.$table->name) @section('page-title',$table->name.' · Sessiebeheer') @push('styles')@endpush @section('content')
Tafelbeheer

{{ $table->name }}

{{ $restaurant->name }} · Sessies en gastformules

@include('restaurants.settings.messages')
Terug
@if($session)

{{ $session->hasExpired() ? 'Verlopen sessie' : 'Actieve sessie' }}

@include('restaurants.tables.session-details',['detail'=>$session]) @if($canClose)
@csrf

De besteltoegang vervalt direct. Nog openstaande bestellingen blijven zichtbaar in het besteloverzicht.

@endif
@elseif($canStart)

Nieuwe tafelsessie

@csrf @php $foodRates = $rates->filter(fn ($rate) => $rate->includesFood()); $drinkRates = $rates->filter(fn ($rate) => ! $rate->includesFood() && $rate->includesDrinks()); @endphp @if($restaurant->usesAyce())
All You Can Eat · eetformules

Verdeel alle gasten over de juiste leeftijdscategorieën. Kies per gast één eetformule.

@forelse($foodRates as $rate) @include('restaurants.tables.rate-choice') @empty

Er zijn vandaag geen eetformules met actieve leeftijdsprijzen beschikbaar.

@endforelse
@endif @if($drinkRates->isNotEmpty())
All You Can Drink · optioneel

Kies apart hoeveel gasten per leeftijdscategorie een drankformule nemen. Laat de aantallen op 0 voor drankjes tegen de normale menuprijs.

@foreach($drinkRates as $rate) @include('restaurants.tables.rate-choice') @endforeach
@endif
@endif @if(!$tablet)

Eerdere sessies

@foreach($history as $detail)
{{ $detail->started_at?->timezone($restaurant->timezone)->format('d/m/Y H:i') }} · {{ $detail->guest_count }} gasten · {{ $detail->status }}@include('restaurants.tables.session-details')
@endforeach {{ $history->links() }}@endif
@endsection