@php
$statuses = ['submitted', 'approved', 'in_production', 'proof_ready', 'completed'];
$currentIndex = array_search($order->status, $statuses);
@endphp
@foreach ($statuses as $index => $status)
@endforeach
Type
{{ ucfirst($order->type) }}
Status
{{ str_replace('_', ' ', ucfirst($order->status)) }}
@if ($order->specifications)
Quantity
{{ $order->specifications->quantity }}
Stock
{{ $order->specifications->printStock ? $order->specifications->printStock->name : 'N/A' }}
@endif
@if ($order->total_cost)
Total Cost
R{{ number_format($order->total_cost, 2) }}
@endif
{{ $order->deposit_status === 'paid' ? '✓' : '○' }}
Deposit
→
{{ $order->status === 'approved' ? '✓' : '○' }}
Approved
→
{{ in_array($order->status, ['in_production', 'proof_ready', 'completed']) ? '✓' : '○' }}
Production