{% load i18n %}
{% if total_table %} {% if view_type == "table" %}
{% for category in total_table.values %} {% endfor %}
{% trans 'Category' %} {% trans 'Income' %} {% trans 'Expense' %} {% trans 'Total' %}
{% if category.name %}{{ category.name }}{% else %}{% trans 'Uncategorized' %}{% endif %} {% for currency in category.currencies.values %} {% if currency.total_income != 0 %} {% else %}
-
{% endif %} {% endfor %}
{% for currency in category.currencies.values %} {% if currency.total_expense != 0 %} {% else %}
-
{% endif %} {% endfor %}
{% for currency in category.currencies.values %} {% if currency.total_final != 0 %} {% else %}
-
{% endif %} {% endfor %}
{% elif view_type == "bars" %}
{{ total_table|json_script:"categoryOverviewData" }} {% endif %} {% else %} {% endif %}