في الانتظار
{{ $stats['pending'] }}
قيد التنفيذ
{{ $stats['in_progress'] }}
بانتظار التأكيد
{{ $stats['awaiting_confirmation'] }}
إجمالي المبالغ المعلقة
{{ number_format($stats['total_pending_amount'], 2) }} ر.س
| رقم الطلب | المحصل | المبلغ | الحالة | تاريخ الطلب | الإجراءات |
|---|---|---|---|---|---|
| #{{ $collection->id }} | {{ $collection->collector->user->name ?? 'غير محدد' }} | {{ number_format($collection->total_amount, 2) }} ر.س | @php $statusText = match($collection->status) { 'pending' => 'في الانتظار', 'approved' => 'معتمد', 'rejected' => 'مرفوض', 'in_progress' => 'قيد التنفيذ', 'awaiting_confirmation' => 'بانتظار التأكيد', 'completed' => 'مكتمل', default => 'غير معروف' }; $statusColor = match($collection->status) { 'pending' => 'text-yellow-600 bg-yellow-50', 'approved' => 'text-green-600 bg-green-50', 'rejected' => 'text-red-600 bg-red-50', 'in_progress' => 'text-blue-600 bg-blue-50', 'awaiting_confirmation' => 'text-purple-600 bg-purple-50', 'completed' => 'text-green-600 bg-green-50', default => 'text-gray-600 bg-gray-50' }; @endphp {{ $statusText }} | {{ $collection->requested_at->format('d/m/Y H:i') }} |
@if(request()->hasAny(['status', 'date_from', 'date_to'])) لا توجد طلبات تحصيل تطابق معايير البحث @else لا توجد طلبات تحصيل حتى الآن @endif