<div class="">
    <div class="page-title">
        <div class="title_left">
            <h3>Aula</h3>
        </div>
    </div>

    <div class="clearfix"></div>

    <div class="row">
        <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="x_panel">
                <div class="x_title">
                    <h2>Listado de Aula</h2>
                    <div class="clearfix"></div>
                </div>
                <div class="x_content">
                    @include('aula.filtro', ['aula' => $aula, 'data' => $data])
                    <div class="">
                        @if (count($aula) > 0)
                            <table id="tabla" class="table table-striped jambo_table bulk_action">
                                <thead>
                                    <tr class="headings">
                                        <th class="column-title text-center">No.</th>
                                        <th class="column-title text-center">Id Aula </th>
                                        <th class="column-title text-center">Ubicación </th>
                                        <th class="column-title text-center">Capacidad </th>
                                        <th class="column-title text-center">Tipo </th>
                                        <th class="column-title text-center no-link last"><span
                                                class="nobr">Acción</span>
                                        </th>
                                        <th class="bulk-actions" colspan="7">
                                            <a class="antoo" style="color:#fff; font-weight:500;">Bulk Actions
                                                (
                                                <span class="action-cnt"> </span> ) <i
                                                    class="fa fa-chevron-down"></i></a>
                                        </th>
                                    </tr>
                                </thead>

                                <tbody>
                                    @foreach ($aula as $a)
                                        <tr class="even pointer">
                                            <td class="text-md-center" data-label="No.">{{ $loop->iteration }}</td>
                                            <td class="text-md-center" data-label="Id Aula">{{ $a->id_aula }}
                                            </td>
                                            <td class="text-md-center" data-label="Ubicación">{{ $a->ubicacion_aula }}
                                            </td>
                                            <td class="text-md-center" data-label="Capacidad">{{ $a->capacidad_aula }}
                                            </td>
                                            <td class="text-md-center" data-label="Tipo">{{ $a->tipo_aula }}</td>
                                            <td class="py-1 text-md-center" data-label="Acción">
                                                <div class="">
                                                    <button type="button" class="btn btn-success btn-sm"
                                                        data-toggle="tooltip" data-placement="top" title=""
                                                        data-original-title="Vista Previa"
                                                        onclick="consultar_aula({{ $a->cve_aula }})"><i
                                                            class="fa fa-eye"></i></button>
                                                    <button type="button" class="btn btn-info btn-sm"
                                                        data-toggle="tooltip" data-placement="top" title=""
                                                        data-original-title="Modificar"
                                                        onclick="edit_aula({{ $a->cve_aula }})"><i
                                                            class="fa fa-pencil"></i></button>
                                                    <!--modal de confirmacion para la eliminacion de un registro-->
                                                    <button type="button" class="btn btn-danger btn-sm"
                                                        data-toggle="tooltip" data-placement="top" title=""
                                                        data-original-title="Eliminar" title="Confirmacion"
                                                        onclick="modalConfirm('¿Está seguro(a) qué deseas eliminar la aula <span >{{ $a->id_aula }}</span>?','delete_aula({{ $a->cve_aula }});');"><i
                                                            class="fa fa-trash-o tam-ico"></i></button>
                                                    <!--modal de confirmacion para la eliminacion de un registro-->
                                                </div>
                                            </td>
                                        </tr>
                                    @endforeach
                                </tbody>
                            </table>
                        @else
                            <div class="text-center">
                                <label class="" for="">No se encontraron resultados</label>
                            </div>
                        @endif
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(document).ready(function() {
        $('[data-toggle="tooltip"]').tooltip();
    });
</script>
<script>
    $(document).ready(function() {
        $('[data-toggle="tooltip"]').click(function() {
            $('[data-toggle="tooltip"]').tooltip("hide");

        });
    });
</script>
