<section class="content">
      <!-- Default box -->
    <div class="box">
        <div class="box-header with-border">
            <h3 class="box-title">Lista de Profesores</h3>

            <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse">
                <i class="fa fa-minus"></i></button>
                <button type="button" class="btn btn-box-tool" data-widget="remove" data-toggle="tooltip" title="Remove">
                <i class="fa fa-times"></i></button>
             </div>
        </div>
        <div class="box-body">
            <div class="row">
                <div class="col-md-12 text-right">
                    <a href="<?php echo base_url(); ?>backend/Profesores/add" class="btn btn-primary"><i class="fa fa-plus" aria-hidden="true"></i> Nuevo profesor</a>
                </div>
            </div>
            <!-- /.row -->
            <hr>
            <div class="row">
                <div class="col-md-12">
                    <table id="example1" class="table table-bordered table-dataTables">
                        <thead>
                            <tr>
                                <th>#</th>
                                <th>Apellido1</th>
                                <th>Apellido2</th>
                                <th>nombre</th>
                                <th>Cedula</th>
                                <th>Telefono</th>
                                <th>Email</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php if ($Profesores): ?>
                                <?php $i = 1;?>
                            <?php foreach ($Profesores as $profesor): ?>
                                <tr>
                                    <td><?php echo $i; ?></td>
                                    <td><?php echo $profesor->Apellido1; ?></td>
                                    <td><?php echo $profesor->Apellido2; ?></td>
                                    <td><?php echo $profesor->nombre; ?></td>
                                    <td><?php echo $profesor->Cedula; ?></td>
                                    <td><?php echo $profesor->telefono; ?></td>
                                    <td><?php echo $profesor->email; ?></td>
                                    <td>
                                        <a href="<?php echo base_url(); ?>backend/Profesores/edit/<?php echo $profesor->IdUsuario; ?>" class="btn btn-info btn-xs btn-flat" title="Editar"><span class="glyphicon glyphicon-pencil"></span></a>
                                        <a href="<?php echo base_url(); ?>backend/Profesores/delete/<?php echo $profesor->IdUsuario; ?>" class="btn btn-warning btn-remove btn-xs btn-flat" title="Eliminar"><span class="glyphicon glyphicon-remove"></span></a>
                                    </td>
                                </tr>
                                 <?php $i++;?>
                            <?php endforeach;?>
                        <?php endif;?>
                        </tbody>
                    </table>
                </div>
            </div>
            <!-- /.row -->
        </div>
        <!-- /.box-body -->
    </div>
      <!-- /.box -->
</section>