@section('title', 'تفاصيل طلب التحصيل #' . $cashCollection->id . ' - المحطة') @section('page-title', 'تفاصيل طلب التحصيل') @section('page-description', 'عرض تفاصيل طلب التحصيل رقم #' . $cashCollection->id)

طلب التحصيل #{{ $cashCollection->id }}

تم إنشاؤه بتاريخ {{ $cashCollection->requested_at->format('d/m/Y H:i') }}

@php $statusText = match($cashCollection->status) { 'pending' => 'في الانتظار', 'approved' => 'معتمد', 'rejected' => 'مرفوض', 'in_progress' => 'قيد التنفيذ', 'awaiting_confirmation' => 'بانتظار التأكيد', 'completed' => 'مكتمل', default => 'غير معروف' }; $statusColor = match($cashCollection->status) { 'pending' => 'text-yellow-600 bg-yellow-50 border-yellow-200', 'approved' => 'text-green-600 bg-green-50 border-green-200', 'rejected' => 'text-red-600 bg-red-50 border-red-200', 'in_progress' => 'text-blue-600 bg-blue-50 border-blue-200', 'awaiting_confirmation' => 'text-purple-600 bg-purple-50 border-purple-200', 'completed' => 'text-green-600 bg-green-50 border-green-200', default => 'text-gray-600 bg-gray-50 border-gray-200' }; @endphp {{ $statusText }} @if($cashCollection->status === 'pending' && Auth::user()->user_type === 'station_manager')
@endif @if($cashCollection->status === 'in_progress') @endif

معلومات الطلب

المحصل
{{ $cashCollection->collector->user->name ?? 'غير محدد' }}
المبلغ المطلوب
{{ number_format($cashCollection->total_amount, 2) }} ر.س
تاريخ الطلب
{{ $cashCollection->requested_at->format('d/m/Y H:i') }}
@if($cashCollection->expected_collection_time)
الوقت المتوقع للتحصيل
{{ \Carbon\Carbon::parse($cashCollection->expected_collection_time)->format('d/m/Y H:i') }}
@endif @if($cashCollection->station_approved_at)
تاريخ موافقة المحطة
{{ $cashCollection->station_approved_at->format('d/m/Y H:i') }}
@endif @if($cashCollection->collected_at)
تاريخ التحصيل
{{ $cashCollection->collected_at->format('d/m/Y H:i') }}
@endif @if($cashCollection->company_confirmed_at)
تاريخ تأكيد الشركة
{{ $cashCollection->company_confirmed_at->format('d/m/Y H:i') }}
@endif
@if($cashCollection->notes)

الملاحظات

{{ $cashCollection->notes }}
@endif @if($cashCollection->status === 'rejected' && $cashCollection->rejection_reason)

سبب الرفض

{{ $cashCollection->rejection_reason }}
@endif @if($cashCollection->bankDeposit)

معلومات الإيداع البنكي

البنك
{{ $cashCollection->bankDeposit->bank_name }}
رقم الحساب
{{ $cashCollection->bankDeposit->account_number }}
مبلغ الإيداع
{{ number_format($cashCollection->bankDeposit->amount, 2) }} ر.س
تاريخ الإيداع
{{ $cashCollection->bankDeposit->deposit_date->format('d/m/Y') }}
@if($cashCollection->bankDeposit->reference_number)
رقم المرجع
{{ $cashCollection->bankDeposit->reference_number }}
@endif @if($cashCollection->bankDeposit->notes)
ملاحظات الإيداع
{{ $cashCollection->bankDeposit->notes }}
@endif
@endif

سير العملية

  • تم إنشاء الطلب بواسطة {{ $cashCollection->collector->user->name ?? 'المحصل' }}

  • @if($cashCollection->station_approved_at)
  • @if($cashCollection->status !== 'rejected') @endif

    @if($cashCollection->status === 'rejected') تم رفض الطلب من المحطة @else تمت موافقة المحطة على الطلب @endif

  • @endif @if($cashCollection->collected_at)
  • @if($cashCollection->company_confirmed_at) @endif

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

  • @endif @if($cashCollection->company_confirmed_at)
  • تم تأكيد العملية من الشركة

  • @endif

معلومات المحطة

اسم المحطة
{{ $cashCollection->station->name }}
الشركة
{{ $cashCollection->station->company->name ?? 'غير محدد' }}
النقد المعلق الحالي
{{ number_format($cashCollection->station->pending_cash_amount, 2) }} ر.س

إجراءات سريعة

جميع طلبات التحصيل @if($cashCollection->status === 'completed') @endif
@push('scripts') @endpush