<?php
	if(isset($cajas)):
		foreach($cajas as $caja):
?>
<tr onclick="cajas.cargarDetallesCajas('<?php echo $caja->id_caja;?>');" style="cursor:pointer;">
	<td>
		<?php if($caja->estado_caja==0):?>
		<button type="button" class="btn btn-default btn-circle"><i class="fa fa-times"></i></button>
		<?php else:?>
		<button type="button" class="btn btn-primary btn-circle"><i class="fa fa-check"></i></button>
		<?php endif;?>
	</td>
	<td>
		<h4><?php echo $caja->nombre_caja;?></h4>
		<small><?php echo $caja->direccion_ip_caja;?></small>
	</td>
</tr>
<?php
		endforeach;
	endif;
?>