@php $titulos = ['01' => 'FACTURA ELECTRÓNICA', '03' => 'BOLETA DE VENTA ELECTRÓNICA', '07' => 'NOTA DE CRÉDITO ELECTRÓNICA', '08' => 'NOTA DE DÉBITO ELECTRÓNICA']; $titulo = $titulos[$tipoCode] ?? 'COMPROBANTE ELECTRÓNICO'; $mon = $comprobante->moneda === 'PEN' ? 'S/' : $comprobante->moneda; $cli = $comprobante->pedido?->cliente; $items = $comprobante->pedido?->items ?? collect(); @endphp
@if($rest->direccion){{ $rest->direccion }}
@endif
@if($rest->telefono)Tel: {{ $rest->telefono }} · @endif{{ $rest->email }}
| Cant. | Descripción | P. Unit. | Importe |
|---|---|---|---|
| {{ $it->cantidad }} | {{ $it->nombre ?? $it->producto?->nombre ?? 'Ítem' }} | {{ $mon }} {{ number_format((float)$it->precio, 2) }} | {{ $mon }} {{ number_format((float)$it->precio * $it->cantidad, 2) }} |
| Sin detalle disponible. | |||
| Op. Gravada | {{ $mon }} {{ number_format((float)$comprobante->subtotal, 2) }} |
| IGV | {{ $mon }} {{ number_format((float)$comprobante->impuesto, 2) }} |
| IMPORTE TOTAL | {{ $mon }} {{ number_format((float)$comprobante->total, 2) }} |
endroid/qr-code.