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

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) }}

Items
@foreach ($order->orderItems as $item) @endforeach
ItemQtyPriceSubtotal
{{ $item->menuItem->name ?? 'Deleted item' }} {{ $item->quantity }} ₹{{ number_format($item->price, 2) }} ₹{{ number_format($item->subtotal, 2) }}
Customer

{{ $order->customer->name ?? '-' }}

{{ $order->customer->phone ?? '' }}

Restaurant

{{ $order->restaurant->name ?? '-' }}

Rider

{{ $order->rider->name ?? 'Not assigned' }}

Amount Breakdown

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) }}

@endsection