Order Details - #{{ $order->order_id }}

Generated on {{ now()->format('d M Y, h:i A') }}

Order Information

Order ID: {{ $order->order_id }} Order Date: {{ $order->created_at->format('d M Y, h:i A') }}
Status: {{ $order->status_label }} Payment Status: {{ $order->payment_status ? ucfirst($order->payment_status) : 'Pending' }}

Customer Information

@if($order->delivery_address) @endif
Name: {{ $order->customer_name ?: 'N/A' }} Phone: {{ $order->customer_phone }}
Delivery Address: {{ $order->delivery_address }}

Order Items

@foreach($order->getItemsWithProductNames() as $item) @endforeach @if($order->tax_amount > 0) @endif @if($order->shipping_amount > 0) @endif @if($order->discount_amount > 0) @endif
Product Quantity Price Total
{{ $item['display_name'] ?? 'Product Item' }} @if(isset($item['product_description']))
{{ $item['product_description'] }} @endif
{{ $item['quantity'] ?? 1 }} {{ $order->currency }} {{ number_format($item['item_price'] ?? 0, 2) }} {{ $order->currency }} {{ number_format(($item['item_price'] ?? 0) * ($item['quantity'] ?? 1), 2) }}
Subtotal {{ $order->currency }} {{ number_format($order->getSubtotal(), 2) }}
Tax {{ $order->currency }} {{ number_format($order->tax_amount, 2) }}
Shipping {{ $order->currency }} {{ number_format($order->shipping_amount, 2) }}
Discount -{{ $order->currency }} {{ number_format($order->discount_amount, 2) }}
Total {{ $order->currency }} {{ number_format($order->getFinalAmount(), 2) }}
@if($payments && $payments->count() > 0)

Payment History

@foreach($payments as $payment) @endforeach
Payment ID Amount Status Date
{{ $payment->payment_id }} {{ $payment->formatted_amount }} {{ $payment->status_label }} {{ $payment->created_at->format('d M Y, h:i A') }}
@endif