@extends('layouts.admin') @section('title', 'Order ' . $order->order_number) @section('content')

{{ $order->order_number }} — Token #{{ $order->token_number }}

{{ $order->created_at->format('d M Y, h:i A') }} • @if ($order->source === 'mobile') Mobile • Staff: {{ $order->placedByStaff->name ?? '—' }} • Table: {{ $order->restaurantTable->name ?? '—' }} @else Kiosk: {{ $order->kiosk->name ?? '—' }} @endif

{{ \App\Models\Order::STATUS_LABELS[$order->status] ?? $order->status }}
@foreach ($order->items as $item) @endforeach
ItemQtyPriceTotal
{{ $item->name }} {{ $item->qty }} ₹{{ number_format($item->price, 2) }} ₹{{ number_format($item->line_total, 2) }}
Subtotal₹{{ number_format($order->subtotal, 2) }}
Packing₹{{ number_format($order->packing_charge, 2) }}
Discount-₹{{ number_format($order->discount, 2) }}
GST₹{{ number_format($order->gst, 2) }}
Grand Total₹{{ number_format($order->grand_total, 2) }}

Update Status

@csrf
@endsection