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

{{ app()->getLocale() == 'ar' ? 'سجل الصيانة' : 'Maintenance Records' }}

{{ app()->getLocale() == 'ar' ? 'عودة' : 'Back' }} {{ app()->getLocale() == 'ar' ? 'إضافة سجل صيانة' : 'Add Maintenance' }}
🔍
{{ app()->getLocale() == 'ar' ? 'إعادة تعيين' : 'Reset' }}
@foreach($records as $record) @endforeach
{{ app()->getLocale() == 'ar' ? 'السيارة' : 'Car' }} {{ app()->getLocale() == 'ar' ? 'الوصف' : 'Description' }} {{ app()->getLocale() == 'ar' ? 'التكلفة' : 'Cost' }} {{ app()->getLocale() == 'ar' ? 'التاريخ' : 'Date' }} {{ app()->getLocale() == 'ar' ? 'موعد الصيانة القادم' : 'Next Due' }}
{{ $record->car->title }}
{{ $record->car->plate_number }}
{{ $record->description }} {{ number_format($record->cost) }} {{ app()->getLocale() == 'ar' ? 'ر.س' : 'SAR' }} {{ $record->maintenance_date->format('Y-m-d') }} {{ $record->next_due_km ? number_format($record->next_due_km) . ' ' . (app()->getLocale() == 'ar' ? 'كم' : 'KM') : '-' }}
{{ $records->links() }}
@endsection