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

{{ 'showEverything'|_ }}

{{ 'transactions'|_ }}

{% include 'list.journals-tasker' with {hideBudgets:true, hideBills:true} %}
{% for limit in limits %}
{{ 'amount'|_ }} {{ limit.amount|formatAmount }}
{{ 'spent'|_ }} {{ limit.spent|formatAmount }}
{% set overspent = limit.amount + limit.spent < 0 %} {% if overspent %} {% set pct = (limit.spent != 0 ? (limit.amount / (limit.spent*-1))*100 : 0) %}
{% else %} {% set pct = (limit.amount != 0 ? (((limit.spent*-1) / limit.amount)*100) : 0) %}
{% endif %}
{% endfor %}

{{ 'showEverything'|_ }}

{% endblock %} {% block scripts %} {% endblock %}