{% extends "./layout/default" %} {% block breadcrumbs %} {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, category, moment, start, end) }} {% endblock %} {% block content %}
{% if moment != 'all' %} {# 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 moment == 'all' %} {# all chart #}

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

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

{{ 'showEverything'|_ }}

{% endif %}

{{ 'transactions'|_ }}

{% include 'list.journals' with {hideCategories: true, hideBills: true} %} {% if periods.count > 0 %}

{{ 'show_all_no_filter'|_ }}

{% else %}

{{ '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 %}