@extends('collector::layouts.collector') @section('title', 'تفاصيل المحطة - ' . $station->name) @section('header')

{{ $station->name }}

{{ $station->company->name }} - {{ $station->city->name ?? 'غير محدد' }}

@endsection @section('content')

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

{{ $station->name }}

{{ $station->company->name }}

{{ $station->city->name ?? 'غير محدد' }}

{{ $station->address ?? 'غير محدد' }}

{{ $station->phone ?? 'غير محدد' }}

إحصائيات التحصيل

النقد المعلق {{ number_format($station->pending_cash_amount ?? 0, 2) }} ر.س
إجمالي طلبات التحصيل {{ $collections->total() }}
الطلبات المكتملة {{ $collections->where('status', 'completed')->count() }}
@if(($station->pending_cash_amount ?? 0) > 0)
@csrf
@endif

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

@if($collections->count() > 0)
@foreach($collections as $collection) @endforeach
رقم الطلب المبلغ الحالة تاريخ الإنشاء الإجراءات
#{{ $collection->id }} {{ number_format($collection->total_amount ?? 0, 2) }} ريال @php $statusClasses = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'station_confirmed' => 'bg-blue-100 text-blue-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') }} عرض
{{ $collections->links() }}
@else

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

لم يتم إنشاء أي طلبات تحصيل لهذه المحطة بعد.

@if(($station->pending_cash_amount ?? 0) > 0)
@csrf
@endif
@endif
@endsection