{% 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 }}
{% if budgets.count > 0 and inactive.count > 0 %}

{{ 'createBudget'|_ }}

{% endif %}
{% if budgets.count == 0 and inactive.count == 0 %} {% include 'partials.empty' with {what: 'default', type: 'budgets',route: route('budgets.create')} %} {% endif %}
{% for budget in budgets %}

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

{% if budgetInformation[budget.id]['otherLimits'].count > 0 %} {% endif %}
{{ 'budgeted'|_ }}
{{ session('start').formatLocalized(monthAndDayFormat) }} - {{ session('end').formatLocalized(monthAndDayFormat) }}
{{ defaultCurrency.symbol|raw }}
{% if budgetInformation[budget.id]['currentLimit'] %} {% set repAmount = budgetInformation[budget.id]['currentLimit'].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]['otherLimits'] %}
  • Budgeted {{ other.amount|formatAmountPlain }} between {{ other.start_date.formatLocalized(monthAndDayFormat) }} and {{ other.end_date.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 %}