<div class="">
    <div class="page-title">
        <div class="title_left">
            <h3>Plan de Estudios</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 del Plan de Estudios</h2>
                    <div class="clearfix"></div>
                </div>
                <div class="x_content">
                    @include('plan_estudios.filtro', ['planEst' => $planE, 'data' => $data])
                    <div class="">
                        @if (count($planE) > 0)
                            <table id="tabla" class="table table-striped jambo_table bulk_action">
                                <thead>
                                    <tr class="headings">
                                        <th class="column-title text-md-center">No.</th>
                                        <th class="column-title text-md-center"> Clave oficial</th>
                                        <th class="column-title text-md-center"> Nombre</th>
                                        <th class="column-title text-md-center"> Retícula</th>
                                        <th class="column-title text-md-center"> Nivel escolar</th>
                                        <th class="column-title text-md-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 ($planE as $pe)
                                        <tr class="even pointer">
                                            <td class="text-md-center" data-label="No. ">{{ $loop->iteration }}</td>
                                            <td class="text-md-center" data-label="Clave oficial: ">
                                                {{ $pe->claveOfi_planest }}</td>
                                            <td class="text-md-left" data-label="Nombre: ">{{ $pe->nombre_planest }}
                                            </td>
                                            <td class="text-md-center" data-label="Retícula: ">
                                                {{ $pe->reticula_planest }}
                                            </td>
                                            <td class="text-md-center" data-label="Nivel escolar: ">
                                                {{ $pe->nivesc_planest }}
                                            </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_planestudios({{ $pe->cve_planest }})"><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_planestudios({{ $pe->cve_planest }})"><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 el registro <span >{{ $pe->nombre_planest }}</span>?','delete_planestudios({{ $pe->cve_planest }});');"><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>
