arrow_back
@if($venta->estado === 'pendiente')
@endif
@if(session('success'))
Venta #{{ $venta->id }}
{{ ucfirst($venta->estado) }}{{ $venta->cliente ?? 'Cliente general' }} · {{ \Carbon\Carbon::parse($venta->fecha)->format('d/m/Y') }} · Registrada por {{ $venta->user->name ?? '—' }}
check_circle {{ session('success') }}
@endif
@if(session('error'))
error {{ session('error') }}
@endif
Cliente
{{ $venta->cliente ?? 'Cliente general' }}
Fecha
{{ \Carbon\Carbon::parse($venta->fecha)->format('d/m/Y') }}
Total
L. {{ number_format($venta->total, 2) }}
Notas: {{ $venta->notas }}
@endif
Productos Vendidos
| Producto | Cantidad | Precio Unitario | Subtotal |
|---|---|---|---|
| {{ $item->product->nombre ?? '—' }} | {{ $item->cantidad }} | L. {{ number_format($item->precio_unitario, 2) }} | L. {{ number_format($item->subtotal, 2) }} |
| Total: | L. {{ number_format($venta->total, 2) }} | ||