warehouse Inventario
arrow_back

Venta #{{ $venta->id }}

{{ ucfirst($venta->estado) }}

{{ $venta->cliente ?? 'Cliente general' }} · {{ \Carbon\Carbon::parse($venta->fecha)->format('d/m/Y') }} · Registrada por {{ $venta->user->name ?? '—' }}

@if($venta->estado === 'pendiente')
@csrf
@csrf
@endif
@if(session('success'))
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) }}

@if($venta->notas)
Notas: {{ $venta->notas }}
@endif

Productos Vendidos

@foreach($venta->items as $item) @endforeach
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) }}