Status Pesanan
Ditemukan {{ $orders->count() }} pesanan
Invoice tidak ditemukan:
{{ implode(', ', $notFoundInvoices) }}
@foreach($orders as $order)
@php
$statusConfig = [
'pending' => ['color' => 'gray', 'label' => 'Pending', 'bg' => 'bg-gray-100 dark:bg-gray-800', 'text' => 'text-gray-600 dark:text-gray-400'],
'proses_cetak' => ['color' => 'blue', 'label' => 'Cetak', 'bg' => 'bg-blue-100 dark:bg-blue-900/30', 'text' => 'text-blue-600 dark:text-blue-400'],
'finishing' => ['color' => 'orange', 'label' => 'Finishing', 'bg' => 'bg-orange-100 dark:bg-orange-900/30', 'text' => 'text-orange-600 dark:text-orange-400'],
'selesai' => ['color' => 'green', 'label' => 'Selesai', 'bg' => 'bg-green-100 dark:bg-green-900/30', 'text' => 'text-green-600 dark:text-green-400'],
];
$config = $statusConfig[$order->production_status] ?? $statusConfig['pending'];
@endphp
{{-- Items Preview --}}
@endforeach
{{-- Back Button --}}
{{-- Invoice Number --}}
{{-- Details --}}
{{-- Arrow --}}
{{ $order->invoice_number }}
{{ $config['label'] }} @if($order->pickup_status === 'picked_up') Diambil @endif
{{ $order->customer_name }}
{{ $order->created_at->format('d M Y') }}
{{ $order->items->count() }} item
{{ $order->items->pluck('file_name')->take(3)->join(', ') }} @if($order->items->count() > 3) +{{ $order->items->count() - 3 }} lainnya @endif