@section('title', 'إدارة المحصلين') @section('page-title', 'إدارة المحصلين') @section('page-description', 'إضافة وإدارة المحصلين وإسنادهم للمحطات')

إجمالي المحصلين

{{ $stats['total_collectors'] }}

المحصلين النشطين

{{ $stats['active_collectors'] }}

المحصلين غير النشطين

{{ $stats['inactive_collectors'] }}

لديهم محطات مُعينة

{{ $stats['collectors_with_stations'] }}

البحث والفلترة

@if(request()->hasAny(['search', 'status'])) إلغاء @endif

قائمة المحصلين

@if($collectors->count() > 0)
@foreach($collectors as $collector) @endforeach
المحصل الحالة المحطات المُعينة رقم الموظف تاريخ الإنشاء الإجراءات
{{ substr($collector->user->name, 0, 2) }}
{{ $collector->user->name }}
{{ $collector->user->email }}
@switch($collector->status) @case('active') نشط @break @case('inactive') غير نشط @break @case('suspended') معلق @break @endswitch
@if($collector->activeStations->count() > 0) {{ $collector->activeStations->count() }} محطة
{{ $collector->activeStations->take(2)->pluck('name')->implode(', ') }} @if($collector->activeStations->count() > 2) وأخرى... @endif
@else لا توجد محطات @endif
{{ $collector->employee_id ?: '-' }} {{ $collector->created_at->format('Y/m/d') }}
عرض تعديل @if($collector->status === 'active')
@csrf @method('DELETE')
@endif
{{ $collectors->links() }}
@else

لا يوجد محصلين

ابدأ بإضافة محصل جديد لإدارة تحصيل الأموال

@endif