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

{{ app()->getLocale() == 'ar' ? 'تقرير أداء الأسطول المفصل' : 'Detailed Fleet Report' }}

{{ app()->getLocale() == 'ar' ? 'عودة' : 'Back' }}
{{ app()->getLocale() == 'ar' ? 'من' : 'From' }}
{{ Carbon\Carbon::parse($startDate)->format('d/m/Y') }}
{{ app()->getLocale() == 'ar' ? 'إلى' : 'To' }}
{{ Carbon\Carbon::parse($endDate)->format('d/m/Y') }}
{{ app()->getLocale() == 'ar' ? 'عدد الأيام' : 'Days' }}
{{ $analytics['period']['days'] }}
{{ app()->getLocale() == 'ar' ? 'إجمالي الإيرادات' : 'Total Revenue' }}
{{ number_format($analytics['summary']['total_revenue'], 2) }} SAR
{{ app()->getLocale() == 'ar' ? 'إجمالي المصاريف' : 'Total Expenses' }}
{{ number_format($analytics['summary']['total_expenses'], 2) }} SAR
{{ app()->getLocale() == 'ar' ? 'تكاليف الصيانة' : 'Maintenance' }}
{{ number_format($analytics['summary']['total_maintenance'], 2) }} SAR
{{ app()->getLocale() == 'ar' ? 'الربح الصافي' : 'Net Profit' }}
{{ number_format($analytics['summary']['total_profit'], 2) }} SAR

{{ app()->getLocale() == 'ar' ? 'تفاصيل مفصلة لكل سيارة' : 'Detailed Car Performance' }}

@foreach($analytics['cars'] as $car) @endforeach
{{ app()->getLocale() == 'ar' ? 'البيان' : 'Description' }} {{ app()->getLocale() == 'ar' ? 'اللوحة' : 'Plate' }} {{ app()->getLocale() == 'ar' ? 'أيام التأجير' : 'Rental Days' }} {{ app()->getLocale() == 'ar' ? 'أيام التوقف' : 'Idle Days' }} {{ app()->getLocale() == 'ar' ? 'الإشغال %' : 'Occupancy' }} {{ app()->getLocale() == 'ar' ? 'الحالة' : 'Status' }}
{{ $car['title'] }} {{ $car['plate_number'] }} {{ $car['rental_days'] }} {{ $car['idle_days'] }} {{ $car['occupancy_rate'] }}% {{ $car['occupancy_status'] }}
{{ app()->getLocale() == 'ar' ? 'الإيرادات' : 'Revenue' }}
{{ number_format($car['revenue'], 2) }} SAR
{{ app()->getLocale() == 'ar' ? 'المصاريف' : 'Expenses' }}
{{ number_format($car['expenses'], 2) }} SAR
{{ app()->getLocale() == 'ar' ? 'الصيانة' : 'Maintenance' }}
{{ number_format($car['maintenance'], 2) }} SAR
{{ app()->getLocale() == 'ar' ? 'الربح' : 'Profit' }}
{{ number_format($car['profit'], 2) }} SAR
{{ app()->getLocale() == 'ar' ? 'نسبة الربح' : 'Margin' }}
{{ $car['profit_margin'] }}%
{{ app()->getLocale() == 'ar' ? 'التقييم' : 'Rating' }}
{{ $car['rating'] }}
@endsection