@if($exportar==1) @php header("Cache-Control: maxage=1"); header("Pragma: public"); header('Content-type: application/vnd.ms-excel'); header("Content-Disposition: attachment; filename=detalleompras.xls"); header("Pragma: no-cache"); header("Expires: 0"); @endphp @endif
| Factura_Compra | Fecha | Nit_provedor | Nombre_Provedor | direccion | telefono | correo | ciudad | base5 | iva5 | base19 | iva19 | exento | excluido | CompCredicto | totalcompra | Bodega | Saldo_abonado | Saldo_pendiente | Devolución Compra | Descuento Compra | Retencion | Opcion 2 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$item->factcompra}} | {{$item->fechacompra}} | {{$item->provedor}} | {{$item->Nombre}} | {{$item->direccion}} | {{$item->telefono}} | {{$item->correo}} | {{$item->codigociudad}} | {{$item->base5}} | {{$item->iva5}} | {{$item->base19}} | {{$item->iva19}} | {{$item->exento}} | {{$item->excluido}} | {{$item->CompCredicto}} | {{$item->totalcompra}} | {{$item->idbodegaCo}} | {{$item->saldoAbonado}} | {{$item->saldoPendiente}} | {{ number_format(floatval($item->DescuentoDevol ?? 0)) }} | {{$item->otroDato}} | {{$item->retencion}} | @if($item->CompCredicto>0) | @endif |