@isset($exportar) @php header("Cache-Control: maxage=1"); header("Pragma: public"); header('Content-type: application/vnd.ms-excel'); header("Content-Disposition: attachment; filename=detalleGatsos.xls"); header("Pragma: no-cache"); header("Expires: 0"); @endphp @endisset
| Id | N° Doc. Soporte | N° Factura / Ref | Cedula | nombre_Cliente | Tipo_Gasto | Valor Total | IVA | ReteFuente | ReteICA | Fecha | Observacion | Bodega | @if(!isset($exportar))Acciones | @endif|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$item->idg}} | @if(!empty($item->numeroDcSopor) && $item->numeroDcSopor != '0') @if(isset($exportar)) {{ $item->numeroDcSopor }} @else {{ $item->numeroDcSopor }} @endif @elseif(!empty($item->cufeDian) && $item->cufeDian != '0') @if(isset($exportar)) Emitido @else Emitido @endif @else - @endif | {{ !empty($item->numeroFactura) ? $item->numeroFactura : '-' }} | {{$item->cedulaclie}} | {{$item->nombrecli}} | @isset($item->NombreCuenta){{$item->NombreCuenta}} | @else{{$item->tipoGast}} | @endisset${{ number_format((float)($item->valorg ?? 0), 2, ',', '.') }} | @if(!empty($item->ivaGasto) && (float)$item->ivaGasto > 0) ${{ number_format((float)$item->ivaGasto, 2, ',', '.') }} @if(!empty($item->cuentaIva)) ({{ $item->cuentaIva }}) @endif @if((!empty($item->base19) && (!empty($item->base5) || !empty($item->baseExcluido))) || (!empty($item->base5) && !empty($item->baseExcluido))) Factura Mixta @endif @else $0 @if(!empty($item->baseExcluido) && (float)$item->baseExcluido > 0) (Excluido / 0%) @endif @endif | @if(!empty($item->retecionGasto) && (float)$item->retecionGasto > 0) ${{ number_format((float)$item->retecionGasto, 2, ',', '.') }} @if(!empty($item->cuentaRete)) ({{ $item->cuentaRete }}) @endif @else $0 @endif | @if(!empty($item->reteicaGasto) && (float)$item->reteicaGasto > 0) ${{ number_format((float)$item->reteicaGasto, 2, ',', '.') }} @if(!empty($item->cuentaReteIca)) ({{ $item->cuentaReteIca }}) @endif @else $0 @endif | {{$item->fecha}} | {{$item->observacion}} | {{ $item->nombreBodega ?? ('Bodega ' . $item->idbodegaG) }} | @if(!isset($exportar))@if(!empty($item->cufeDian) && $item->cufeDian != '0') {{ !empty($item->numeroDcSopor) ? $item->numeroDcSopor . ' ✔' : 'Emitido ✔' }} @elseif(empty($item->cufeDian) && !empty($item->mensajeProveTecno)) {{ $item->mensajeProveTecno }} @else @endif | @endif