@extends('layouts.dashboard') @section('title', 'Tafels - ' . $restaurant->name) @section('eyebrow', 'Restaurant') @section('page-title', 'Tafels') @push('styles') @endpush @section('content')
Tafelbeheer

Tafels van {{ $restaurant->name }}

Beheer capaciteit, status, volgorde en QR-toegang voor alle tafels van dit restaurant.

Totaal tafels {{ $statistics['total'] }}
Beschikbaar {{ $statistics['available'] }}
Totale capaciteit {{ $statistics['total_capacity'] }}
Bezet {{ $statistics['occupied'] }}
{{ $tables->count() }} {{ $tables->count() === 1 ? 'tafel' : 'tafels' }}
@if($tables->isEmpty())

Nog geen tafels

Voeg je eerste tafel toe. Daarna kun je capaciteit, status, QR-toegang en toekomstige tafelsessies beheren.

@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
Tafel

{{ $table->name }}

{{ $statusLabel }}
Capaciteit {{ $table->capacity }} personen
Volgorde {{ $table->sort_order }}
QR-toegang {{ Str::limit($table->qr_token, 18) }}
@csrf
@endforeach
@endif
@endsection @push('scripts') @endpush