{{-- ── Encabezado ── --}}
@if($empresa && $empresa->nombre)
{{ strtoupper($empresa->nombre) }}
@if($empresa->eslogan)
{{ $empresa->eslogan }}
@endif
@if($empresa->direccion)
{{ $empresa->direccion }}
@endif
@if($empresa->telefono_contacto)
Tel: {{ $empresa->telefono_contacto }}
@endif
@else
PUNTO DE VENTA
@endif
{{-- ── Info venta ── --}}
TIQUETE #
{{ str_pad($venta->id, 6, '0', STR_PAD_LEFT) }}
FECHA
{{ \Carbon\Carbon::parse($venta->fecha)->format('d/m/Y') }}
HORA
{{ $venta->created_at->format('H:i:s') }}
CAJERO
{{ $venta->user->name ?? '—' }}
CLIENTE
{{ $venta->cliente ?? 'Ventas Mostrador' }}
{{-- ── Productos ── --}}
| Artículo |
Cant |
Precio |
Subtotal |
@foreach($venta->items as $item)
| {{ Str::limit($item->product->nombre ?? '—', 22) }} |
{{ $item->cantidad }} |
{{ number_format($item->precio_unitario, 2) }} |
{{ number_format($item->subtotal, 2) }} |
@endforeach
{{-- ── Totales ── --}}
Subtotal
L. {{ number_format($venta->total, 2) }}
Descuento
L. 0.00
TOTAL
L. {{ number_format($venta->total, 2) }}
{{-- ── Pago ── --}}
Forma de pago
{{ strtoupper($venta->forma_pago ?? 'EFECTIVO') }}
@if($venta->forma_pago === 'efectivo' && $venta->monto_recibido !== null)
Recibido
L. {{ number_format($venta->monto_recibido, 2) }}
@if($vuelto !== null)
💵 VUELTO
L. {{ number_format($vuelto, 2) }}
@endif
@endif
{{-- ── Footer ── --}}
||||| {{ str_pad($venta->id, 8, '0', STR_PAD_LEFT) }} |||||