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

{{ start.formatLocalized(monthAndDayFormat) }} — {{ end.formatLocalized(monthAndDayFormat) }}

{{ 'budgeted'|_ }}: {{ budgeted|formatAmountPlain }}
{{ trans('firefly.available_between',{start: start.formatLocalized(monthAndDayFormat), end: end.formatLocalized(monthAndDayFormat) }) }}: {{ available|formatAmountPlain }}
{{ trans('firefly.spent_between', {start: start.formatLocalized(monthAndDayFormat), end: end.formatLocalized(monthAndDayFormat)}) }}: {{ spent|formatAmount }}
{% if paginator.count > 0 and inactive.count > 0 %}

{{ 'createBudget'|_ }}

{% endif %}
{% if paginator.count == 0 and inactive.count == 0 and page == 1 %} {% 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'|_ }}

{{ 'createBudget'|_ }}
{{ paginator.render|raw }}
{% for budget in paginator %} {% if budgetInformation[budget.id]['currentLimit'] %} {% set repAmount = budgetInformation[budget.id]['budgeted'] %} {% else %} {% set repAmount = '0' %} {% endif %} {% endfor %}
{{ 'budget'|_ }} {{ 'budgeted'|_ }} {{ 'left'|_ }} ({{ 'per_day'|_|lower }})
{% if budgetInformation[budget.id]['currentLimit'] %} {{ budget.name }} {% else %} {{ budget.name }} {% endif %}
{{ defaultCurrency.symbol|raw }}
{{ (repAmount + budgetInformation[budget.id]['spent'])|formatAmount }} {% if repAmount + budgetInformation[budget.id]['spent'] > 0 %} ({{ ((repAmount + budgetInformation[budget.id]['spent']) / activeDaysLeft)|formatAmount }}) {% endif %}
{{ paginator.render|raw }}
{% 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 %}