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

{{ app()->getLocale() == 'ar' ? 'لوحة تحكم المحاسب' : 'Accountant Dashboard' }}

{{ app()->getLocale() == 'ar' ? 'نظرة شاملة على الأداء المالي والرقابة اليومية' : 'Comprehensive view of financial performance & daily oversight' }}

{{ now()->translatedFormat('d M Y') }}
@php $has_alerts = $alerts['unconfirmed_vouchers'] > 0 || $alerts['late_payments'] > 0 || $alerts['discrepancy'] || $alerts['profit_drop'] || $alerts['missing_depreciation']; @endphp @if($has_alerts)
@if($alerts['unconfirmed_vouchers'] > 0)
⚠️
{{ app()->getLocale() == 'ar' ? 'سندات معلقة' : 'Pending Vouchers' }}
{{ $alerts['unconfirmed_vouchers'] }}
@endif @if($alerts['late_payments'] > 0)
{{ app()->getLocale() == 'ar' ? 'دفعات متأخرة' : 'Late Payments' }}
{{ $alerts['late_payments'] }}
@endif @if($alerts['discrepancy'])
⚖️
{{ app()->getLocale() == 'ar' ? 'فرق مالي' : 'Audit Gap' }}
{{ number_format($vouchers['discrepancy'], 0) }}
@endif @if($alerts['profit_drop'])
📉
{{ app()->getLocale() == 'ar' ? 'هبوط أرباح' : 'Profit Drop' }}
> 20%
@endif @if($alerts['missing_depreciation'])
🚗
{{ app()->getLocale() == 'ar' ? 'إهلاك ناقص' : 'Depr. Missing' }}
GAP
@endif
@endif
{{ app()->getLocale() == 'ar' ? 'مقبوضات اليوم' : 'Daily Receipts' }}

{{ app()->getLocale() == 'ar' ? 'النقد الداخل' : 'Inflow' }}

{{ number_format($daily['receipts'], 0) }} {{ $defaultCurrency->symbol_ar }}
{{ $daily['receipt_count'] }} {{ app()->getLocale() == 'ar' ? 'سندات نشطة' : 'Active Vouchers' }}
{{ app()->getLocale() == 'ar' ? 'مصروفات اليوم' : 'Daily Expenses' }}

{{ app()->getLocale() == 'ar' ? 'النقد الخارج' : 'Outflow' }}

{{ number_format($daily['expenses'], 0) }} {{ $defaultCurrency->symbol_ar }}
{{ $daily['expense_count'] }} {{ app()->getLocale() == 'ar' ? 'سندات صرف' : 'Expenses' }}
{{ app()->getLocale() == 'ar' ? 'صافي حركة اليوم' : 'Net Movement' }}

{{ app()->getLocale() == 'ar' ? 'الرصيد التشغيلي' : 'Ops Balance' }}

{{ number_format($daily['net'], 0) }} {{ $defaultCurrency->symbol_ar }}
{{ app()->getLocale() == 'ar' ? 'تحديث لحظي' : 'Real-time update' }}
{{ app()->getLocale() == 'ar' ? 'عقود نشطة حالياً' : 'Active Contracts' }}

{{ app()->getLocale() == 'ar' ? 'إجمالي التأجير' : 'Total Rental' }}

{{ $contracts['active'] }} {{ app()->getLocale() == 'ar' ? 'عقد' : 'Contract' }}
{{ $contracts['overdue_unpaid'] }} {{ app()->getLocale() == 'ar' ? 'متأخرة السداد' : 'Overdue' }}

{{ app()->getLocale() == 'ar' ? 'تحليل الأداء الشهري' : 'Monthly Analysis' }}

{{ app()->getLocale() == 'ar' ? 'محدث للآن' : 'Real-time Data' }}
{{ app()->getLocale() == 'ar' ? 'إيرادات الشهر' : 'Revenue' }}
{{ number_format($monthly_revenue, 0) }}
{{ $revenue_change >= 0 ? '↑' : '↓' }} {{ abs(round($revenue_change, 1)) }}% Vs Last Month
{{ app()->getLocale() == 'ar' ? 'مصاريف الصيانة' : 'Maintenance' }}
{{ number_format($monthly_maintenance, 0) }}
{{ app()->getLocale() == 'ar' ? 'مصاريف التأمين' : 'Insurance' }}
{{ number_format($monthly_insurance, 0) }}
{{ app()->getLocale() == 'ar' ? 'الرواتب والأجور' : 'Salaries' }}
{{ number_format($monthly_salaries, 0) }}
{{ app()->getLocale() == 'ar' ? 'إهلاك الأسطول' : 'Depreciation' }}
{{ number_format($monthly_depreciation, 0) }}
{{ $depreciation['cars_count'] }} Vehicles Covered
{{ app()->getLocale() == 'ar' ? 'الربح التشغيلي' : 'Operating Profit' }}
{{ number_format($operating_profit, 0) }}
Excluding Depreciation
{{ app()->getLocale() == 'ar' ? 'صافي الربح النهائي' : 'Net Profit' }}
{{ number_format($net_profit, 0) }}
Post Depreciation
{{ app()->getLocale() == 'ar' ? 'إجمالي المصاريف' : 'Total Expenses' }}
{{ number_format($monthly_expenses, 0) }}
Current Month Total

