{% extends 'base.html' %}{% block content %}

{{ t('dashboard.title') }}

{{ selected_year }}-{{ '%02d'|format(selected_month) }}
{{ t('dashboard.total') }}
{{ total }}
{% if alerts %}
{{ t('dashboard.alerts') }}: {% for alert in alerts %}{{ alert.category }} {{ '%.0f'|format(alert.ratio) }}%{% if not loop.last %}, {% endif %}{% endfor %}
{% endif %}
{{ t('dashboard.total') }}
{{ total }}
{{ t('dashboard.latest') }}
{{ expenses|length }}
{{ t('dashboard.categories') }}
{{ category_totals|length }}

{{ t('dashboard.latest') }}

{% if expenses %}
{% for expense in expenses[:10] %}
{{ expense.title }}
{{ expense.purchase_date }} · {{ expense.vendor }}
{{ expense.amount }} {{ expense.currency }}
{% endfor %}
{% else %}
{{ t('dashboard.empty') }}
{% endif %}

{{ t('dashboard.categories') }}

{{ t('stats.payment_methods') }}

{% endblock %}{% block scripts %}{% endblock %}