{% extends "base.html" %} {% load static %} {% load i18n %} {% load l10n %} {% block title %}{% trans "Dashboard" %}{% endblock %} {% block content %}

{% trans "Dashboard" %}

{# ────────────────────────────────────────────── #} {# SPOJENÝ PANEL: Welcome + Profile summary #} {# ────────────────────────────────────────────── #}
{# ĽAVÁ ČASŤ – pôvodný welcome obsah #}
{% blocktrans with name=user.get_full_name %}

Welcome, {{ name }}!

{% endblocktrans %} {% trans "More" %}
{# PRAVÁ ČASŤ – pôvodný Profile summary box #}

{% trans "Profile summary" %}

{% if profile_income_total or profile_expenses_total %} {% blocktrans with inc=profile_income_total|floatformat:2 %}

Total income: {{ inc }} EUR

{% endblocktrans %} {% blocktrans with exp=profile_expenses_total|floatformat:2 %}

Total expenses: {{ exp }} EUR

{% endblocktrans %} {% else %}

{% trans "No transactions for this profile yet." %}

{% endif %}
{% if profile_income_total or profile_expenses_total %}

{% trans "Statistic" %}

{% endif %}
{# ─────────────────────────── #} {# KARTY ÚČTOV #} {# ─────────────────────────── #} {% for account in accounts %}

{{ account.name }}

{% trans 'Card Image' %}
{{ account.iban }}
{% blocktrans with bal=account.balance|floatformat:2 %}

Available balance: {{ bal }} EUR

{% endblocktrans %}
{% with beneficiaries=account.payer_transaction_set.all payers=account.beneficiary_transaction_set.all %} {% if beneficiaries or payers %}

{% trans "Statistic" %}

{% else %}

{% trans "No transactions were found to create the chart" %}

{% endif %} {% endwith %}
{% endfor %}
{# ---------- PROFILE EXTEND PANEL (s 30d / 6m / 12m) ---------- #}
{% trans "Profile payments statistics" %}
{# ---------- PAYMENT PANEL PRE DASHBOARD (NOVÁ PLATBA) ---------- #}
{% endblock %}