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

{{ 'welcome'|_ }}

{{ 'createNewAsset'|_ }}

{{ 'createNewAssetButton'|_ }}

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

{{ 'markAsSavingsToContinue'|_ }}

{% 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 %}
{{ 'piggyBanks'|_ }}
{% if piggyBankAccounts|length == 0%}

{{ 'createPiggyToContinue'|_ }}

{% else %} {% for account in piggyBankAccounts %}
{{ account.startBalance|formatAmount }}
{% if account.percentage <= 50 %} {{account.piggyBalance|formatAmountPlain}} {{ 'divided'|_}} {% endif %}
{% if account.percentage > 50 %} {{account.difference|formatAmountPlain}} {{ 'toDivide'|_}} {% 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 %}