Gestione Tavoli

Tavoli del Ristorante

Gestisci la configurazione dei tavoli, le zone e la divisibilità.

Nuovo Tavolo
{{-- Stats --}}

Totale

{{ $stats['total'] }}

Attivi

{{ $stats['active'] }}

Interno

{{ $stats['interno'] }}

Esterno

{{ $stats['esterno'] }}

Posti Totali

{{ $stats['total_seats'] }}

{{-- Tables by Location --}} @foreach(['interno' => 'Sala Interna', 'esterno' => 'Veranda Esterna'] as $location => $label)

{{ $label }}

@if($location === 'esterno') Esterno @endif
@if(isset($tables[$location]) && $tables[$location]->isNotEmpty())
@foreach($tables[$location] as $table)
{{-- Header --}}

{{ $table->name }}

{{ $table->seats_label }}

@if(!$table->is_active) Inattivo @endif
{{-- Badges --}}
@if($table->is_combinable) Combinabile @endif @if($table->children->isNotEmpty()) Divisibile @endif
{{-- Sub-tables --}} @if($table->children->isNotEmpty())

Sub-tavoli

@foreach($table->children as $child)
{{ $child->name }} {{ $child->seats_label }}
@endforeach
@endif {{-- Actions --}}
Modifica
@csrf
@endforeach
@else
Nessun tavolo in questa zona.
@endif
@endforeach