<?php 
// echo $this->db->last_query();
?>
	                <!-- CONTENIDO -->                        
                    <div class="row">
                        <div class="col-md-12">
                            <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>
                                <!-- /.panel-heading -->
                                <div class="panel-body">
                                    <div class="table-responsive">
                                        <table class="table table-striped table-hover table-condensed">
                                            <thead>
												<th>Dirección IP </th>
												<th>Cantidad de Ingresos Fallidos</th>
												<th>Banned</th>
												<th>Acciones</th>        
                                            </thead>
                                            <tbody>
											<?php foreach($ingresos as $ingreso) : ?>
												<tr>
													<td ><?php echo $ingreso['ip_address'] ?></td>
													<td ><?php echo $ingreso['quantity'] ?></td>
													<td ><?php if ($ingreso['quantity']>=$max_attempts ) { echo 'Bloqueada'; }?> 
													<td>
													<a href='<?=$this->config->item('base_url')?>index.php/usuarios/ingresos_ver/<?=$ingreso['ip_address']?>' title="Ver Detalle" class="btn btn-info btn-circle"><i class="fa fa-file-o"></i></a>&nbsp;
													<a href='<?=$this->config->item('base_url')?>index.php/usuarios/ingresos_limpiar/<?=$ingreso['ip_address']?>' title="Borrar Ingresos Fallidos" class="btn btn-success btn-circle"><i class="fa fa-trash-o"></i></a>&nbsp;
													</td>
												</tr>
                                            <? endforeach;?>
                                                </tbody>
                                        </table>
                                    </div>
                                    <!-- /.table-responsive -->
                                </div>
                                <!-- /.panel-body -->
                            </div>
                            <!-- /.panel -->
    
                        </div>
                        <!-- /.col-lg-12 -->
                    </div>
	                <!-- /.CONTENIDO --> 
                  