<?php 
        $sql = mysql_query("select * from ingresos where fecha='$hoy'  and usuario='".$_COOKIE['usuario']."' order by id desc") or die(mysql_error());

?>
<div class="panel panel-default">
  
        
       
    
      <div class="panel-body">
        <center>
      <span class="panel-title text-primary">Ingresos</span>
        </center>
        <hr>
      <a href="../pos/ingresos.php" class="btn btn-primary"><i class="bi bi-sticky"></i> Registrar un ingreso</a>
        
    
<div class="table-responsive borddfer p-3">
					<table id="tabla_ingresos" class="table table-hover" data-page-length='8' style="width: 100%; font-size:10px;">
						

			
		
              <th>Cliente</th>
              <th>Concepto</th>
              <th>Monto</th>
         
             
              
						
						<tbody>
            <?php while($r=mysql_fetch_array($sql)){
              
              $c2++;
              $total2+=$r["monto"];
             
              
              ?>
							<tr>
			
             
								<td><i class='bi bi-sticky'></i> <?php echo $r["cliente"]?>
                                <td> <?php echo $r["concepto"]?>
               ,<?php echo $r["ticket"]?>      
                </td>
                 <td><?php echo decimal($r["monto"])?></td>
              
               
             

							</tr>
                                                        <?php }?>
						</tbody>
            <tfoot>
              <br>
             
            </tfoot>
					</table>
				</div>
      </div>

      <div class="panel-footer">
      <span class="label btn-primary h3"> 
        <i class="bi bi-coins"></i>       
       Cant.: <?php echo $c2?> | 
       Total: <?php echo decimal($total2)?>
       </span>       
      </div>
</div>