{% extends "./layout/default.twig" %} {% block content %} {{ Breadcrumbs.renderIfExists }} {% if count == 0 %}

{{ 'welcome'|_ }}

Create a new asset account to get started.

Start from scratch

{% else %} {% include 'partials/boxes.twig' %}
Savings {{ savingsTotal|formatAmount }}
{% if savings|length == 0 %}

Mark your asset accounts as "Savings account" to fill this panel.

{% else %} {% for account in savings %}
{{ account.startBalance|formatAmount }}
{% if account.difference < 0 %}
{% if account.percentage <= 50 %} {{account.difference|formatAmountPlain}} {% endif %}
{% if account.percentage > 50 %} {{account.difference|formatAmountPlain}} {% endif %}
{% else %}
{% if account.percentage <= 50 %} {{account.difference|formatAmountPlain}} {{account.difference|formatAmountPlain}} {% endif %}
{% if account.percentage > 50 %} {{account.difference|formatAmountPlain}} {% endif %}
{% endif %}
{{ account.endBalance|formatAmount }}
{% endfor %} {% endif %}
Piggy banks
{% if piggyBankAccounts|length == 0%}

Create piggy banks to fill this panel.

{% else %} {% for account in piggyBankAccounts %}
{{ account.startBalance|formatAmount }}
{% if account.percentage <= 50 %} {{account.piggyBalance|formatAmountPlain}} divided {% endif %}
{% if account.percentage > 50 %} {{account.difference|formatAmountPlain}} left to divide {% endif %}
{{ account.piggyBalance|formatAmount }}
{% endfor %} {% endif %}
{% for data in transactions %}
{{data[1].name}} ({{ (data[1]|balance)|formatAmount }})
{% include 'list/journals-tiny.twig' with {'transactions': data[0],'account': data[1]} %}
{% endfor %}
{% endif %} {% endblock %} {% block scripts %} {% endblock %}