{% extends 'CmBundle:Z:baseDos.html.twig' %}

{% block stylesheet %}
    <!-- Bootstrap Core CSS -->
    <link href="{{asset('vendor/bootstrap/css/bootstrap.min.css')}}" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="{{asset('vendor/metisMenu/metisMenu.min.css')}}" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="{{asset('dist/css/sb-admin-2.css')}}" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="{{asset('vendor/font-awesome/css/font-awesome.min.css')}}" rel="stylesheet" type="text/css">
{% endblock %}

{% block javascripts %}
    <!-- jQuery -->
    <script src="{{asset('vendor/jquery/jquery.min.js')}}"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="{{asset('vendor/bootstrap/js/bootstrap.min.js')}}"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="{{asset('vendor/metisMenu/metisMenu.min.js')}}"></script>

    <!-- Custom Theme JavaScript -->
    <script src="{{asset('dist/js/sb-admin-2.js')}}"></script>
{% endblock %}

{% block content %}
    <div class="row">
        <h3 class="text-center">CONSULTA DE ESTATUS</h3>
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 table-responsive">
            <table class="table table-condensed table-sobre table-striped">
                <thead>
                <th>NP</th>
                <th>CLAVE</th>
                <th>DESCRIPCION</th>
                <th>FEC MOV</th>
                <th>TIP STA</th>
                <th></th>
                </thead>
                <tbody>
                    {% if estatus is defined %}
                        {% for e in estatus %}
                            <tr>
                                <td>{{loop.index}}</td>
                                <td>{{e.cveEst}}</td>
                                <td>{{e.desEst}}</td>
                                <td>{{e.fecMov | date('d-m-Y')}}</td>
                                {% if e.tipEst == 1 %}
                                    <td>Empleado</td>
                                {% elseif e.tipEst == 2 %}
                                    <td>Plantel</td>
                                {% elseif e.tipEst == 3 %}
                                    <td>Colegiatura</td>
                                {% elseif e.tipEst == 4 %}
                                    <td>Alumnos</td>
                                {% elseif e.tipEst == 5 %}
                                    <td>Licenciaturas</td>
                                {% elseif e.tipEst == 6 %}
                                    <td>Becas</td>
                                {% endif %}
                            </tr>
                        {% endfor %}
                    {% endif %}
                </tbody>
            </table>
        </div>
    </div>

{% endblock %}
