Order #{{ $order->id }}

@if($order->invoice_no)

Invoice: {{ $order->invoice_no }}

@endif

Created {{ $order->created_at->format('M d, Y H:i') }}

Order Details

Order Information

@if($order->invoice_no)
Invoice Number
{{ $order->invoice_no }}
@endif
Status
{{ ucfirst($order->status) }}
Payment Status
{{ ucfirst($order->payment_status) }}
Payment Method
{{ ucfirst($order->payment_method) }}
Store
{{ $order->store->store_name }}
Delivery Partner
{{ $order->deliveryPartner->name ?? 'Not assigned' }}
Delivery Charge
{{config('custom.currency_symbol')}}{{ number_format($order->delivery_charge, 2) }}
Discount Amount
{{config('custom.currency_symbol')}}{{ number_format($order->discount_amount, 2) }}
Tax Amount
{{config('custom.currency_symbol')}}{{ number_format($order->tax_amount, 2) }}
Total Amount
{{config('custom.currency_symbol')}}{{ number_format($order->total_amount, 2) }}
Invoice Amount
{{config('custom.currency_symbol')}}{{ number_format($order->invoice_amount, 2) }}

Customer Information

Name
{{ $order->customer_name }}
Phone
{{ $order->customer_phone }}
Address
{{ $order->customer_address }}

Order Items

@foreach($order->items as $item) @endforeach
Product Quantity Unit Price Discount Tax Total
{{ $item->product->name }} {{ $item->quantity }} {{config('custom.currency_symbol')}}{{ number_format($item->unit_price, 2) }} {{config('custom.currency_symbol')}}{{ number_format($item->discount_price, 2) }} {{config('custom.currency_symbol')}}{{ number_format($item->tax_amount, 2) }} {{config('custom.currency_symbol')}}{{ number_format($item->total_price, 2) }}
Subtotal {{config('custom.currency_symbol')}}{{ number_format($order->items->sum('total_price'), 2) }}
Delivery Charge {{config('custom.currency_symbol')}}{{ number_format($order->delivery_charge, 2) }}
Discount -{{config('custom.currency_symbol')}}{{ number_format($order->discount_amount, 2) }}
Tax {{config('custom.currency_symbol')}}{{ number_format($order->tax_amount, 2) }}
Grand Total {{config('custom.currency_symbol')}}{{ number_format($order->total_amount, 2) }}

Statuses
@if($order->tracking_id || $order->tracking_url)
Tracking: @if($order->tracking_id) {{ $order->tracking_id }} @endif @if($order->tracking_url) @endif
@endif

@forelse($order->statusHistories as $history)
@switch($history->status) @case('pending') @break @case('processing') @break @case('delivered') @break @case('cancelled') @break @case('paid') @break @case('failed') @break @endswitch

{{ ucfirst($history->status) }}

@if($history->note) {{ $history->note }} @endif {{ $history->created_at->format('d M Y, g:i A') }}
@empty

No status changes recorded.

@endforelse
@push('styles') @endpush