{{ __('nav.dashboard') }}

{{ __('dashboard.subtitle') }}

@if($unreadAlerts > 0) {{ __('dashboard.alerts') }}: {{ $unreadAlerts }} @endif
{{ __('dashboard.monthly_total') }}

{{ formatMoney($monthlyTotal) }}

{{ getCurrency() }} • {{ $monthlyCount }} {{ __('dashboard.expenses_count') }}

{{ __('dashboard.daily_average') }}

{{ formatMoney($averagePerDay) }} {{ getCurrency() }}

{{ __('dashboard.healthy_average') }}

{{ __('dashboard.this_month') }}

{{ now()->translatedFormat('F Y') }}

{{ $daysInMonth ?? now()->daysInMonth }} {{ __('dashboard.day') }}

@if(auth()->user()->isAdmin())

{{ __('dashboard.total_users') }}

{{ $totalUsers }}

{{ __('dashboard.total_audit_logs') }}

{{ $totalAuditLogs }}

@endif

{{ __('dashboard.by_category') }}

@if(count($categoryData) > 0)
@else

{{ __('dashboard.no_data') }}

@endif

{{ __('dashboard.monthly_trend') }}

@if(count($monthlyTrend) > 0)
@else

{{ __('dashboard.no_data') }}

@endif

{{ __('dashboard.recent_expenses') }}

{{ __('dashboard.view_all') }}
@if(count($recentExpenses) > 0)
@foreach($recentExpenses as $expense) @endforeach
{{ __('expenses.date') }} {{ __('expenses.description') }} {{ __('expenses.category') }} {{ __('expenses.amount') }}
{{ $expense['date'] }} {{ $expense['description'] }} {{ $expense['category'] }} {{ formatMoney($expense['amount']) }} {{ getCurrency() }}
@else

{{ __('dashboard.no_expenses') }}

@endif
@push('scripts') @endpush