{{ app()->getLocale() == 'ar' ? 'توزيع المصروفات' : 'Expense Distribution' }}

@foreach($expense_distribution->take(4) as $item)
{{ $item['name'] }}
@endforeach
{{ app()->getLocale() == 'ar' ? 'متابعة العقود' : 'Contracts' }}

{{ app()->getLocale() == 'ar' ? 'أداء التأجير' : 'Rental Performance' }}

{{ app()->getLocale() == 'ar' ? 'متوسط قيمة العقد' : 'Avg Contract' }}
{{ number_format($contracts['avg_value'], 0) }} {{ $defaultCurrency->symbol_ar }}
{{ app()->getLocale() == 'ar' ? 'إيراد التأجير' : 'Rental Revenue' }}
{{ number_format($monthly_revenue, 0) }} {{ $defaultCurrency->symbol_ar }}
{{ app()->getLocale() == 'ar' ? 'متابعة العملاء' : 'Customers' }}

{{ app()->getLocale() == 'ar' ? 'العملاء النشطون' : 'Active Base' }}

{{ app()->getLocale() == 'ar' ? 'إجمالي النشطين' : 'Total Active' }} {{ $customers['active_customers'] }}
{{ app()->getLocale() == 'ar' ? 'أعلى العملاء إيراداً' : 'Top Performers' }}
@forelse($customers['top_customers'] as $customer)
{{ $customer->name }} {{ number_format($customer->rentals_sum_total_amount, 0) }}
@empty
No data available
@endforelse
{{ app()->getLocale() == 'ar' ? 'الفواتير والسندات' : 'Transactions' }}

{{ app()->getLocale() == 'ar' ? 'حالة السداد' : 'Audit & Posting' }}

{{ app()->getLocale() == 'ar' ? 'فواتير غير مسددة' : 'Unpaid' }} {{ $vouchers['unpaid_invoices'] }}
{{ app()->getLocale() == 'ar' ? 'سندات للمراجعة' : 'To Review' }} {{ $vouchers['review_needed'] }}
{{ app()->getLocale() == 'ar' ? 'سندات غير مرحلة' : 'Unposted' }} {{ $vouchers['unconfirmed_vouchers'] }}
{{ app()->getLocale() == 'ar' ? 'مركز الإهلاك' : 'Depreciation' }}

{{ app()->getLocale() == 'ar' ? 'إهلاك الأصول' : 'Asset Decay' }}

{{ app()->getLocale() == 'ar' ? 'الإهلاك المتراكم' : 'Accumulated' }}
{{ number_format($depreciation['total_accumulated'], 0) }} {{ $defaultCurrency->symbol_ar }}
{{ app()->getLocale() == 'ar' ? 'تأثير الإهلاك' : 'Profit Impact' }} {{ round($depreciation['impact_on_profit'], 1) }}%

{{ app()->getLocale() == 'ar' ? 'السيولة والمركز المالي' : 'Financial Position & Liquidity' }}

{{ app()->getLocale() == 'ar' ? 'الرصيد النقدي' : 'Cash' }}
{{ number_format($liquidity['cash'], 0) }} {{ $defaultCurrency->symbol_ar }}
{{ app()->getLocale() == 'ar' ? 'أرصدة البنوك' : 'Banks' }}
{{ number_format($liquidity['bank'], 0) }} {{ $defaultCurrency->symbol_ar }}
{{ app()->getLocale() == 'ar' ? 'الذمم المدينة' : 'Receivables' }}
{{ number_format($liquidity['receivables'], 0) }} {{ $defaultCurrency->symbol_ar }}
{{ app()->getLocale() == 'ar' ? 'التزامات (30 يوم)' : 'Liabilities' }}
{{ number_format($liquidity['liabilities_30d'], 0) }} {{ $defaultCurrency->symbol_ar }}
@push('scripts') @endpush @endsection