<div class="col-lg-12">
    <div class="card border-secondary mb-1">
        <div class="card-header bg-secondary border-secondary text-white">
            <i class="fas fa-building mr-1"></i>
            DETALLES ESPECIALIDAD
        </div>
        <div class="card-body">
            <div class="row">
                <div class="col-lg-12">

                    <div class="row">
                        <div class="col-lg-12">
                            {{especialidad.cveNivAca.nombre}} EN {{ especialidad.nomLic }}
                        </div><!-- FIN col-lg-12 -->
                        <div class="col-lg-12 table-responsive" style="height: 400px;">
                            <table class="table table-bordered table-condensed table-hover small">
                                <thead class="thead-light">
                                    <tr class="text-center">
                                        <th class="estatico text-center">N.C.</th>
                                        <th class="estatico text-center">CLAVE</th>
                                        <th class="estatico text-center">ALUMNO</th>
                                        <th class="estatico text-center">CUATRI</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {% set total = 0 %}
                                    {% set cuatri = "" %}
                                    {% set indice = 1 %}

                                    {% for a in alumnos %}
                                        {% if cuatri == a.numero %}
                                            {% set indice = indice + 1 %}
                                        {% else %}
                                            {% set cuatri = a.numero %}
                                            {% set indice = 1 %}

                                            <tr>
                                                <td colspan="4" class="text-center" style="padding: 0px;background-color: lightskyblue;">
                                                    <b>{{ cuatri }}°</b>
                                                </td>
                                            </tr>
                                        {% endif %}
                                        <tr>
                                            <td class="text-center">
                                                {{ indice }}
                                            </td>
                                            <td class="text-center">
                                                <a href="{{path('consulta_alumno_dos', {ideAlu: a.ideAlu} )}}" target="_blank" style="color: black;">{{a.cveCtl}}</a>
                                            </td>
                                            <td class="text-left">
                                                {{ a.apePat }} {{ a.apeMat }} {{ a.nomAlu }}
                                            </td>
                                            <td class="text-center">{{ a.numero }}°</td>
                                            {% set total = total + 1 %}
                                        </tr>
                                    {% endfor %}
                                </tbody>
                                <tfoot>
                                    <tr style="background-color: #e9ecef;font-weight: bold;">
                                        <td colspan="3" class="text-right">TOTAL</td>
                                        <td class="text-center">{{ total }}</td>
                                    </tr>
                                </tfoot>
                            </table>

                        </div><!-- FIN col-lg-12 -->
                    </div><!-- FIN row -->

                </div><!-- FIN col-lg-12 -->
            </div><!-- FIN row -->
        </div><!-- FIN card-body -->
    </div><!-- FIN card -->
</div><!-- FIN col-lg-12 -->