@extends('layouts.client') @section('page_title', ($isRtl ? 'تفاصيل الطلب' : 'Request Details') . ' #' . $application->id) @section('content') @php $statusColors = [ 'new' => ['#e0e7ff', '#4338ca'], 'reviewing' => ['#fef3c7', '#a16207'], 'approved' => ['#dcfce7', '#166534'], 'rejected' => ['#fee2e2', '#991b1b'], 'completed' => ['#fee2e2', '#b31419'], ]; $statusLabelsAr = [ 'new' => 'جديد', 'reviewing' => 'قيد المراجعة', 'approved' => 'موافق', 'rejected' => 'مرفوض', 'completed' => 'مكتمل', ]; [$bg, $fg] = $statusColors[$application->status] ?? ['#f3f4f6', '#4b5563']; $label = $isRtl ? ($statusLabelsAr[$application->status] ?? $application->status) : ucfirst($application->status); @endphp
{{ $isRtl ? 'العودة للوحة التحكم' : 'Back to Dashboard' }}

{{ $isRtl ? 'طلب رقم' : 'Request' }} #{{ $application->id }}

{{ $label }}
@foreach([ ['k' => $isRtl ? 'تاريخ التقديم' : 'Submitted', 'v' => $application->created_at->format('Y-m-d H:i')], ['k' => $isRtl ? 'الخدمة' : 'Service', 'v' => $application->service->name ?? '—'], ['k' => $isRtl ? 'البنك' : 'Bank', 'v' => $application->bank->name ?? '—'], ['k' => $isRtl ? 'العرض' : 'Offer', 'v' => $application->offer->title ?? '—'], ['k' => $isRtl ? 'الاسم الكامل' : 'Full Name', 'v' => $application->full_name ?? '—'], ['k' => $isRtl ? 'رقم الهوية' : 'National ID', 'v' => $application->national_id ?? '—'], ['k' => $isRtl ? 'البريد' : 'Email', 'v' => $application->email ?? '—'], ['k' => $isRtl ? 'الجوال' : 'Phone', 'v' => $application->phone ?? '—'], ['k' => $isRtl ? 'المدينة' : 'City', 'v' => $application->city ?? '—'], ['k' => $isRtl ? 'جهة العمل' : 'Employer', 'v' => $application->employer ?? '—'], ['k' => $isRtl ? 'القطاع' : 'Sector', 'v' => $application->sector ?? '—'], ['k' => $isRtl ? 'الراتب' : 'Salary', 'v' => $application->salary ? number_format($application->salary) : '—'], ['k' => $isRtl ? 'مبلغ التمويل' : 'Amount', 'v' => $application->amount ? number_format($application->amount) : '—'], ['k' => $isRtl ? 'مدة السداد (سنوات)' : 'Term (years)', 'v' => $application->term_years ?? '—'], ] as $row)
{{ $row['k'] }}
{{ $row['v'] }}
@endforeach
@if($application->notes)
{{ $isRtl ? 'ملاحظات' : 'Notes' }}
{{ $application->notes }}
@endif
@endsection