<table class="table table-condensed table-bordered table-hover small">
    <thead class="thead-light">
        <tr>
            <th>#</th>
            <th>CVE CTL</th>
            <th>REFERENCIA</th>
            <th>MONTO</th>
            <th>RECARGOS</th>
            <th>TOTAL</th>
        </tr>
    </thead>
    <tbody>
        {% set total = 0 %}
        {% if ingresosDos is defined and ingresosDos | length > 0 %}
            {% for i in ingresosDos %}
                <tr>
                    <td>{{loop.index}}</td>
                    <td>{{i.cveAlu.cveCtl}}</td>
                    <td>{{i.referencia}}</td>
                    <td>{{i.monto}}</td>
                    <td>{{i.recargos}}</td>
                    <td>{{i.total}}</td>
                    {% set total = total + i.total %}
                </tr>
            {% endfor %}
        {% endif %}
    </tbody>
    <tfoot>
        <tr>
            <td colspan="5" class="text-right">TOTAL</td>
            <td>${{total}}</td>
        </tr>
    </tfoot>
</table>