Dettagli Ordine #{{ $order->order_number }}
Torna alla lista
Stato attuale: @php $colors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'accepted' => 'bg-blue-100 text-blue-800', 'ready' => 'bg-green-100 text-green-800', 'completed' => 'bg-gray-100 text-gray-800', 'cancelled' => 'bg-red-100 text-red-800', ]; $colorClass = $colors[$order->status] ?? 'bg-gray-100 text-gray-800'; @endphp {{ $order->status_label }}
{{-- Order Details --}}

Riepilogo Ordine

{{ $order->created_at->format('d/m/Y H:i') }}
@foreach($order->items as $item)
{{ $item->quantity }}x

{{ $item->name }}

@if($item->selectedOptions && $item->selectedOptions->count() > 0)
@foreach($item->selectedOptions as $opt) {{ $opt->option_name }} @if($opt->price_modifier > 0) +€{{ number_format($opt->price_modifier, 2, ',', '.') }} @endif @endforeach
@endif @if($item->special_requests)

«{{ $item->special_requests }}»

@endif @if($item->notes)

Nota: {{ $item->notes }}

@endif
€ {{ number_format(($item->price + ($item->options_total ?? 0)) * $item->quantity, 2) }} @if($item->options_total > 0) base €{{ number_format($item->price, 2) }} + opz €{{ number_format($item->options_total, 2) }} @endif
@endforeach
Totale € {{ number_format($order->total_price, 2) }}
@if($order->notes)

Note Cliente

{{ $order->notes }}

@endif
{{-- Process & Info --}}
{{-- Actions --}}

Gestione Stato

@csrf @method('PATCH')
{{-- Customer Info --}}

Dettagli Cliente

Nome

{{ $order->customer_name }}

{{-- Delivery Info --}}

@if($order->order_type === 'delivery') Consegna a Domicilio @else Asporto (Ritiro) @endif

{{ $order->order_type === 'delivery' ? 'Orario Consegna Richiesto' : 'Orario Ritiro Richiesto' }}

{{ $order->pickup_time->format('H:i') }}

{{ $order->pickup_time->format('d/m/Y') }}

@if($order->order_type === 'delivery')
Indirizzo

{{ $order->delivery_address }}

@endif