{% load i18n fontawesome_5 ksp_filters %}
<h3>{% trans 'Compensated by' %}</h3>
<div class="table-container scroll-300">
    <table class="table table-hover">
        <thead>
        <tr>
            <th class="w-25" scope="col">{% trans 'Compensation type' %}</th>
            <th class="w-25" scope="col">{% trans 'Total' %}</th>
            <th class="w-25" scope="col">{% fa5_icon 'star' %} {% trans 'Checked' %}</th>
            <th class="w-25" scope="col">{% fa5_icon 'bookmark' %} {% trans 'Recorded' %}</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <th>{% trans 'Compensation' %}</th>
            <td>{{report.intervention_report.compensation_sum|default_if_zero:"-"}}</td>
            <td>{{report.intervention_report.compensation_sum_checked|default_if_zero:"-"}}</td>
            <td>{{report.intervention_report.compensation_sum_recorded|default_if_zero:"-"}}</td>
        </tr>
        <tr>
            <th>{% trans 'Payment' %}</th>
            <td>{{report.intervention_report.payment_sum|default_if_zero:"-"}}</td>
            <td>{{report.intervention_report.payment_sum_checked|default_if_zero:"-"}}</td>
            <td>{{report.intervention_report.payment_sum_recorded|default_if_zero:"-"}}</td>
        </tr>
        <tr>
            <th>{% trans 'Deductions' %}</th>
            <td>{{report.intervention_report.deduction_sum|default_if_zero:"-"}}</td>
            <td>{{report.intervention_report.deduction_sum_checked|default_if_zero:"-"}}</td>
            <td>{{report.intervention_report.deduction_sum_recorded|default_if_zero:"-"}}</td>
        </tr>
        </tbody>
    </table>
</div>