@extends('layouts.app') @section('content')

{{ app()->getLocale() == 'ar' ? 'تفاصيل وثيقة التأمين' : 'Insurance Policy Details' }}

{{ app()->getLocale() == 'ar' ? 'عودة' : 'Back' }}
{{ app()->getLocale() == 'ar' ? 'السيارة' : 'Vehicle' }}
{{ $vehicle_insurance->car->brand?->name }} {{ $vehicle_insurance->car->carModel?->name }}
{{ $vehicle_insurance->car->plate_number }}
{{ app()->getLocale() == 'ar' ? 'رقم الوثيقة' : 'Policy Number' }}
{{ $vehicle_insurance->policy_number }}
{{ app()->getLocale() == 'ar' ? 'شركة التأمين' : 'Insurance Company' }}
{{ $vehicle_insurance->company->name }}
{{ app()->getLocale() == 'ar' ? 'نوع التأمين' : 'Insurance Type' }}
{{ $vehicle_insurance->insurance_type == 'comprehensive' ? (app()->getLocale() == 'ar' ? 'شامل' : 'Comprehensive') : (app()->getLocale() == 'ar' ? 'ضد الغير' : 'Third Party') }}
{{ app()->getLocale() == 'ar' ? 'تاريخ البداية' : 'Start Date' }}
{{ $vehicle_insurance->start_date->format('Y-m-d') }}
{{ app()->getLocale() == 'ar' ? 'تاريخ الانتهاء' : 'End Date' }}
{{ $vehicle_insurance->end_date->format('Y-m-d') }}
{{ app()->getLocale() == 'ar' ? 'قسط التأمين' : 'Premium Amount' }}
{{ number_format($vehicle_insurance->premium_amount, 2) }} SAR
{{ app()->getLocale() == 'ar' ? 'قيمة التحمل' : 'Deductible' }}
{{ number_format($vehicle_insurance->deductible_amount, 2) }} SAR
{{ app()->getLocale() == 'ar' ? 'قيمة التغطية' : 'Coverage Amount' }}
{{ number_format($vehicle_insurance->coverage_amount ?? 0, 2) }} SAR
{{ app()->getLocale() == 'ar' ? 'حالة الدفع' : 'Payment Status' }}
{{ $vehicle_insurance->payment_status == 'paid' ? (app()->getLocale() == 'ar' ? 'مدفوع' : 'Paid') : ($vehicle_insurance->payment_status == 'partial' ? (app()->getLocale() == 'ar' ? 'مدفوع جزئياً' : 'Partial') : (app()->getLocale() == 'ar' ? 'غير مدفوع' : 'Unpaid')) }}
{{ app()->getLocale() == 'ar' ? 'الحالة' : 'Status' }}
{{ $vehicle_insurance->status == 'active' ? (app()->getLocale() == 'ar' ? 'ساري' : 'Active') : (app()->getLocale() == 'ar' ? 'منتهي' : 'Expired') }}
@if($vehicle_insurance->notes)
{{ app()->getLocale() == 'ar' ? 'ملاحظات' : 'Notes' }}
{{ $vehicle_insurance->notes }}
@endif @if($vehicle_insurance->document_path)
{{ app()->getLocale() == 'ar' ? 'المستند' : 'Document' }}
📄 {{ app()->getLocale() == 'ar' ? 'عرض المستند' : 'View Document' }}
@endif
{{ app()->getLocale() == 'ar' ? 'تم التسجيل بواسطة' : 'Recorded By' }}
{{ $vehicle_insurance->creator->name ?? '---' }} - {{ $vehicle_insurance->created_at->format('Y-m-d H:i') }}
@endsection