{% extends 'base.html' %}
{% block content %}
FILTERED DATES
<br>

<div class="container text-center" style="border: 1px solid black">
    <div class="row">
        <div class="col">
        Conto: {{conto}}
        </div>
        <div class="col">
        year: {{year}}
        </div>
        <div class="col">
        month: {{month}}
        </div>

    </div>
</div>
<br>
<div class="container text-center" style="border: 1px solid black">
    <div class="row">
    <div class="col">
        <div class="row">
            <div class="col">
                {{transaction_type}}
            </div>
        </div>
        <br>
        <div class="row">
            <div class="col">
                Total Value of planned expenses: {{tot_val_of_planned_expenses}}
            </div>
        </div>
        <div class="row">
            <div class="col">
                Average Value of planned expenses: {{planned_expenses_average}}
            </div>
        </div>
        <br>
        <div class="row">
            <div class="col">
                Planned expenses per conto:
            </div>
        </div>
        {% for key, value in planned_expenses_per_conto.items() %}
        {% if value != 0 %}
            <div class="row">
                <div class="col">
                    {{key}}: {{value}}
                </div>
            </div>
        {% endif %}
        {% endfor %}
        <br>

        <div class="row">
            <div class="col">
                Planned expenses per category:
            </div>
        </div>
        {% for key, value in planned_expenses_per_category.items() %}
        {% if value != 0 %}
            <div class="row">
                <div class="col">
                    {{key}}: {{value}}
                </div>
            </div>
        {% endif %}
        {% endfor %}
    </div>
    </div>
</div>
<br>

{% endblock %}