{{-- HEADER --}}
{{-- QR --}}
@if(!empty($qrBase64))
@endif
{{-- TIPO Y FECHA --}}
{{ $tipoLabel }}
{{ $documento->numero_consecutivo ?? '' }}
Fecha:
{{ $documento->fecha_emision?->format('d/m/Y') ?? '' }}
{{-- CLIENTE --}}
@if($cliente || $receptor)
Cliente:
{{ $cliente?->nombre ?? $receptor?->nombre ?? 'Consumidor' }}
@if($cliente?->numero_identificacion ?? $receptor?->numero_identificacion)
{{ $cliente?->numero_identificacion ?? $receptor?->numero_identificacion }}
@endif
@endif
{{-- ITEMS/DETALLES --}}
@if($documento->lineas && $documento->lineas->count() > 0)
| Descripción |
Qty |
Total |
@foreach($documento->lineas as $linea)
| {{ $linea->detalle ?? '' }} |
{{ number_format($linea->cantidad ?? 0, 2) }} |
{{ number_format($linea->monto_total_linea ?? 0, 2) }} |
@endforeach
@endif
{{-- TOTALES --}}
@if($resumen)
@if(($resumen->total_venta ?? 0) > 0)
Subtotal:
₡{{ number_format($resumen->total_venta ?? 0, 2) }}
@endif
@if(($resumen->total_descuentos ?? 0) > 0)
Descuentos:
-₡{{ number_format($resumen->total_descuentos ?? 0, 2) }}
@endif
@if(($resumen->total_impuestos ?? 0) > 0)
Impuestos:
₡{{ number_format($resumen->total_impuestos ?? 0, 2) }}
@endif
₡{{ number_format($resumen->total_comprobante ?? 0, 2) }}
@endif
{{-- CONDICIONES --}}
@if($condicionVentaEnum)
Condición:
{{ $condicionVentaEnum->label() ?? (string)$condicionVentaEnum }}
@endif
@if($medioPagoEnum)
Pago:
{{ $medioPagoEnum->label() ?? (string)$medioPagoEnum }}
@endif
@if($documento->estado?->codigo_hacienda)
Estado:
@if($documento->estado->codigo_hacienda == '1' || $documento->estado->codigo_hacienda == '2')
✓ Aceptado
@elseif($documento->estado->codigo_hacienda == '3')
✗ Rechazado
@else
Enviado
@endif
@endif
{{-- DYNAMIC FOOTER FOR 80MM TICKET --}}
@include('pdf.footer-ticket-80mm')