| Item | Qty | Price | Total |
|---|---|---|---|
|
{{ $item->foodItem?->name ?? 'Item' }}
@if (!empty($item->foodVariant))
Variant:
{{ $item->foodVariant->name }}
@endif
@if (!empty($item->addons))
@php
$addons = is_string($item->addons)
? json_decode($item->addons, true)
: $item->addons;
@endphp
@if (!empty($addons) && is_array($addons))
Addons:
@foreach ($addons as $a)
{{ $a['name'] ?? $a }}
@endforeach
@endif
@endif
|
{{ $item->quantity }} | {{ number_format($item->price, 2) }} | {{ number_format($item->total, 2) }} |
| Subtotal | {{ number_format($order->subtotal ?? 0, 2) }} |
| Discount | - {{ number_format($order->discount ?? 0, 2) }} |
| Tax | {{ number_format($order->tax ?? 0, 2) }} |
| Delivery Fee | {{ number_format($order->delivery_fee, 2) }} |
| Grand Total | {{ number_format($order->grand_total ?? $order->subtotal - ($order->discount ?? 0) + ($order->tax ?? 0), 2) }} |