Order number: {{ $order->order_number }}
@php
$landingUrl = null;
if (!empty($order->notes) && preg_match('/\[REDIRECT_URL:(.*?)\]/', $order->notes, $matches)) {
$landingUrl = trim($matches[1]);
}
$cleanNotes = trim(preg_replace('/\[REDIRECT_URL:.*?\]/', '', $order->notes ?? ''));
@endphp
Order Status Timeline
5-Step Order Fulfillment Tracking
@if(in_array(strtolower($order->status), ['confirmed', 'processing', 'packed', 'shipped', 'delivered']))
Auto Confirmed
@endif
@php
$status = strtolower($order->status);
$isProcessing = in_array($status, ['pending', 'processing', 'packed', 'confirmed', 'on_the_way', 'out_for_delivery', 'shipped', 'delivered', 'completed']);
$isPacked = in_array($status, ['packed', 'on_the_way', 'out_for_delivery', 'shipped', 'delivered', 'completed']);
$isOnTheWay = in_array($status, ['on_the_way', 'out_for_delivery', 'shipped', 'delivered', 'completed']);
$isShipped = in_array($status, ['shipped', 'delivered', 'completed']);
$isDelivered = in_array($status, ['delivered', 'completed']);
@endphp
@if($order->status === 'cancelled')
This order has been cancelled.
@endif
Subtotal
৳{{ number_format($order->total_amount - $order->shipping_charge, 2) }}
Shipping Fee
৳{{ number_format($order->shipping_charge, 2) }}
Total Paid
৳{{ number_format($order->total_amount, 2) }}
Customer Name
{{ $order->customer_name }}
Phone Number
{{ $order->phone }}
Shipping Address
{{ $order->shipping_address }}
Payment Transaction Info
Payment Method
Payment Status
@if($order->payment_status === 'paid')
Paid Online
@else
@endif
@if($order->trx_id)
Transaction ID (TrxID)
{{ $order->trx_id }}
@endif
@if(!empty($cleanNotes))
Delivery Instruction
"{{ $cleanNotes }}"
@endif