@if($empresaGlobal && $empresaGlobal->logo_url) logo @endif

{{ $empresaGlobal->nombre_comercial ?? $empresaGlobal->razon_social ?? 'TPV Minimarket' }}

@if($empresaGlobal && $empresaGlobal->ruc_nit)

RUC/NIT: {{ $empresaGlobal->ruc_nit }}

@endif @if($empresaGlobal && $empresaGlobal->direccion)

{{ $empresaGlobal->direccion }}

@endif @if($empresaGlobal && $empresaGlobal->telefono)

Tel: {{ $empresaGlobal->telefono }}

@endif

TICKET DE VENTA

N°: {{ $venta->numero_ticket }}

Fecha: {{ $venta->fecha_venta->format('d/m/Y H:i') }}

Cajero: {{ $venta->user->name }}

@if($venta->cliente)

Cliente: {{ $venta->cliente->nombre_completo }}

@if($venta->cliente->documento)

Doc: {{ $venta->cliente->documento }}

@endif @else

Cliente: Genérico

@endif
@foreach($venta->detalles as $d) @endforeach @if($venta->descuento > 0) @endif
Producto Total
{{ $d->descripcion }}
{{ number_format($d->cantidad, 2) }} x {{ ($empresaGlobal->moneda ?? 'S/') }}{{ number_format($d->precio_unitario, 2) }}
{{ ($empresaGlobal->moneda ?? 'S/') }}{{ number_format($d->total, 2) }}
Subtotal: {{ ($empresaGlobal->moneda ?? 'S/') }}{{ number_format($venta->subtotal, 2) }}
Descuento:-{{ ($empresaGlobal->moneda ?? 'S/') }}{{ number_format($venta->descuento, 2) }}
Impuesto:{{ ($empresaGlobal->moneda ?? 'S/') }}{{ number_format($venta->impuesto, 2) }}
TOTAL:{{ ($empresaGlobal->moneda ?? 'S/') }}{{ number_format($venta->total, 2) }}
Pago ({{ ucfirst($venta->forma_pago) }}):{{ ($empresaGlobal->moneda ?? 'S/') }}{{ number_format($venta->monto_recibido, 2) }}
Cambio:{{ ($empresaGlobal->moneda ?? 'S/') }}{{ number_format($venta->cambio, 2) }}