@extends('layouts.client') @section('page_title', $isRtl ? 'طلب تمويل جديد' : 'New Finance Request') @push('styles') @endpush @section('content')
{{ $isRtl ? 'العودة للوحة التحكم' : 'Back to Dashboard' }}
@php $stepLabels = [ 1 => $isRtl ? 'معلومات العمل' : 'Business Info', 2 => $isRtl ? 'المستندات' : 'Documents', 3 => $isRtl ? 'ضمان التمويل' : 'Guarantee', 4 => $isRtl ? 'مراجعة الطلب' : 'Review', 5 => $isRtl ? 'اختيار العرض' : 'Choose Offer', ]; @endphp @foreach($stepLabels as $n => $lbl)
{{ $n }} {{ $lbl }}
@endforeach
@if ($errors->any())
@endif
@csrf {{-- ================= STEP 1: BUSINESS INFO ================= --}}

{{ $isRtl ? 'المنتج / القطاع' : 'Product / Industry' }}

{{ $isRtl ? 'اختر القطاع الرئيسي والقطاع الفرعي.' : 'Select main industry and sub-industry.' }}

@if(empty($apiIndustries))
{{ $isRtl ? 'تعذّر جلب القطاعات من الـ API.' : 'Could not fetch industries from API.' }}
@endif

{{ $isRtl ? 'بيانات المنشأة والعنوان' : 'Business & Address' }}

{{ $isRtl ? 'معلومات التواصل' : 'Contact Information' }}

{{ $isRtl ? 'معلومات السجل التجاري' : 'Commercial Registration' }}

{{ $isRtl ? 'بيانات صاحب الشركة' : 'Company Owner Information' }}

{{-- ================= STEP 2: DOCUMENTS ================= --}}

{{ $isRtl ? 'المستندات المطلوبة' : 'Required Documents' }}

{{ $isRtl ? 'يرجى رفع المستندات (PDF/صور/Word، حد أقصى 5 ميجا لكل ملف).' : 'Upload documents (PDF/images/Word, 5MB max each).' }}

@foreach([ 'id_copy' => $isRtl ? 'صورة الهوية' : 'ID Copy', 'commercial_reg_doc' => $isRtl ? 'السجل التجاري' : 'Commercial Registration', 'bank_statement' => $isRtl ? 'كشف حساب بنكي' : 'Bank Statement', 'financial_report' => $isRtl ? 'القوائم المالية' : 'Financial Statements', 'property_deed' => $isRtl ? 'صك العقار' : 'Property Deed', 'other_doc' => $isRtl ? 'مستندات أخرى' : 'Other Documents', ] as $key => $lbl)
@endforeach
{{-- ================= STEP 3: GUARANTEE ================= --}}

{{ $isRtl ? 'ضمان التمويل' : 'Financing Guarantee' }}

{{ $isRtl ? 'يمكنك اختيار أكثر من نوع ضمان.' : 'You can select multiple guarantee types.' }}

@foreach([ ['key' => 'real_estate', 'icon' => 'fa-house', 'title_ar' => 'عقار', 'title_en' => 'Real Estate', 'sub_ar' => 'أرض، تجاري، سكني', 'sub_en' => 'Land, Commercial, Residential'], ['key' => 'stocks', 'icon' => 'fa-chart-line', 'title_ar' => 'أسهم', 'title_en' => 'Stocks', 'sub_ar' => 'عدد الأسهم', 'sub_en' => 'Number of shares'], ['key' => 'other', 'icon' => 'fa-briefcase', 'title_ar' => 'أخرى', 'title_en' => 'Other', 'sub_ar' => 'ضمانات إضافية', 'sub_en' => 'Additional guarantees'], ] as $g) @php $checked = in_array($g['key'], (array) old('guarantee_types', [])); @endphp @endforeach

{{ $isRtl ? 'ملاحظات إضافية' : 'Additional Notes' }}

{{-- ================= STEP 4: REVIEW ================= --}}

{{ $isRtl ? 'مراجعة بيانات الطلب' : 'Review Your Request' }}

{{ $isRtl ? 'راجع كل البيانات قبل الانتقال لاختيار العرض.' : 'Review all data before choosing an offer.' }}

{{-- ================= STEP 5: CHOOSE OFFER ================= --}}

{{ $isRtl ? 'اختر العرض المناسب' : 'Choose the Right Offer' }}

{{ $isRtl ? 'اختر عرضاً أو تجاوز الخطوة وسيختار لك مستشارونا الأنسب.' : 'Pick an offer or skip — our advisors will suggest the best fit.' }}

@if($offers->count()) @foreach($offers as $offer) @endforeach @else

{{ $isRtl ? 'لا توجد عروض متاحة حالياً. سيتواصل معك فريقنا بأفضل العروض.' : 'No offers available right now. Our team will reach out with the best options.' }}

@endif
@endsection @push('scripts') @endpush