{% 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')} %} {# make FF ignore demo for now. #} {% set shownDemo = true %} {% endif %} {# date thing #}

{{ 'budget_period_navigator'|_ }}

{{ 'budgets'|_ }}

{% for budget in budgets %} {% if budgetInformation[budget.id]['currentLimit'] %} {% set repAmount = budgetInformation[budget.id]['budgeted'] %} {% else %} {% set repAmount = '0' %} {% endif %} {% endfor %}
{{ 'budget'|_ }} {{ 'budgeted'|_ }} {{ 'left'|_ }}
{% if budgetInformation[budget.id]['currentLimit'] %} {{ budget.name }} {% else %} {{ budget.name }} {% endif %}
{{ defaultCurrency.symbol|raw }}
{{ (repAmount + budgetInformation[budget.id]['spent'])|formatAmount }}
{% if inactive|length > 0 %}

{{ 'inactiveBudgets'|_ }}

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