@if(!empty($company['logo']))

@endif
{{ $company['nombre_comercial'] }}
RUC {{ $company['ruc'] }}
{{ $company['direccion'] }}
{{ $order->document_type === 'Ticket' ? 'NOTA DE VENTA' : strtoupper($order->document_type) }}
{{ $order->full_number ?? '#'.str_pad($order->id,8,'0',STR_PAD_LEFT) }}
Fecha: {{ $order->created_at->format('d/m/Y H:i') }}
Cliente: {{ $order->client_name ?: 'Cliente Varios' }}
DNI/RUC: {{ $order->client_document ?: '-' }}
| Cant |
Descripción |
Total |
@foreach($order->details as $d)
| {{ $d->quantity }} |
{{ $d->product->name ?? '—' }} |
{{ number_format($d->price * $d->quantity, 2) }} |
@endforeach
@if($order->total_exonerada > 0)
| Exoneradas: S/ | {{ number_format($order->total_exonerada, 2) }} |
| IGV: S/ | 0.00 |
@else
| Gravadas: S/ | {{ number_format($order->total_gravada, 2) }} |
| IGV: S/ | {{ number_format($order->igv, 2) }} |
@endif
| TOTAL: S/ | {{ number_format($order->total, 2) }} |
Son: {{ strtoupper(\App\Services\Sunat\NumeroLetras::convert($order->total)) }} SOLES
@php
$etiquetasPago = ['cash'=>'Efectivo','card'=>'Tarjeta','yape'=>'Yape','plin'=>'Plin','transferencia'=>'Transferencia'];
$pmMostrar = $order->payment_method ?? 'cash';
@endphp
Pago:
@if($pmMostrar === 'mixed')
{{ $order->payments->map(fn($p) => ($etiquetasPago[$p->method] ?? ucfirst($p->method)) . ' S/' . number_format($p->amount,2))->implode(' + ') }}
@else
{{ $etiquetasPago[$pmMostrar] ?? ucfirst($pmMostrar) }}
@endif
@if($qrBase64)
@endif
@if($order->document_type === 'Ticket')
Documento interno, no válido como comprobante SUNAT.
@else
Representación impresa electrónica.
@if($order->sunat_status === 'ACCEPTED')
✔ Aceptado SUNAT
@else
{{ $order->sunat_status }}
@endif
@endif
¡Gracias por su preferencia!