{{ ui.t('dashboard.total') }}
{{ (stats?.total || 0) | currency:'PLN':'symbol':'1.2-2' }}
{{ ui.t('dashboard.count') }}
{{ stats?.count || 0 }}
{{ ui.t('dashboard.budgetUsage') }}
{{ cashflow?.budgetUsagePercent || 0 }}%
{{ ui.t('cashflow.forecast') }}
{{ (cashflow?.forecastCurrentMonth || 0) | currency:'PLN':'symbol':'1.2-2' }}
@if (canShowExternalStats()) {
{{ ui.t('dashboard.externalSpend') }}
{{ externalAmount() | currency:'PLN':'symbol':'1.2-2' }}
{{ ui.t('dashboard.externalRecords') }}
{{ externalCount() }}
}

{{ ui.t('dashboard.trend') }}

@for (option of timelineRangeOptions; track option.value) { }
@if (timelineStats?.timeline?.length) {
} @else {
{{ ui.t('dashboard.noTrendData') }}
}

{{ ui.t('dashboard.share') }}

@if (stats?.byCategory?.length) {
} @else {
{{ ui.t('dashboard.noChartData') }}
}

{{ ui.t('nav.cashflow') }}

{{ ui.t('cashflow.actual') }}{{ (cashflow?.actualCurrent || 0) | currency:'PLN':'symbol':'1.2-2' }}
{{ ui.t('cashflow.budget') }}{{ (cashflow?.totalBudget || 0) | currency:'PLN':'symbol':'1.2-2' }}
{{ ui.t('cashflow.pending') }}{{ cashflow?.pendingApproval || 0 }}
{{ ui.t('cashflow.duplicates') }}{{ cashflow?.duplicateCount || 0 }}
{{ ui.t('budget.alerts') }}
@for (alert of cashflow?.alerts || []; track alert.id) {
{{ alert.name }} ยท {{ alert.usagePercent }}%
} @empty {
{{ ui.t('common.noData') }}
}

{{ ui.t('dashboard.recent') }}

@for (item of recentExpenses; track item.id) { } @empty { }
{{ ui.t('table.title') }}{{ ui.t('table.category') }}{{ ui.t('expenses.field.status') }}{{ ui.t('table.amount') }}
{{ item.title }}
{{ item.merchant || ui.t('expenses.noMerchant') }}
{{ item.category.name }} {{ ui.t('status.' + item.status.toLowerCase()) }} {{ item.amount | currency:'PLN':'symbol':'1.2-2' }}
{{ ui.t('common.noExpenses') }}

{{ ui.t('cashflow.upcomingRecurring') }}

@for (item of cashflow?.upcomingRecurring || []; track item.id) { } @empty { }
{{ ui.t('table.title') }}{{ ui.t('table.date') }}{{ ui.t('table.amount') }}
{{ item.title }}{{ item.nextRunDate | date:'yyyy-MM-dd' }}{{ item.amount | currency:'PLN':'symbol':'1.2-2' }}
{{ ui.t('common.noData') }}