
<?php 
        $sql = mysql_query("select * from egresos 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">Gastos</span>
        </center>
        <hr>
      <a href="../pos/egresos.php" class="btn btn-danger"><i class="bi bi-sticky"></i> Registrar un gasto</a>
        
       
           
<div class="table-responsive borddfer p-3">
					<table class="table table-hover" data-page-length='8' style="width: 100%">
						

			
		
              <th>Cliente</th>
              <th>Concepto</th>
              <th>Monto</th>
         
             
              
						
						<tbody>
            <?php while($r=mysql_fetch_array($sql)){
              
              $c3++;
              $total3+=$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-danger h3"> 
        <i class="bi bi-coins"></i>       
       Cant.: <?php echo $c3?> | 
       Total: <?php echo decimal($total3)?>
       </span>       
      </div>
</div>