<div class="btn-group">
	<?php if($fac_formato_factura=='Carta') { ?>
    <a href="libraries/tcpdf/documentos/factura_venta.php?ven_id=<?php echo $reg['ven_id'];?>" 
       target="_blank" 
       class="btn btn-xs btn-success">
        <i class="btn-icon-only icon-print"></i>
    </a>
	<?php } else { ?>
	<a href="tirillas/tirilla.php?ven_id=<?php echo $reg['ven_id']; ?>" 
       target="_blank" 
       class="btn btn-xs btn-success" >
        <i class="btn-icon-only icon-print"></i>
    </a>
	<?php } ?>
    <button type="button" class="btn btn-xs btn-success dropdown-toggle" data-toggle="dropdown" style="padding-left: 5px;padding-right: 5px;">
        <span class="caret"></span>
    </button>
    <ul class="dropdown-menu" role="menu">
    	<?php if($fac_formato_factura=='Carta') { ?>
	            <li><a href="tirillas/tirilla.php?ven_id=<?php echo $reg['ven_id']; ?>" target="_blank"><i class="fa-solid fa-receipt"></i> Tirilla</a></li>

		<?php } else { ?>
		        <li><a href="libraries/tcpdf/documentos/factura_venta.php?ven_id=<?php echo $reg['ven_id'];?>" target="_blank"><i class="fa-solid fa-file-invoice"></i> Carta</a></li>
		<?php } ?>
    </ul>
</div>
