@extends('emails.layout') @section('title', 'Your Order Bill') @section('header-subtitle', 'Thank you for your order!') @section('content')
Dear {{ $order->customer_name }},
Thank you for your order! Here is your bill for order #{{ $order->order_number }}.
| Order Number | {{ $order->order_number }} |
|---|---|
| Order Date | {{ $order->created_at->format('M d, Y h:i A') }} |
| Order Type | {{ ucfirst(str_replace('_', ' ', $order->order_type ?? 'Dine In')) }} |
| Payment Method | {{ ucfirst($order->payment_method ?? 'Cash') }} |
| Payment Status | {{ ucfirst($order->payment_status ?? 'Pending') }} |
| Item | Qty | Price | Total |
|---|---|---|---|
| {{ $item->menuItem->name ?? $item->name ?? 'Item' }} | {{ $item->quantity }} | {{ number_format($item->unit_price ?? $item->price, 2) }} | {{ number_format(($item->unit_price ?? $item->price) * $item->quantity, 2) }} |
| Subtotal: | {{ number_format($order->subtotal, 2) }} |
| Tax: | {{ number_format($order->tax_amount, 2) }} |
| Service Charge: | {{ number_format($order->service_charge, 2) }} |
| Delivery Charge: | {{ number_format($order->delivery_charge, 2) }} |
| Discount: | -{{ number_format($order->discount_amount, 2) }} |
| Grand Total: | {{ number_format($order->total ?? $order->grand_total, 2) }} |
We hope you enjoyed your meal! Thank you for choosing us.
@endsection