<div class="row">
    <div class="col-lg-12">
        <table class="table table-condensed table-bordered table-hover">
            <thead>
                <tr style="background-color: cadetblue;color: white;">
                    <th>N.P.</th>
                    <th>MATRICULA</th>
                    <th>NOMBRE DEL ALUMNO</th>
                    <th colspan="5">DOCUMENTOS</th>
                </tr>
            </thead>
            <tbody>
                {% for d in datos %}
                    <tr>
                        <td>{{ loop.index }}</td>
                        <td>{{ d[0].cveCtl }}</td>
                        <td>{{ d[0].apePat }} {{ d[0].apeMat }} {{ d[0].nomAlu }}</td>
                        {% for key, dd in d[1] %}
                            {% if dd != "NO" %}
                                <td>
                                    <a class="btn btn-success btn-xs" href="{{ asset(dd) }}" target="_blank" style="font-size: xx-small;">
                                        {{ key }}
                                    </a>
                                </td>
                            {% else %}
                                <td>
                                    <a class="btn btn-danger btn-xs" href="#" style="font-size: xx-small;">
                                        {{ key }}
                                    </a>
                                </td>
                            {% endif %}
                        {% endfor %}

                    </tr>
                {% else %}
                    <tr>
                        <td colspan="8">SIN DATOS</td>
                    </tr>
                {% endfor %}
            </tbody>
        </table>
    </div><!-- FIN col-lg-12 -->
</div><!-- FIN row -->