<div class="">
    <div class="page-title">
        <div class="title_left">
            <h3>Docente</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>Historial de las Asignaturas </h2>
                    <div class="clearfix"></div>
                </div>
                <div class="x_content">
                    <!-- include('docente.filtro', ['doc' => $doc, 'data' => $data])-->
                    <div class="">
                        @if (count($doc) > 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">Materia </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 ($doc as $d)
                                <tr class="even pointer">
                                    <td class="text-md-center" data-label="No.">{{ $loop->iteration }}</td>
                                    <td class="text-md-center" data-label="Materia">{{ $d->materia->nombre_mat }}
                                    </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({{ $d->cve_adocmat }})"><i
                                                    class="fa fa-eye"></i></button>
                                        </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>
