@extends('layouts.app') @section('content')
| {{ app()->getLocale() == 'ar' ? 'رقم العقد' : 'Contract #' }} | {{ app()->getLocale() == 'ar' ? 'السيارة' : 'Car' }} | {{ app()->getLocale() == 'ar' ? 'العميل' : 'Customer' }} | {{ app()->getLocale() == 'ar' ? 'البداية' : 'Start Date' }} | {{ app()->getLocale() == 'ar' ? 'النهاية' : 'End Date' }} | {{ app()->getLocale() == 'ar' ? 'الإجمالي' : 'Total' }} | {{ app()->getLocale() == 'ar' ? 'الحالة' : 'Status' }} | {{ app()->getLocale() == 'ar' ? 'العمليات' : 'Actions' }} |
|---|---|---|---|---|---|---|---|
| {{ $rental->contract_number }} | {{ $rental->car->title }} | {{ $rental->customer->name }} | {{ $rental->start_date->format('Y-m-d') }} | {{ $rental->end_date->format('Y-m-d') }} | {{ number_format($rental->total_amount) }} {{ app()->getLocale() == 'ar' ? 'ر.س' : 'SAR' }} | {{ $rental->status }} | {{ app()->getLocale() == 'ar' ? 'عرض' : 'View' }} @if($rental->status == 'open') {{ app()->getLocale() == 'ar' ? 'إغلاق' : 'Close' }} @endif |