@extends('collector::layouts.collector') @section('title', 'لوحة التحكم - موديول المحصلين') @section('header')

مرحباً، {{ $collector->user->name }}

لوحة التحكم الخاصة بالمحصل - {{ Carbon\Carbon::now()->format('Y/m/d') }}

المحطات المُعينة
{{ $stats['overview']['assigned_stations_count'] }}
@endsection @section('content')

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

{{ number_format($stats['overview']['total_collections']) }}

معدل الإنجاز: {{ $stats['overview']['completion_rate'] }}%

إجمالي المبلغ المحصل

{{ number_format($stats['overview']['total_amount_collected'], 2) }}

ر.س

الطلبات المعلقة

{{ $stats['overview']['pending_requests_count'] }}

المبلغ: {{ number_format($stats['overview']['pending_amount'], 2) }} ر.س

النقد المتاح للتحصيل

{{ number_format($stats['overview']['available_cash_amount'], 2) }}

في المحطات المُعينة

طلبات التحصيل المعلقة

عرض الكل ←
@if($pendingCollections->count() > 0)
@foreach($pendingCollections as $collection)

{{ $collection->station->name }}

{{ number_format($collection->total_amount, 2) }} ر.س

{{ $collection->station->city->name ?? '' }}

@switch($collection->status) @case('pending') في الانتظار @break @case('station_confirmed') تم تأكيد المحطة @break @case('collector_confirmed') تم تأكيد المحصل @break @case('deposited') تم الإيداع @break @endswitch
@endforeach
@else

لا توجد طلبات تحصيل معلقة

إنشاء طلب تحصيل جديد
@endif

إحصائيات الشهر

التحصيلات المكتملة
{{ $stats['monthly']['this_month_collections'] }} @if($stats['monthly']['collections_growth'] > 0) (+{{ $stats['monthly']['collections_growth'] }}%) @elseif($stats['monthly']['collections_growth'] < 0) ({{ $stats['monthly']['collections_growth'] }}%) @endif
المبلغ المحصل
{{ number_format($stats['monthly']['this_month_amount'], 0) }} @if($stats['monthly']['amount_growth'] > 0) (+{{ $stats['monthly']['amount_growth'] }}%) @elseif($stats['monthly']['amount_growth'] < 0) ({{ $stats['monthly']['amount_growth'] }}%) @endif

المحطات الجاهزة للتحصيل

عرض الكل ←
@if($assignedStations->count() > 0)
@foreach($assignedStations->take(5) as $station)
{{ $station->name }}
{{ $station->city->name ?? '' }}
{{ number_format($station->pending_cash_amount, 2) }}
ر.س
@endforeach
@if($assignedStations->count() > 5) @endif @else

لا توجد محطات جاهزة للتحصيل

@endif

توزيع طلبات التحصيل حسب الحالة

{{ $stats['status_breakdown']['pending'] }}
في الانتظار
{{ $stats['status_breakdown']['station_confirmed'] }}
تأكيد المحطة
{{ $stats['status_breakdown']['collector_confirmed'] }}
تأكيد المحصل
{{ $stats['status_breakdown']['deposited'] }}
تم الإيداع
{{ $stats['status_breakdown']['completed'] }}
مكتمل
@endsection @push('scripts') @endpush