<?php 
// echo $this->db->last_query();
?>
	                <!-- CONTENIDO -->                        
                    <div class="row">
                        <div class="col-lg-9">
                            <div class="panel panel-primary">
                                <div class="panel-heading">
									<i class="fa fa-list"></i>
									<?=$this->lang->line('eap_pag_'.$this->uri->segment(1).'_'.$this->uri->segment(2));?>
									<div class="pull-right">
									<a href='<?=$this->config->item('base_url')?>index.php/perfiles/nuevo/' title="<?=$this->lang->line('eap_perfiles_nuevo')?>" class="btn btn-info btn-circle"><i class="fa fa-plus"></i></a>
									</div>
									<div class="clearfix"></div>
                                </div>
                                <!-- /.panel-heading -->
                                <div class="panel-body">
                                    <div class="table-responsive">
                                        <table class="table table-striped table-hover">
                                            <thead>
                                                <tr>
                                                    <th><?=$this->lang->line('eap_perfiles_nombre')?></th>
                                                    <th><?=$this->lang->line('eap_perfiles_descripcion')?></th>
                                                    <th><?=$this->lang->line('eap_grl_estado')?></th>
                                                    <th><?=$this->lang->line('eap_grl_acciones')?></th>  
                                                </tr>
                                            </thead>
                                            <tbody>
                                            <?php foreach($perfiles as $perfil) : ?>                                    
                                                <tr>
                                                    <td><?php echo $perfil['nombre'] ?></td>
                                                    <td><?php echo $perfil['descripcion'] ?></td>
                                                    <td <?php if (!$perfil['activo']) { echo "class='text-danger'";} ?>><?php echo ($perfil['activo'])?$this->lang->line('eap_grl_estado_activo'):$this->lang->line('eap_grl_estado_inactivo'); ?></td>
                                                    <td>
                                                    <a href='<?=$this->config->item('base_url')?>index.php/perfiles/ver/<?=$perfil['id']?>' title="<?=$this->lang->line('eap_perfiles_ver')?>" class="btn btn-info btn-circle"><i class="fa fa-file-o"></i></a>
                                                    <a href='<?=$this->config->item('base_url')?>index.php/perfiles/editar/<?=$perfil['id']?>/lista' title="<?=$this->lang->line('eap_perfiles_editar')?>" class="btn btn-info btn-circle"><i class="fa fa-edit"></i></a>&nbsp;
                                     
                                                    
                                                    <?php if (!$perfil['activo']) { ?>
                                                    <a href='<?=$this->config->item('base_url')?>index.php/perfiles/cambiar_estado/<?=$perfil['id']?>/activar' title="<?=$this->lang->line('eap_perfiles_activar')?>" class="btn btn-info btn-circle"><i class="fa fa-check"></i></a>&nbsp;
                                                    <?php } else {?>
                                                        <a href='<?=$this->config->item('base_url')?>index.php/perfiles/cambiar_estado/<?=$perfil['id']?>/desactivar' title="<?=$this->lang->line('eap_perfiles_desactivar')?>" class="btn btn-danger btn-circle"><i class="fa fa-times"></i></a>&nbsp;
                                                    <?php }?>
                                                    </td>
                                                </tr>
                                            <? endforeach;?>
                                                </tbody>
                                        </table>
                                    </div>
                                    <!-- /.table-responsive -->
                                </div>
                                <!-- /.panel-body -->
                            </div>
                            <!-- /.panel -->
                        </div>
                        <!-- /.col-lg-9 -->
                    </div>
	                <!-- /.CONTENIDO -->   

                        
