AÑO GRAVABLE
{{ $pdfDatos['anio_gravable'] }}
Factura Impuesto
Vehículos Automotores
QR
Factura
Número:
{{ $pdfDatos['numero_factura'] }}
CÓDIGO
QR:
@for ($i = 0; $i < 17; $i++) @endfor @foreach ($pdfDatos['descuentos'] as $descuento) @endforeach @foreach ($pdfDatos['descuentos'] as $descuento) @endforeach @foreach ($pdfDatos['descuentos'] as $descuento) @endforeach @foreach ($pdfDatos['descuentos'] as $descuento) @endforeach @foreach ($pdfDatos['descuentos'] as $descuento) @endforeach @foreach ($pdfDatos['descuentos'] as $descuento) @endforeach {{-- @foreach ($pdfDatos['descuentos'] as $descuento) @endforeach --}} @php // Número inicial (ajústalo según lo que venga antes) $numeroCampo = 21; // Verificar si hay al menos un intereses_mora > 0 $interesMora = false; foreach ($pdfDatos['descuentos'] as $d) { if ($d['intereses_mora'] > 0) { $interesMora = true; break; } } @endphp @if ($interesMora) @foreach ($pdfDatos['descuentos'] as $descuento) @endforeach @endif @foreach ($pdfDatos['descuentos'] as $descuento) @endforeach {{-- @foreach ($pdfDatos['descuentos'] as $descuento) @endforeach --}} @if ($interesMora) @foreach ($pdfDatos['descuentos'] as $descuento) @endforeach @endif @foreach ($pdfDatos['descuentos'] as $descuento) @endforeach
A. IDENTIFICACIÓN DEL VEHÍCULO
1. PLACA {{ $pdfDatos['identificacion_vehiculo']['placa'] }} 2. CLASE {{ $pdfDatos['identificacion_vehiculo']['clase'] }} 3. MARCA {{ $pdfDatos['identificacion_vehiculo']['marca'] }} 4. LÍNEA {{ $pdfDatos['identificacion_vehiculo']['linea'] }}
5. MODELO {{ $pdfDatos['identificacion_vehiculo']['modelo'] }} 6. CILINDRAJE {{ $pdfDatos['identificacion_vehiculo']['cilindraje'] }} 7. USO {{ $pdfDatos['identificacion_vehiculo']['uso'] }}
B. DATOS DEL CONTRIBUYENTE
8. TIPO DOCUMENTO 9. No. IDENTIFICACIÓN 10. NOMBRES Y APELLIDOS / RAZÓN SOCIAL 11. DIRECCIÓN DE NOTIFICACIÓN 12. DEPARTAMENTO 13. MUNICIPIO
{{ $pdfDatos['datos_contribuyente']['tipo'] }} {{ $pdfDatos['datos_contribuyente']['nunero_identificacion'] }} {{ $pdfDatos['datos_contribuyente']['nombres_razon_social'] }} {{ $pdfDatos['datos_contribuyente']['direccion_notificacion'] }} {{ $pdfDatos['datos_contribuyente']['departamento'] }} {{ $pdfDatos['datos_contribuyente']['municipio'] }}
14. CORREO ELECTRÓNICO DE NOTIFICACIÓN 15. TELÉFONO
{{ $pdfDatos['datos_contribuyente']['email'] }} {{ $pdfDatos['datos_contribuyente']['telefono'] }}
FECHAS LÍMITE DE PAGO {{ $descuento['fecha'] }}
C. LIQUIDACIÓN
16. AVALÚO DEL VEHÍCULO $ {{ number_format($descuento['avaluo_vehiculo'], 0, ',', '.') }}
17. IMP. SOBRE VEHÍCULO AUTOMOTOR $ {{ number_format($descuento['impuesto_sobre_vehiculo_automotor'], 0, ',', '.') }}
18. (-) DESCUENTO POR PRONTO PAGO $ {{ number_format($descuento['descuento_pronto_pago'], 0, ',', '.') }}
19. (-) DESCUENTO (por matrícula o traslado del año anterior) $ {{ number_format($descuento['descuento_matricula'], 0, ',', '.') }}
20. (-) SALDO A FAVOR $ {{ number_format($descuento['saldo_favor'], 0, ',', '.') }}
21. (+) SANCIONES $ {{ number_format($descuento['sanciones'], 0, ',', '.') }}
{{ $numeroCampo++ }}. (+) INTERESES DE MORA $ {{ number_format($descuento['intereses_mora'], 0, ',', '.') }}
D. PAGO
{{ $numeroCampo++ }}. VALOR A PAGAR $ {{ number_format($descuento['valor_pagar'], 0, ',', '.') }}
24. (+) SANCIONES $ {{ number_format($descuento['sanciones'], 0, ',', '.') }}
{{ $numeroCampo++ }}. (+) INTERESES DE MORA $ {{ number_format($descuento['intereses_mora'], 0, ',', '.') }}
{{ $numeroCampo++ }}. TOTAL A PAGAR $ {{ number_format($descuento['total_pagar'], 0, ',', '.') }}
{{-- Espacio entre tablas --}}
{{-- Tabla de pago con aporte voluntario --}} {{-- Mostrar los códigos de barras en formato 2 por fila --}} @php $descuentos = $pdfDatos['descuentos'] ?? []; @endphp @for ($i = 0; $i < count($descuentos); $i += 2) {{-- Primer código --}} {{-- Espacio intermedio --}} {{-- Segundo código (si existe) --}} @if (isset($descuentos[$i+1])) @php $descuento2 = $descuentos[$i+1]; @endphp @else {{-- Si no hay segundo, dejar el espacio vacío a la derecha --}} @endif @endfor
@php $descuento1 = $descuentos[$i];@endphp
Páguese hasta: {{ $descuento1['fecha'] ?? '---' }}

{{-- Cuadro para marcar con X --}}
@if (!empty($descuento1['imagen_barras'])) Código de barras @else (Código no disponible) @endif
Páguese hasta: {{ $descuento2['fecha'] ?? '---' }}

{{-- Cuadro para marcar con X --}}
@if (!empty($descuento2['imagen_barras'])) Código de barras @else (Código no disponible) @endif