@php $columnas = [ '1001' => ['Pago o Abono', 'Ret. Renta', 'Ret. IVA', 'Ret. ICA'], '1003' => ['Retención Practicada', 'Base del Pago', '', ''], '1005' => ['IVA Descontable', '', '', ''], '1006' => ['IVA Generado', '', '', ''], '1007' => ['Ingresos Brutos', 'Devoluciones', '', ''], '1008' => ['Saldo Cartera (Clientes)', '', '', ''], '1009' => ['Saldo Proveedores (CxP)', '', '', ''], '1012' => ['Saldo en Libros a Dic 31', '', '', ''], '2276' => ['Pagos Salarios', 'Prestaciones Sociales', 'Aux. Transporte', 'Seguridad Social'], ]; $labels = $columnas[$formato ?? '1001'] ?? ['Valor 1', 'Valor 2', 'Valor 3', 'Valor 4']; @endphp @if(!empty($data) && count($data) > 0)
@if($labels[0]) @endif @if($labels[1]) @endif @if($labels[2]) @endif @if($labels[3]) @endif @foreach($data as $item) @if($labels[0]) @endif @if($labels[1]) @endif @if($labels[2]) @endif @if($labels[3]) @endif @endforeach
Concepto Tipo NIT / Documento Nombre / Razón Social{{ $labels[0] }}{{ $labels[1] }}{{ $labels[2] }}{{ $labels[3] }}
{{ $item->concepto_dian }} {{ $item->tipo_documento }} {{ $item->numero_documento }} {{ $item->dv ? '- '.$item->dv : '' }} {{ $item->nombre_completo }}{{ number_format($item->valor1, 0, ',', '.') }}{{ number_format($item->valor2, 0, ',', '.') }}{{ number_format($item->valor3, 0, ',', '.') }}{{ number_format($item->valor4, 0, ',', '.') }}
@else

⚠️ No se encontraron registros para el Formato {{ $formato ?? '1001' }} en el rango seleccionado.

@endif