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

{{ app()->getLocale() == 'ar' ? 'إدارة الاستمارة والفحص الدوري' : 'Registration & Inspection Management' }}

{{ app()->getLocale() == 'ar' ? 'إلغاء' : 'Reset' }}
@php $status_colors = [ 'valid' => 'bg-green-500/10 text-green-400 border border-green-500/20', 'expiring_soon' => 'bg-yellow-500/10 text-yellow-400 border border-yellow-500/20', 'expired' => 'bg-red-500/10 text-red-400 border border-red-500/20' ]; $status_labels = [ 'valid' => ['ar' => 'ساري', 'en' => 'Valid'], 'expiring_soon' => ['ar' => 'سينتهي قريباً', 'en' => 'Soon'], 'expired' => ['ar' => 'منتهي', 'en' => 'Expired'] ]; @endphp @forelse($documents as $doc) @empty @endforelse
{{ app()->getLocale() == 'ar' ? 'السيارة واللوحة' : 'Vehicle & Plate' }} {{ app()->getLocale() == 'ar' ? 'انتهاء الاستمارة' : 'Reg. Expiry' }} {{ app()->getLocale() == 'ar' ? 'آخر فحص' : 'Last Insp.' }} {{ app()->getLocale() == 'ar' ? 'انتهاء الفحص' : 'Insp. Expiry' }} {{ app()->getLocale() == 'ar' ? 'الحالة' : 'Status' }} {{ app()->getLocale() == 'ar' ? 'العمليات' : 'Actions' }}
{{ $doc->car->title }}
{{ $doc->car->plate_number }}
{{ $doc->registration_expiry_date->format('Y-m-d') }}
{{ $doc->registration_expiry_date->diffForHumans() }}
{{ $doc->inspection_date->format('Y-m-d') }}
{{ $doc->inspection_expiry_date->format('Y-m-d') }}
{{ $doc->inspection_expiry_date->diffForHumans() }}
{{ $status_labels[$doc->status][app()->getLocale()] }}
{{ app()->getLocale() == 'ar' ? 'لا توجد بيانات تطابق بحثك.' : 'No data matching your search found.' }}
{{ $documents->links() }}

{{ app()->getLocale() == 'ar' ? 'إدارة وثائق المركبة' : 'Vehicle Document Management' }}

@csrf
{{ app()->getLocale() == 'ar' ? 'بيانات الاستمارة' : 'Registration' }}
{{ app()->getLocale() == 'ar' ? 'بيانات الفحص الدوري' : 'Inspection' }}
@push('scripts') @endpush @endsection