@php $locale = app()->getLocale(); $customer = $profile['customer']; $rental_summary = $profile['rental_summary']; $payment_summary = $profile['payment_summary']; $status_info = $profile['status_info']; $rating_info = $profile['rating_info']; @endphp {{ $customer->name }} - {{ $locale == 'ar' ? 'ملف العميل' : 'Customer Profile' }}

📋 {{ $locale == 'ar' ? 'ملف العميل الشامل' : 'Complete Customer Profile' }}

{{ $customer->name }}

{{ $locale == 'ar' ? 'الهاتف:' : 'Phone:' }}
{{ $customer->phone }}
{{ $locale == 'ar' ? 'البريد الإلكتروني:' : 'Email:' }}
{{ $customer->email ?? '—' }}
{{ $locale == 'ar' ? 'تاريخ التسجيل:' : 'Registration:' }}
{{ $customer->created_at->format('Y-m-d') }}

{{ $locale == 'ar' ? '📊 الحالة الحالية' : '📊 Current Status' }}

{{ $status_info['label'] }} @if($status_info['status'] === 'blacklisted' && isset($status_info['reason']))

{{ $locale == 'ar' ? 'سبب الحظر:' : 'Blacklist Reason:' }} {{ $status_info['reason'] }} @if($status_info['until'])
{{ $locale == 'ar' ? 'حتى:' : 'Until:' }} {{ $status_info['until']->format('Y-m-d') }} @endif @endif

💰 {{ $locale == 'ar' ? 'ملخص الدفع' : 'Payment Summary' }}

{{ $locale == 'ar' ? 'إجمالي المبلغ' : 'Total Amount' }}
{{ number_format($payment_summary['total_amount'], 0) }}
{{ $locale == 'ar' ? 'ر.س' : 'SAR' }}
{{ $locale == 'ar' ? 'المدفوع' : 'Paid' }}
{{ number_format($payment_summary['total_paid'], 0) }}
{{ $payment_summary['payment_percentage'] }}%
{{ $locale == 'ar' ? 'المتبقي' : 'Remaining' }}
{{ number_format($payment_summary['total_remaining'], 0) }}
{{ $locale == 'ar' ? 'ر.س' : 'SAR' }}
{{ $locale == 'ar' ? 'المبلغ المتأخر' : 'Outstanding' }}
{{ number_format($payment_summary['overdue_amount'], 0) }}
{{ $locale == 'ar' ? 'ر.س' : 'SAR' }}
@if($payment_summary['total_delays'] > 0)
{{ $locale == 'ar' ? '⚠️ تأخيرات قائمة' : '⚠️ Pending Delays' }}
{{ $locale == 'ar' ? 'عدد التأخيرات:' : 'Number of Delays:' }} {{ $payment_summary['pending_delays'] }} | {{ $locale == 'ar' ? 'المبلغ:' : 'Amount:' }} {{ number_format($payment_summary['total_delay_amount'], 0) }} {{ $locale == 'ar' ? 'ر.س' : 'SAR' }}
@endif

📅 {{ $locale == 'ar' ? 'ملخص العقود' : 'Rental Summary' }}

{{ $locale == 'ar' ? 'إجمالي العقود' : 'Total Contracts' }}
{{ $rental_summary['total_contracts'] }}
{{ $locale == 'ar' ? 'العقود النشطة' : 'Active Contracts' }}
{{ $rental_summary['active_contracts'] }}
{{ $locale == 'ar' ? 'العقود المنتهية' : 'Completed' }}
{{ $rental_summary['completed_contracts'] }}
{{ $locale == 'ar' ? 'إجمالي أيام الإيجار' : 'Total Rental Days' }}
{{ $rental_summary['total_rental_days'] }}

⭐ {{ $locale == 'ar' ? 'التقييم والمخاطر' : 'Rating & Risk Assessment' }}

{{ $locale == 'ar' ? 'التقييم' : 'Rating' }}
{{ $rating_info['average_rating'] }}
{{ $locale == 'ar' ? 'من 5 نقاط' : 'out of 5 stars' }}
{{ $locale == 'ar' ? 'مستوى الخطر' : 'Risk Level' }}
{{ strtoupper($rating_info['risk_level']) }}
{{ $locale == 'ar' ? 'عدد المخالفات' : 'Violations' }}
{{ $rating_info['violation_count'] }}
{{ $locale == 'ar' ? 'تأخيرات السداد' : 'Late Payments' }}
{{ $rating_info['late_payment_count'] }}
@if($contracts->count() > 0)

📋 {{ $locale == 'ar' ? 'سجل العقود' : 'Contract History' }}

@foreach($contracts as $contract) @endforeach
{{ $locale == 'ar' ? 'رقم العقد' : 'Contract #' }} {{ $locale == 'ar' ? 'السيارة' : 'Car' }} {{ $locale == 'ar' ? 'التاريخ' : 'Date' }} {{ $locale == 'ar' ? 'المبلغ' : 'Amount' }} {{ $locale == 'ar' ? 'المدفوع' : 'Paid' }} {{ $locale == 'ar' ? 'الحالة' : 'Status' }}
#{{ $contract['contract_number'] }} {{ $contract['car'] }} {{ $contract['start_date']->format('Y-m-d') }} to {{ $contract['end_date']->format('Y-m-d') }} {{ number_format($contract['total_amount'], 0) }} {{ number_format($contract['paid_amount'], 0) }} {{ $contract['status'] }}
@endif