Modifica Prenotazione
Torna alla lista

Dettagli Prenotazione: #{{ $reservation->confirmation_code }}

@csrf @method('PUT')
{{-- Main Info --}}

Informazioni Cliente

@error('nome')

{{ $message }}

@enderror
@error('telefono')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror

Dettagli Prenotazione

@error('giorno')

{{ $message }}

@enderror
@error('ora')

{{ $message }}

@enderror
@error('numPax')

{{ $message }}

@enderror
{{-- Table Assignment --}} @if(isset($allTables))

Assegnazione Tavoli

Seleziona i tavoli per {{ $reservation->numPax }} {{ $reservation->numPax === 1 ? 'persona' : 'persone' }}. @if(!empty($suggestedTableIds)) ★ = suggerito dal sistema @endif

@php $availableTableIds = $availableTables->pluck('id')->toArray(); $selectedTableIds = old('table_ids', $assignedTableIds); @endphp @foreach(['interno' => 'Sala Interna', 'esterno' => 'Veranda Esterna'] as $loc => $locLabel) @php $locationTables = $allTables->where('location', $loc); @endphp @if($locationTables->isNotEmpty())

{{ $locLabel }}

@foreach($locationTables as $table) @php $isAvailable = in_array($table->id, $availableTableIds) || in_array($table->id, $assignedTableIds); $isSuggested = in_array($table->id, $suggestedTableIds ?? []); $isSelected = in_array($table->id, $selectedTableIds); @endphp {{-- Sub-tables --}} @foreach($table->children as $child) @php $childAvailable = in_array($child->id, $availableTableIds) || in_array($child->id, $assignedTableIds); $childSelected = in_array($child->id, $selectedTableIds); @endphp @endforeach @endforeach
@endif @endforeach @error('table_ids')

{{ $message }}

@enderror
@endif
{{-- Sidebar Options --}}

Stato Prenotazione

@foreach($statuses as $value => $label) @endforeach
{{-- Summary --}}

Info Sistema

Inserita il: {{ $reservation->created_at->format('d/m/Y H:i') }}
Canale: {{ $reservation->canale }}
@if($reservation->confirmed_at)
Confermata il: {{ $reservation->confirmed_at->format('d/m/Y H:i') }}
@endif
{{-- Actions --}}
Annulla