Order Data
Order ID{{ $order->order_number }}
Quantity{{ number_format($order->quantity) }}
ChargePKR {{ number_format($order->charge) }}
Created{{ $order->created_at->format('M j, Y') }}
Delivery Timeline
@php($nextActiveShown = false)
@foreach(['Queued' => 10, 'Processing' => 45, 'Partial' => 75, 'Completed' => 100] as $state => $point)
@php($isDone = $order->progress >= $point)
@php($isActive = ! $isDone && ! $nextActiveShown)
@php($nextActiveShown = $nextActiveShown || $isActive)
$isDone, 'active' => $isActive])>{{ $state }}
@endforeach