@extends('collector::layouts.collector') @section('title', 'طلبات التحصيل') @section('header')

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

إدارة جميع طلبات التحصيل الخاصة بك

@endsection @section('content')
@if($collections->count() > 0)
@foreach($collections as $collection) @endforeach
رقم الطلب المحطة الشركة المبلغ الحالة تاريخ الإنشاء الإجراءات
#{{ $collection->id }} {{ $collection->station->name ?? 'غير محدد' }} {{ $collection->station->company->name ?? 'غير محدد' }} {{ number_format($collection->total_amount ?? 0, 2) }} ريال @php $statusClasses = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'station_confirmed' => 'bg-green-100 text-green-800', 'collector_confirmed' => 'bg-purple-100 text-purple-800', 'deposited' => 'bg-indigo-100 text-indigo-800', 'completed' => 'bg-yellow-100 text-yellow-800', 'cancelled' => 'bg-red-100 text-red-800', ]; $statusLabels = [ 'pending' => 'معلق', 'station_confirmed' => 'مؤكد من المحطة', 'collector_confirmed' => 'مؤكد من المحصل', 'deposited' => 'مودع', 'completed' => 'مكتمل', 'cancelled' => 'ملغي', ]; @endphp {{ $statusLabels[$collection->status] ?? $collection->status }} {{ $collection->created_at->format('d/m/Y H:i') }}
عرض @if($collection->status == 'station_confirmed')
@csrf
@endif @if($collection->status == 'collector_confirmed') إيداع في البنك @endif @if($collection->status == 'pending') تأكيد إلغاء @endif
{{ $collections->links() }}
@else

لا توجد طلبات تحصيل

ابدأ بإنشاء طلب تحصيل جديد من المحطات المُعينة لك.

@endif
@endsection