@extends('collector::layouts.collector') @section('title', 'تفاصيل طلب التحصيل #' . $collection->id) @section('header')

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

من {{ $collection->station->name }} - {{ $collection->station->company->name }}

@endsection @section('content')

معلومات طلب التحصيل

#{{ $collection->id }}

{{ number_format($collection->total_amount, 2) }} ريال

@switch($collection->collection_type) @case('daily') تحصيل يومي @break @case('weekly') تحصيل أسبوعي @break @case('emergency') تحصيل طارئ @break @default {{ $collection->collection_type }} @endswitch

{{ $collection->requested_at->format('d/m/Y H:i') }}

@if($collection->expected_collection_time)

{{ Carbon\Carbon::parse($collection->expected_collection_time)->format('d/m/Y H:i') }}

@endif
@if($collection->notes)

{{ $collection->notes }}

@endif

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

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

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

@if($collection->station->address)

{{ $collection->station->address }}

@endif

سجل الأوقات

تم إنشاء الطلب {{ $collection->requested_at->format('d/m/Y H:i') }}
@if($collection->station_confirmed_at)
تأكيد المحطة {{ Carbon\Carbon::parse($collection->station_confirmed_at)->format('d/m/Y H:i') }}
@endif @if($collection->collector_confirmed_at)
تأكيد المحصل {{ Carbon\Carbon::parse($collection->collector_confirmed_at)->format('d/m/Y H:i') }}
@endif @if($collection->deposited_at)
تم الإيداع {{ Carbon\Carbon::parse($collection->deposited_at)->format('d/m/Y H:i') }}
@endif @if($collection->company_confirmed_at)
تأكيد الشركة {{ Carbon\Carbon::parse($collection->company_confirmed_at)->format('d/m/Y H:i') }}
@endif

حالة الطلب

@php $statusClasses = [ 'pending' => 'bg-yellow-100 text-yellow-800 border-yellow-200', 'station_confirmed' => 'bg-blue-100 text-blue-800 border-blue-200', 'collector_confirmed' => 'bg-purple-100 text-purple-800 border-purple-200', 'deposited' => 'bg-indigo-100 text-indigo-800 border-indigo-200', 'completed' => 'bg-yellow-100 text-yellow-800 border-yellow-200', 'cancelled' => 'bg-red-100 text-red-800 border-red-200', ]; $statusLabels = [ 'pending' => 'معلق', 'station_confirmed' => 'مؤكد من المحطة', 'collector_confirmed' => 'مؤكد من المحصل', 'deposited' => 'مودع', 'completed' => 'مكتمل', 'cancelled' => 'ملغي', ]; $statusIcons = [ 'pending' => '⏳', 'station_confirmed' => '✅', 'collector_confirmed' => '👤', 'deposited' => 'مودع', 'completed' => '✨', 'cancelled' => '❌', ]; @endphp
{{ $statusIcons[$collection->status] ?? '❓' }} {{ $statusLabels[$collection->status] ?? $collection->status }}

الإجراءات المتاحة

@if($collection->status == 'station_confirmed')
@csrf @method('PATCH')
@endif @if($collection->status == 'collector_confirmed') إيداع في البنك @endif @if($collection->status == 'pending')
@csrf @method('DELETE')
@endif

معلومات إضافية

تم الإنشاء {{ $collection->created_at->format('d/m/Y H:i') }}
آخر تحديث {{ $collection->updated_at->format('d/m/Y H:i') }}
@endsection