@if($empresa->logo_url) @else

{{ $empresa->razon_social }}

@endif
RUT/NIT: {{ $empresa->rut_fiscal }}
{{ $empresa->email }}
Cliente
{{ $cliente->razon_social }}
RUT/DOC: {{ $cliente->identificador_fiscal }}
{{ $cliente->direccion ?? 'Dirección no registrada' }}
{{ $cliente->telefono }}
Factura de Venta
Nº {{ $venta->numero_factura ?? $venta->id }}
Fecha: {{ \Carbon\Carbon::parse($venta->fecha_venta)->format('d/m/Y') }}
Vencimiento: {{ $venta->fecha_vencimiento_pago ? \Carbon\Carbon::parse($venta->fecha_vencimiento_pago)->format('d/m/Y') : 'Contado' }}
Vendedor: {{ $venta->usuario->nombre_completo }}
@foreach($detalles as $item) @endforeach
Descripción Precio Cant. Subtotal
{{ $item->producto->nombre }} ({{ $item->producto->codigo_sku }}) ${{ number_format($item->precio_unitario, 0, ',', '.') }} {{ $item->cantidad }} ${{ number_format($item->subtotal, 0, ',', '.') }}
Neto: ${{ number_format($venta->total, 0, ',', '.') }}
TOTAL A PAGAR: ${{ number_format($venta->total, 0, ',', '.') }}