{% extends "./layout/default" %} {% block breadcrumbs %} {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }} {% endblock %} {% block content %}

{{ periodStart }} — {{ periodEnd }}

{{ 'budgeted'|_ }}: {{ budgeted|formatAmountPlain }}
{{ trans('firefly.available_between',{start : periodStart, end: periodEnd }) }}: {{ available|formatAmountPlain }}
{{ trans('firefly.spent_between', {start: periodStart, end: periodEnd}) }}: {{ spent|formatAmount }}

{{ 'createBudget'|_ }}

{% for budget in budgets %}

{% if budgetInformation[budget.id]['currentRep'] %} {{ budget.name }} {% else %} {{ budget.name }} {% endif %}

{% if budgetInformation[budget.id]['otherRepetitions'].count > 0 %} {% endif %}
{{ 'budgeted'|_ }}
{{ session('start').formatLocalized(monthAndDayFormat) }} - {{ session('end').formatLocalized(monthAndDayFormat) }}
{{ defaultCurrency.symbol|raw }}
{% if budgetInformation[budget.id]['currentRep'] %} {% set repAmount = budgetInformation[budget.id]['currentRep'].amount %} {% else %} {% set repAmount = '0' %} {% endif %}
{{ 'spent'|_ }}
{{ session('start').formatLocalized(monthAndDayFormat) }} - {{ session('end').formatLocalized(monthAndDayFormat) }}
{{ budgetInformation[budget.id]['spent']|formatAmount }}
    {% for other in budgetInformation[budget.id]['otherRepetitions'] %}
  • Budgeted {{ other.amount|formatAmountPlain }} between {{ other.startdate.formatLocalized(monthAndDayFormat) }} and {{ other.enddate.formatLocalized(monthAndDayFormat) }}.
  • {% endfor %}
{% if loop.index % 3 == 0 %}
{% endif %} {% endfor %}
{% if inactive|length > 0 %}

{{ 'inactiveBudgets'|_ }}

{% for budget in inactive %} {% if loop.index == inactive.count() %} {{ budget.name }} {% else %} {{ budget.name }}, {% endif %} {% endfor %}
{% endif %} {% endblock %} {% block scripts %} {% endblock %}