@php $_logoPath = public_path('img/logo1.png'); $logoSrc = file_exists($_logoPath) ? 'data:image/png;base64,' . base64_encode(file_get_contents($_logoPath)) : ''; @endphp @if($factura->estado === 'anulada')
ANULADO
@endif
@if($logoSrc)Logo@endif
Sabores de Sol by MAYBELL S.A.C.
RUC: 20612998214  |  Comercial
Carretera Panamericana Norte Km 56 - CP San Isidro - Motupe - Lambayeque
{{ $factura->tipo === 'factura' ? 'FACTURA ELECTRÓNICA' : 'BOLETA DE VENTA ELECTRÓNICA' }}
{{ $factura->tipo === 'factura' ? 'Serie F001' : 'Serie B001' }} {{ $factura->numero }}
{{-- Fechas y datos --}} @if($factura->tipo_cambio) @else @endif @if($factura->pedido) @endif
Fecha de Emisión {{ $factura->fecha_emision->format('d/m/Y') }} Fecha de Vencimiento {{ $factura->fecha_vencimiento?->format('d/m/Y') ?? '—' }}
Moneda {{ $factura->moneda === 'PEN' ? 'SOLES (PEN)' : 'DÓLARES (USD)' }}Tipo de Cambio S/ {{ number_format($factura->tipo_cambio, 3) }}
Pedido / Orden {{ $factura->pedido->numero }}
{{-- Receptor --}}
Datos del {{ $factura->tipo === 'factura' ? 'Adquirente' : 'Receptor' }}
{{ \App\Models\FacturaVenta::$TIPO_DOC_SUNAT[$factura->cliente_tipo_doc] ?? 'Documento' }} {{ $factura->cliente_num_doc }} Razón Social / Nombre {{ $factura->cliente_razon_social }}
Dirección {{ $factura->cliente_direccion ?? '—' }}
{{-- Ítems --}}
Detalle de Bienes y/o Servicios
@foreach($factura->items as $item) @endforeach
# Descripción Unidad Cantidad P. Unit. (sin IGV) Afectación V. Venta IGV Total
{{ $item->orden }} {{ $item->descripcion }} {{ $item->unidad }} {{ number_format($item->cantidad, 3) }} {{ number_format($item->precio_unitario, 4) }} @php $afecLabel = ['10'=>'Gravado','20'=>'Exonerado','30'=>'Inafecto']; @endphp {{ $afecLabel[$item->tipo_afectacion] ?? $item->tipo_afectacion }} {{ number_format($item->subtotal, 2) }} {{ number_format($item->igv_item, 2) }} {{ number_format($item->total_item, 2) }}
OP. GRAVADAS {{ number_format($factura->subtotal, 2) }}
IGV (18%) {{ number_format($factura->igv, 2) }}
IMPORTE TOTAL {{ $factura->moneda == 'USD' ? 'US$' : 'S/' }} {{ number_format($factura->total, 2) }}
@if($factura->observaciones)
Observaciones: {{ $factura->observaciones }}
@endif

Representación impresa de la {{ $factura->tipo === 'factura' ? 'FACTURA' : 'BOLETA DE VENTA' }} ELECTRÓNICA.
Emitida por SABORES MAYBELL S.A.C. | Sistema ERP MAYBELL v1.0
Documento electrónico generado conforme a la legislación tributaria peruana.
Consulte su comprobante en: www.sunat.gob.pe

Código QR
(SUNAT)