<section class="content">
      <!-- Default box -->
    <div class="box">
        <div class="box-header with-border">
            <h3 class="box-title">Lista de Estudiantes</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/estudiantes/add" class="btn btn-primary"><i class="fa fa-plus" aria-hidden="true"></i> Nuevo estudiante</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>
                                <th>Seccion</th>
                                <th>Acciones</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php if ($estudiantes): ?>
                                <?php $i = 1;?>
                            <?php foreach ($estudiantes as $estudiante): ?>
                                <tr>
                                    <td><?php echo $i; ?></td>
                                    <td><?php echo $estudiante->Apellido1; ?></td>
                                    <td><?php echo $estudiante->Apellido2; ?></td>
                                    <td><?php echo $estudiante->nombre; ?></td>
                                    <td><?php echo $estudiante->Cedula; ?></td>
                                    <td><?php echo $estudiante->telefono; ?></td>
                                    <td><?php echo $estudiante->email; ?></td>

                                    <td><?php echo $estudiante->Seccion; ?></td>
                                    <td>
                                        <a href="<?php echo base_url(); ?>backend/estudiantes/edit/<?php echo $estudiante->IdEstudiante; ?>" class="btn btn-info btn-xs btn-flat" title="Editar"><span class="glyphicon glyphicon-pencil"></span></a>
                                        
                                    </td>
                                </tr>
                                 <?php $i++;?>
                            <?php endforeach;?>
                        <?php endif;?>
                        </tbody>
                    </table>
                </div>
            </div>
            <!-- /.row -->
        </div>
        <!-- /.box-body -->
    </div>
      <!-- /.box -->
</section>