@extends('layouts.admin') @section('title', 'Order ' . $order->order_number) @section('content')
Placed: {{ optional($order->placed_at)->format('d M Y, h:i A') ?? $order->created_at->format('d M Y, h:i A') }}
Status: {{ ucfirst($order->status) }}
Payment: {{ ucfirst($order->payment_status) }} via {{ strtoupper($order->payment_method) }}
| Item | Qty | Price | Subtotal |
|---|---|---|---|
| {{ $item->menuItem->name ?? 'Deleted item' }} | {{ $item->quantity }} | ₹{{ number_format($item->price, 2) }} | ₹{{ number_format($item->subtotal, 2) }} |
{{ $order->customer->name ?? '-' }}
{{ $order->customer->phone ?? '' }}
{{ $order->restaurant->name ?? '-' }}
{{ $order->rider->name ?? 'Not assigned' }}
Subtotal₹{{ number_format($order->subtotal, 2) }}
Delivery Fee₹{{ number_format($order->delivery_fee, 2) }}
Discount-₹{{ number_format($order->discount_amount, 2) }}
Commission₹{{ number_format($order->commission_amount, 2) }}
Total₹{{ number_format($order->total_amount, 2) }}