@extends('layouts.app') @section('content') @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
| {{ $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('M d, Y') }} - {{ $contract['end_date']->format('M d, Y') }}
{{ $contract['days'] }} {{ $locale == 'ar' ? 'أيام' : 'days' }} |
{{ number_format($contract['total_amount'], 0) }} | {{ number_format($contract['paid_amount'], 0) }} | @if($contract['status'] === 'active') ⏳ {{ $locale == 'ar' ? 'نشط' : 'Active' }} @elseif($contract['status'] === 'completed') ✅ {{ $locale == 'ar' ? 'منتهية' : 'Completed' }} @else ❌ {{ $locale == 'ar' ? 'ملغاة' : 'Cancelled' }} @endif |
| {{ $locale == 'ar' ? 'لا توجد عقود' : 'No contracts' }} | |||||