<table class="table table-bordered table-condensed table-hover small">
    <thead class="thead-light">
        <tr>
            <th>N.C.</th>
            <th>FECHA</th>
            <th>MONTO</th>
            <th>REFERENCIA</th>
            <th>RECIBO</th>
            <th>*</th>
        </tr>
    </thead>
    <tbody>
        {% set suma = 0 %}
        {% for i in ingresos %}
            <tr>
                <td>{{ loop.index }}</td>
                <td>{{ i.fecMov | date('d-m-Y') }}</td>
                <td>
                    ${{ i.monto | number_format(2,".",",") }}
                    {% set suma = suma + i.monto %}
                </td>
                <td>{{ i.referencia }}</td>
                <td>
                    {% if loop.last %}
                        <a class="btn btn-xs btn-success" target="_blank" href="{{ path('pagos_matriculacion_imprimir_recibo',{'ideIngMat':i.ideIngMat}) }}">
                            <i class="fa fa-print fw"></i> {{ i.numRecibo }}
                        </a>
                    {% else %}
                        <a class="btn btn-xs btn-secondary" target="_blank" href="{{ path('pagos_matriculacion_imprimir_recibo',{'ideIngMat':i.ideIngMat}) }}">
                            <i class="fa fa-print fw"></i> {{ i.numRecibo }}
                        </a>
                    {% endif %}
                </td>
                <td>
                    <a class="btn btn-danger btn-xs">
                        <i class="fa fa-trash fw"></i>
                    </a>
                </td>
            </tr>
        {% else %}
            <tr>
                <td colspan="6" class="text-center">AUN NO SE HAN REGISTRADO PAGOS</td>
            </tr>
        {% endfor %}
    </tbody>
    <tfoot>
        <tr>
            <td colspan="3">TOTAL</td>
            <td>${{ suma | number_format(2,".",",") }}</td>
        </tr>
    </tfoot>
</table>