{% load i18n fontawesome_5 ksp_filters %}

<h3>{% trans 'Deductions' %}</h3>
<strong>
    {% blocktrans %}
    Recorded = Counts the deductions whose interventions have been recorded
    {% endblocktrans %}
</strong>
<div class="table-container">
    <table class="table table-hover">
        <thead>
            <tr>
                <th scope="col" class="w-25">{% trans 'Total' %}</th>
                <th scope="col" class="w-25">{% trans 'Total' %} {% trans 'Surface' %}</th>
                <th scope="col">{% fa5_icon 'bookmark' %} {% trans 'Recorded' %}</th>
                <th scope="col">{% fa5_icon 'bookmark' %} {% trans 'Recorded' %} {% trans 'Surface' %}</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>{{report.eco_account_report.queryset_deductions_count|default_if_zero:"-"}}</td>
                <td>
                    {{report.eco_account_report.deductions_sq_m|default_if_zero:"-"}}
                    {% if report.eco_account_report.deductions_sq_m > 0 %}
                        m²
                    {% endif %}
                </td>
                <td>{{report.eco_account_report.queryset_deductions_recorded_count|default_if_zero:"-"}}</td>
                <td>
                    {{report.eco_account_report.recorded_deductions_sq_m|default_if_zero:"-"}}
                    {% if report.eco_account_report.recorded_deductions_sq_m > 0 %}
                        m²
                    {% endif %}
                </td>
            </tr>
        </tbody>
    </table>
</div>