@extends('layouts.admin') @section('page_title', ($isRtl ? 'طلب تمويل' : 'Financing Request') . ' — ' . $req->request_number) @push('styles') @endpush @section('content') @php $statusIconMap = [ 'pending' => 'fa-hourglass-half', 'approved' => 'fa-circle-check', 'rejected' => 'fa-circle-xmark', 'canceled' => 'fa-ban', 'completed' => 'fa-trophy', ]; $statusIcon = $statusIconMap[$req->status] ?? 'fa-circle-info'; $statusLabels = [ 'pending' => $isRtl ? 'قيد المراجعة' : 'Pending', 'approved' => $isRtl ? 'مقبول' : 'Approved', 'rejected' => $isRtl ? 'مرفوض' : 'Rejected', 'canceled' => $isRtl ? 'ملغي' : 'Canceled', 'completed' => $isRtl ? 'مكتمل' : 'Completed', ]; $stageLabels = [ 'pending_payment' => $isRtl ? 'بانتظار الدفع' : 'Pending Payment', 'paid' => $isRtl ? 'تم الدفع' : 'Paid', 'offers' => $isRtl ? 'عرض العروض' : 'Offers', 'offer_selected' => $isRtl ? 'تم اختيار العرض' : 'Offer Selected', 'completed' => $isRtl ? 'مكتمل' : 'Completed', ]; $paymentStatusLabels = [ 'success' => $isRtl ? 'ناجح' : 'Success', 'failed' => $isRtl ? 'فشل' : 'Failed', 'pending' => $isRtl ? 'معلّق' : 'Pending', ]; $productLabels = [ 'personal' => $isRtl ? 'تمويل شخصي' : 'Personal Financing', 'auto' => $isRtl ? 'تمويل سيارات' : 'Auto Financing', 'mortgage' => $isRtl ? 'تمويل عقاري' : 'Mortgage', 'credit_card' => $isRtl ? 'بطاقة ائتمان' : 'Credit Card', 'sme' => $isRtl ? 'تمويل منشآت' : 'SME Financing', ]; $fieldLabels = $isRtl ? [ 'product_id' => 'المنتج', 'sub_product_id' => 'المنتج الفرعي', 'owner_name' => 'اسم المالك', 'mobile_1' => 'رقم الجوال', 'mobile_without_zero'=> 'الجوال بدون صفر', 'category_1' => 'البريد الإلكتروني', 'guarantee_type' => 'نوع الضمان', 'payment_id' => 'معرّف الدفع', 'nationality' => 'الجنسية', 'national_id' => 'رقم الهوية', 'date_of_birth' => 'تاريخ الميلاد', 'gender' => 'الجنس', 'marital_status' => 'الحالة الاجتماعية', 'dependents' => 'عدد المعالين', 'city' => 'المدينة', 'address' => 'العنوان', 'employment_status' => 'الحالة الوظيفية', 'employer' => 'جهة العمل', 'employer_name' => 'اسم جهة العمل', 'sector' => 'القطاع', 'job_title' => 'المسمى الوظيفي', 'years_of_service' => 'سنوات الخدمة', 'monthly_salary' => 'الراتب الشهري', 'other_income' => 'دخل آخر', 'monthly_obligations'=> 'الالتزامات الشهرية', 'bank_name' => 'اسم البنك', 'salary_bank' => 'بنك الراتب', 'has_existing_loan' => 'يوجد قرض قائم', 'existing_loan_amount'=> 'قيمة القرض القائم', 'requested_amount' => 'المبلغ المطلوب', 'requested_term' => 'المدة المطلوبة', 'purpose' => 'الغرض من التمويل', 'notes' => 'ملاحظات', 'property_type' => 'نوع العقار', 'property_value' => 'قيمة العقار', 'down_payment' => 'الدفعة الأولى', 'car_brand' => 'ماركة السيارة', 'car_model' => 'موديل السيارة', 'car_year' => 'سنة الصنع', 'car_price' => 'سعر السيارة', 'business_name' => 'اسم المنشأة', 'business_type' => 'نوع النشاط', 'cr_number' => 'السجل التجاري', 'annual_revenue' => 'الإيرادات السنوية', ] : []; $fieldLabel = function($k) use ($fieldLabels, $isRtl) { if ($isRtl && isset($fieldLabels[$k])) return $fieldLabels[$k]; return ucwords(str_replace('_', ' ', $k)); }; @endphp {{ $isRtl ? 'رجوع للقائمة' : 'Back to list' }} {{-- Hero --}}
| {{ $isRtl ? 'المستند' : 'Document' }} | {{ $isRtl ? 'الحالة' : 'Status' }} | {{ $isRtl ? 'النوع' : 'Type' }} | {{ $isRtl ? 'الإجراءات' : 'Actions' }} |
|---|---|---|---|
|
{{ $isRtl ? $doc['label_ar'] : $doc['label_en'] }}
@if($doc['note'])
({{ $doc['note'] }})
@endif
|
@if($doc['required']) {{ $isRtl ? 'مطلوب' : 'Required' }} @else {{ $isRtl ? 'اختياري' : 'Optional' }} @endif | {{ strtoupper($ext) }} |
{{ json_encode($log->meta ?? $log->request_data, JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT) }}{{ $isRtl ? 'العميل لم يقدم على خدمة التسهيلات التمويلية بعد.' : 'The client has not submitted a facilitation request yet.' }}