{% if lic == 2 %}
    {# EXAMEN ÚNICO #}
    <table class="table table-bordered table-condensed table-hover table-responsive table-striped" style="font-size: xx-small;">
        <thead>
            <tr style="background-color: green;color: white;">
                <th>#</th>
                <th>CVE. CTL.</th>
                <th>APE. PATERNO</th>
                <th>APE. MATERNO</th>
                <th>NOMBRE(S)</th>
                <th>NIVEL</th>
                <th>APLICACIÓN</th>
                <th>TEL. CASA</th>
                <th>TEL.CEL</th>
                <th>CERTIFICADO</th>
                <th>ACTA DE NACIMIENTO</th>                
                <th>CURP</th>
                <th>FECHA</th>
                <th>INSCRIPCIÓN</th>
                <th>COSTO EXAMEN</th>
                <th>*</th>
            </tr>
        </thead>
        <tbody>
            {% set tipoUsuario = app.session.get('rol') %}
            {% for a in alumnos %}
                <tr>
                    <td>{{loop.index}}</td>
                    <td>
                        <a href="{{path('consulta_alumno_dos', {ideAlu: a.ideAlu} )}}" target="_blank" style="color: black;">{{a.cveCtl}}</a>
                        {% if tipoUsuario == 3 %}
                            <a href="{{path('vista_pago',{cveCtl:a.cveCtl})}}" class="btn btn-xs btn-success" target="_blank" data-toggle="tooltip" title="Ir a Caja..." data-placement="right">$</a>
                        {% endif %}
                    </td>
                    <td>{{a.apePat}}</td>
                    <td>{{a.apeMat}}</td>
                    <td>{{a.nomAlu}}</td>
                    <td>{{a.cveLic.nomLic}}</td>
                    <td>{{a.cveNumApli.numeroAplicacion}}</td>
                    <td>{{a.telefono}}</td>
                    {% if a.telefonoCelular == ""%}
                        <td style="background-color: yellow;">{{a.telefonoCelular}}</td>
                    {% else %}
                        <td>{{a.telefonoCelular}}</td>
                    {% endif %}

                    {% if a.cerSec == 1 and a.cerSecCopia == 1 %}
                        <td>X</td>
                    {% elseif a.cerSec == 1 and a.cerSecCopia ==0 %}
                        <td>X</td>
                    {% elseif a.cerSec == 0 and a.cerSecCopia == 1 %}
                        <td>C</td>
                    {% elseif a.cerSec == 0 and a.cerSecCopia == 0 %}
                        <td style="background-color: yellow;">----</td>
                    {% endif %}

                    {% if a.actNac == 1 and a.actNacCopia == 1 %}
                        <td>X</td>
                    {% elseif a.actNac == 1 and a.actNacCopia ==0 %}
                        <td>X</td>
                    {% elseif a.actNac == 0 and a.actNacCopia == 1 %}
                        <td>C</td>
                    {% elseif a.actNac == 0 and a.actNacCopia == 0 %}
                        <td style="background-color: yellow;">----</td>
                    {% endif %}

                    {% if a.copCurp == 1 and a.copCurpCopia == 1 %}
                        <td>X</td>
                    {% elseif a.copCurp == 1 and a.copCurpCopia ==0 %}
                        <td>X</td>
                    {% elseif a.copCurp == 0 and a.copCurpCopia == 1 %}
                        <td>X</td>
                    {% elseif a.copCurp == 0 and a.copCurpCopia == 0 %}
                        <td style="background-color: yellow;">----</td>
                    {% endif %}
                    <td style="text-align: right;">
                        {% if a.fecTer == null %}
                            SIN DEFINIR
                        {% else %}
                            {% set hoy = "now" | date('Y') %}
                            {% set total = hoy - (a.fecTer | date('Y')) %}
                            <i style="font-weight: bolder;">{{total}} años</i>
                            <br>
                            {{ a.fecTer | date('d-F-Y') | replace({'January':'Enero','February':'Febrero','March':'Marzo',
'April':'Abril','May':'Mayo','June':'Junio','July':'Julio','August':'Agosto','September':'Septiembre','October':'Octubre','November':'Noviembre','December':'Diciembre'})}}
                        {% endif %}
                    </td>
                    <td style="text-align: right;">${{a.costoInscripcion}}</td>
                    <td style="text-align: right;">${{a.costoMensualidad}}</td>
                    {% if a.tipoAlumno == 2 %}
                        <td><a class="btn btn-xs btn-success" href="{{path('ficha_bachillerato',{ideAlu:a.ideAlu})}}" target="_blank" style="font-size: xx-small;">OFICIO</a></td>
                    {% endif %}
                </tr>
            {% else %}
                <tr>
                    <td colspan="6">NO HAY DATOS</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
{% else %}
    <table class="table table-bordered table-condensed table-hover table-responsive table-striped" style="font-size: smaller;">
        <thead>
            <tr>
                <th>#</th>
                <th>CVE. CTL.</th>
                <th>APE. PATERNO</th>
                <th>APE. MATERNO</th>
                <th>NOMBRE(S)</th>
                <th>NIVEL</th>
                <th>MODALIDAD</th>
                <th>NUM.</th>
                <th>TEL. CASA</th>
                <th>TEL.CEL</th>
                <th>REINSCRIPCION</th>
                <th>COLEGIATURA</th>
                <th>FECHA DE PAGO</th>
            </tr>
        </thead>
        <tbody>
            {% set tipoUsuario = app.session.get('rol') %}
            {% for a in alumnos %}
                <tr>
                    <td>{{loop.index}}</td>
                    <td>
                        <a href="{{path('consulta_alumno_dos', {ideAlu: a.ideAlu} )}}" target="_blank" style="color: black;">{{a.cveCtl}}</a>
                        {% if tipoUsuario == 3 %}
                            <a href="{{path('vista_pago',{cveCtl:a.cveCtl})}}" class="btn btn-xs btn-success" target="_blank" data-toggle="tooltip" title="Ir a Caja..." data-placement="right">$</a>
                        {% endif %}
                    </td>
                    <td>{{a.apePat}}</td>
                    <td>{{a.apeMat}}</td>
                    <td>{{a.nomAlu}}</td>
                    <td>{{a.cveLic.nomLic}}</td>
                    {% if a.modalidad == "SEMESTRAL" %}
                        <td style="background-color: yellow;">{{a.modalidad}}</td>
                    {% else %}
                        <td>{{a.modalidad}}</td>
                    {% endif %}

                    {% if a.tipoAlumno == 2 %}
                        <td>{{a.cveNumApli.numeroAplicacion}}</td>
                    {% else %}
                        <td>{{a.numero}}</td>
                    {% endif %}
                    <td>{{a.telefono}}</td>
                    <td>{{a.telefonoCelular}}</td>
                    {% if a.tipoAlumno == 2 %}
                        <td>{{a.costoInscripcion}}</td>
                    {% else %}
                        <td>{{a.costoReinscripciones}}</td>
                    {% endif %}

                    <td>{{a.costoMensualidad}}</td>
                    <td>{{a.corteA}}</td>
                    {% if a.tipoAlumno == 2 %}
                        <td><a class="btn btn-xs btn-success" href="{{path('ficha_bachillerato',{ideAlu:a.ideAlu})}}" target="_blank">OFICIO</a></td>
                    {% endif %}
                </tr>
            {% else %}
                <tr>
                    <td colspan="6">NO HAY DATOS</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
    <div class="row">

        <div class="col-lg-12 table-responsive">
            <table class="table table-bordered table-condensed table-hover table-responsive table-striped" style="font-size: smaller;">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>CVE. CTL.</th>
                        <th>APE. PATERNO</th>
                        <th>APE. MATERNO</th>
                        <th>NOMBRE(S)</th>
                        <th>NIVEL</th>
                        <th>MODALIDAD</th>
                        <th>NUM.</th>
                        <th>TEL. CASA</th>
                        <th>TEL.CEL</th>
                        <th>REINSCRIPCION</th>
                        <th>COLEGIATURA</th>
                        <th>FECHA DE PAGO</th>
                    </tr>
                </thead>
                <tbody>
                    {% set tipoUsuario = app.session.get('rol') %}
                    {% for ap in alumnosPagos %}
                        {% if ap['0']=='1' %}
                            <tr style="background-color: orange;">
                            {% elseif ap['0'] == '2' %}
                            <tr>
                            {% elseif ap['0'] == '0' %}
                            <tr style="background-color: red;">
                            {% endif %}
                            <td>{{loop.index}}</td>
                            <td>
                                <a href="{{path('consulta_alumno_dos', {ideAlu: ap['1'].ideAlu} )}}" target="_blank" style="color: black;">{{ap['1'].cveCtl}}</a>
                                {% if tipoUsuario == 3 %}
                                    <a href="{{path('vista_pago',{cveCtl:ap['1'].cveCtl})}}" class="btn btn-xs btn-success" target="_blank" data-toggle="tooltip" title="Ir a Caja..." data-placement="right">$</a>
                                {% endif %}
                            </td>
                            <td>{{ap['1'].apePat}}</td>
                            <td>{{ap['1'].apeMat}}</td>
                            <td>{{ap['1'].nomAlu}}</td>
                            <td>{{ap['1'].cveLic.nomLic}}</td>
                            {% if ap['1'].modalidad == "SEMESTRAL" %}
                                <td style="background-color: yellow;">{{ap['1'].modalidad}}</td>
                            {% else %}
                                <td>{{ap['1'].modalidad}}</td>
                            {% endif %}

                            {% if ap['1'].tipoAlumno == 2 %}
                                <td>{{ap['1'].cveNumApli.numeroAplicacion}}</td>
                            {% else %}
                                <td>{{ap['1'].numero}}</td>
                            {% endif %}
                            <td>{{ap['1'].telefono}}</td>
                            <td>{{ap['1'].telefonoCelular}}</td>
                            {% if ap['1'].tipoAlumno == 2 %}
                                <td>{{ap['1'].costoInscripcion}}</td>
                            {% else %}
                                <td>{{ap['1'].costoReinscripciones}}</td>
                            {% endif %}

                            <td>{{ap['1'].costoMensualidad}}</td>
                            <td>{{ap['1'].corteA}}</td>
                            {% if ap['1'].tipoAlumno == 2 %}
                                <td><a class="btn btn-xs btn-success" href="{{path('ficha_bachillerato',{ideAlu:ap['1'].ideAlu})}}" target="_blank">OFICIO</a></td>
                            {% endif %}
                        </tr>
                    {% else %}
                        <tr>
                            <td colspan="6">NO HAY DATOS</td>
                        </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
{% endif %}