Detalle de Nota de Venta

{{ $notaVenta->numeroCompleto }} - {{ $notaVenta->fecha_emision->format('d/m/Y') }}

@if(!$notaVenta->venta_id && $notaVenta->estado !== 'anulada') @endif @if($notaVenta->venta_id) Ver Venta @endif Volver @if($notaVenta->estado === 'pendiente' && !$notaVenta->venta_id) Editar @endif
Información de la Nota de Venta

{{ $notaVenta->codigo }}

{{ $notaVenta->cliente->nombre_completo ?? 'Cliente general' }}

{{ $notaVenta->fecha_emision->format('d/m/Y H:i:s') }}

@if($notaVenta->fecha_vencimiento)

{{ $notaVenta->fecha_vencimiento->format('d/m/Y') }}

@endif

{{ $notaVenta->user->name }}

@switch($notaVenta->estado) @case('pendiente') Pendiente @break @case('procesada') Procesada @break @case('anulada') Anulada @break @endswitch
Productos
@foreach($notaVenta->detalles as $detalle)
{{ $detalle->descripcion }}
@if($detalle->producto) {{ $detalle->producto->code }} @endif @if($detalle->productoVariant)
{{ $detalle->productoVariant->name }}
@endif
Cantidad:
{{ $detalle->cantidad }}
Precio:
{{ format_money($detalle->precio_unitario) }}
Subtotal:
{{ format_money($detalle->subtotal) }}
@endforeach
Total: {{ format_money($notaVenta->total) }}
@foreach($notaVenta->detalles as $detalle) @endforeach
Producto Cantidad Precio Unit. Subtotal
{{ $detalle->descripcion }}
@if($detalle->producto) {{ $detalle->producto->code }} @endif @if($detalle->productoVariant)
{{ $detalle->productoVariant->name }}
@endif
{{ $detalle->cantidad }} {{ format_money($detalle->precio_unitario) }} {{ format_money($detalle->subtotal) }}
Total: {{ format_money($notaVenta->total) }}
Resumen
Subtotal: {{ format_money($notaVenta->subtotal ?? $notaVenta->total) }}
@if($notaVenta->impuestos > 0)
Impuestos: {{ format_money($notaVenta->impuestos) }}
@endif
Total: {{ format_money($notaVenta->total) }}
@if($notaVenta->observaciones)
Observaciones

{{ $notaVenta->observaciones }}

@endif
Información Adicional
Empresa: {{ $notaVenta->empresa->nombre ?? 'N/A' }}
Sucursal: {{ $notaVenta->sucursal->nombre ?? 'N/A' }}
Serie: {{ $notaVenta->serie }}
@if($showConvertModal) @endif