{% extends "base.html" %} {% block title %}Accounts — Friday Budgeting Pro{% endblock %} {% block content %}
No bank accounts connected yet. Connect a bank to get started.
{% else %} {% for institution, data in grouped_accounts.items() %}| Account | Type | Balance | |
|---|---|---|---|
| {{ acct.name or '(unnamed)' }} {% if acct.mask %} ···{{ acct.mask }} {% endif %} | {{ acct.subtype or acct.type or '—' }} | {% set balance = acct.balance_current if acct.balance_current is not none else acct.balance_available %} {% if balance is not none %} {% set currency = acct.currency or 'CAD' %} {# Credit cards: Plaid returns amount owed as positive — negate for display #} {% set display_balance = -balance if acct.type == 'credit' else balance %} {% if currency == 'CAD' %}C$ {% elif currency == 'USD' %}US$ {% elif currency == 'GBP' %}£ {% elif currency == 'EUR' %}€ {% else %}{{ currency }} {% endif %}{{ "%.2f"|format(display_balance) }} {% else %} — {% endif %} |