How about friends I have a restaurant system that I currently have working but I want to improve it in the aspect of placing the tables in a graphical way and not in the form of a list, since I currently display the tables in a list by means of dataTables of the following way:
This is the code of the view where the tables are displayed as shown in the previous image
<table id="mesas" class="table table-bordered table-hover">
<thead>
<tr>
<th>#</th>
<th>Fecha</th>
<th>Mesas</th>
<th>Opciones</th>
</tr>
</thead>
<tbody>
<?php if(!empty($ordenes)):?>
<?php foreach($ordenes as $orden):?>
<tr>
<td>
<?php echo $orden->id;?>
</td>
<td>
<?php echo $orden->fecha;?>
</td>
<?php
$mesas = "";
foreach ($orden->mesas as $mesa){
$mesas .= $mesa->numero.",";
}
?>
<td>
<?php echo substr($mesas, 0, -1);?>
<!-- <button type="button" class="btn btn-link btn-mesa">Cambiar o Unir Mesas</button></td> -->
<td>
<div class="btn-group">
<button type="button" class="btn btn-primary btn-info-pedido" data-toggle="modal" data-target="#modal-venta" value="<?php echo $orden->id;?>"><span class="fa fa-search"></span></button>
<a href="<?php echo base_url()?>movimientos/ordenes/edit/<?php echo $orden->id;?>" class="btn btn-warning"><span class="fa fa-pencil"></span></a>
<?php if($permisos->delete == 1):?>
<a href="<?php echo base_url();?>movimientos/ordenes/pay/<?php echo $orden->id;?>" class="btn btn-success"><i class="fa fa-credit-card" aria-hidden="true"></i></a>
<a href="<?php echo base_url();?>movimientos/ordenes/delete/<?php echo $orden->id;?>" class="btn btn-danger btn-delete"><i class="fa fa-times" aria-hidden="true"></i></a>
<?php endif;?>
</div>
</td>
</tr>
<?php endforeach;?>
<?php endif;?>
</tbody>
</table>
What I need to do is to deploy more graphically something like this:
and the buttons for the actions (options would go under each table) I hope to make myself understood.