@extends('emails.layout') @section('title', 'Your Order Bill') @section('header-subtitle', 'Thank you for your order!') @section('content')

Order Bill

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

Order Details

@foreach($order->items as $item) @endforeach
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) }}
@if($order->tax_amount > 0) @endif @if($order->service_charge > 0) @endif @if($order->delivery_charge > 0) @endif @if($order->discount_amount > 0) @endif
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) }}
@if($order->special_instructions)
Special Instructions:
{{ $order->special_instructions }}
@endif

We hope you enjoyed your meal! Thank you for choosing us.

@endsection