Gestione Ordini

Ordini Asporto/Domicilio

Gestisci gli ordini in arrivo dal sito web.

{{-- Filters --}}
@if(request()->hasAny(['search', 'status', 'type'])) Reset @endif
@if($orders->isEmpty())

Nessun ordine trovato.

@else
@foreach($orders as $order) @endforeach
Ordine Cliente Tipo / Orario Totale Stato Azioni

{{ $order->order_number }}

{{ $order->created_at->format('d/m/Y H:i') }}

{{ $order->customer_name }}

{{ $order->customer_phone }}

{{ $order->type_label }}

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

€ {{ number_format($order->total_price, 2) }} {{ $order->items_count }} articoli @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 }} Dettagli
{{ $orders->links() }}
@endif