{{-- ENCABEZADO --}}
@if(file_exists(public_path('assets/img/logo.png'))) @endif

{{ $setting->business_name }}

RUC: {{ $setting->ruc }}

{{ $setting->address }}

Celular: {{ $setting->phone }}

COMPROBANTE DE VENTA

N°: {{ str_pad($sale->id, 6, '0', STR_PAD_LEFT) }}

{{-- INFORMACIÓN DEL CLIENTE Y VENTA --}}

Cliente: {{ $sale->customer->first_name }} {{ $sale->customer->last_name }} {{ $sale->customer->middle_name }}

Documento: {{ $sale->customer->identity_card ?? '-' }}

Fecha: {{ date('d/m/Y H:i', strtotime($sale->created_at)) }}

Usuario: {{ $sale->user->name }}

Sucursal: {{ $sale->branch->name }}

{{-- TABLA DE DETALLES --}} @foreach ($sale->details as $item) @endforeach
Producto Variante Cantidad Precio Importe
{{ $item->product ? $item->product->name : $item->custom_name }} @if($item->product_variant) {{ $item->product_variant->size->name ?? '' }} / {{ $item->product_variant->color->name ?? '' }} @else - @endif {{ $item->quantity }} {{ number_format($item->price, 2) }} {{ number_format($item->quantity * $item->price, 2) }}
{{-- TOTALES --}}
Total: S/ {{ number_format($sale->total, 2) }}
{{-- PIE DE PÁGINA --}}