{% extends "./layout/default" %} {% block breadcrumbs %} {{ Breadcrumbs.render(Route.getCurrentRoute.getName, category, start, end) }} {% endblock %} {% block content %}
{% if Route.getCurrentRoute.getName == 'categories.show' %} {# both charts #}

{{ trans('firefly.chart_category_in_period', {name: category.name, start: start.formatLocalized(monthAndDayFormat), end: end.formatLocalized(monthAndDayFormat) }) }}

{{ trans('firefly.chart_category_all', {name: category.name }) }}

{% endif %} {% if Route.getCurrentRoute.getName == 'categories.show.all' %} {# all chart #}

{{ trans('firefly.chart_category_all', {name: category.name }) }}

{% endif %}
{% if periods.count > 0 %}

{{ 'showEverything'|_ }}

{% endif %}

{{ 'transactions'|_ }}

{% if periods.count > 0 %} {% include 'list.transactions' %}

{{ 'show_all_no_filter'|_ }}

{% else %} {% include 'list.transactions' with {showBudgets:true, showBill:true} %}

{{ 'show_the_current_period_and_overview'|_ }}

{% endif %}
{% if periods.count > 0 %}
{% for period in periods %} {% if period.spent != 0 or period.earned != 0 or period.sum != 0 %}
{% if period.spent != 0 %} {% endif %} {% if period.earned != 0 %} {% endif %} {% if period.earned != 0 and period.spent != 0 %} {% endif %} {% if period.transferred != 0 %} {% endif %}
{{ 'spent'|_ }} {{ period.spent|formatAmount }}
{{ 'earned'|_ }} {{ period.earned|formatAmount }}
{{ 'sum'|_ }} {{ period.sum|formatAmount }}
{{ 'transferred'|_ }} {{ period.transferred|formatAmountPlain }}
{% endif %} {% endfor %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}