<?php 
        $sql = mysql_query("select * from ventas where fecha='$hoy' and estado!='Anulada' and usuario='".$_COOKIE['usuario']."' and total>0  and ticket!='COTIZACION' and estado!='Cerrada' order by id_venta desc") or die(mysql_error());

?>
    

<div class="table-responsive borddfer p-3">
					<table class="table table-hover" data-page-length='8' style="width: 100%">
						

			
		
              <th>Cliente</th>
              <th>Monto</th>
         
              <th>Cobrar</th>
              
						
						<tbody>
            <?php while($r=mysql_fetch_array($sql)){
              $folio = $r["id_venta"];
              $c++;
              $total+=$r["total"];
              $balance+=$r["balance"];
              $costo+=$r["costo"];
              
              ?>
							<tr>
			
             
								<td><i class='bi bi-sticky'></i> <?php echo $r["cliente"]?>
               ,<?php echo $r["ticket"]?>      
                </td>
                 <td><?php echo decimal($r["total"])?></td>
              
               
             
               <td><a class="text-primary" href="../pos/facturacion.php?id_venta=<?php echo $folio?>"  ><i class="bi bi-printer"></i> COBRAR</a></td>

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

</div>
