@foreach($this->getColumns() as $status => $column)

{{ $column['label'] }}

{{ count($column['orders']) }}
@forelse($column['orders'] as $order)

{{ $order->order_number }}

{{ $order->created_at->diffForHumans() }}
Customer: {{ $order->customer?->name ?? 'N/A' }} @if($order->customer?->company) ({{ $order->customer->company }}) @endif
Items:
    @foreach($order->items as $item)
  • {{ $item->quantity }} × {{ $item->product?->name ?? 'Unknown' }}
  • @endforeach
KES {{ number_format($order->total_amount, 2) }} {{ $order->items->sum('quantity') }} items
@if($status !== 'queued') @endif @if($status === 'queued') @endif @if($status === 'in_progress') @endif @if($status === 'qc') @endif @if($status === 'completed') @endif
@empty
No orders in this stage
@endforelse
@endforeach