@section('title', 'طلبات التحصيل - المحطة') @section('page-title', 'طلبات التحصيل') @section('page-description', 'إدارة طلبات تحصيل النقد من المحصلين')

في الانتظار

{{ $stats['pending'] }}

قيد التنفيذ

{{ $stats['in_progress'] }}

بانتظار التأكيد

{{ $stats['awaiting_confirmation'] }}

إجمالي المبالغ المعلقة

{{ number_format($stats['total_pending_amount'], 2) }} ر.س

@if(request()->hasAny(['status', 'date_from', 'date_to'])) إزالة الفلاتر @endif

طلبات التحصيل

@if($collections->count() > 0)
@foreach($collections as $collection) @endforeach
رقم الطلب المحصل المبلغ الحالة تاريخ الطلب الإجراءات
#{{ $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($collection->status === 'pending') @endif @if($collection->status === 'in_progress') @endif
{{ $collections->appends(request()->query())->links() }}
@else

@if(request()->hasAny(['status', 'date_from', 'date_to'])) لا توجد طلبات تحصيل تطابق معايير البحث @else لا توجد طلبات تحصيل حتى الآن @endif

@endif
@push('scripts') @endpush