| NO | PRODUK | HARGA | QTY TERSEDIA | QTY RETUR | SUBTOTAL | ALASAN | VALIDASI |
|---|---|---|---|---|---|---|---|
| {{ $idx + 1 }} |
{{ $item->product_name }}
{{ $item->product?->sku ?? '' }}
|
Rp {{ number_format((int) $item->unit_price, 0, ',', '.') }} |
{{ $availableQty }}
dari {{ $qtyOrder }}
|
@if($itemStatus === 'pending' && !$isFinalized) @else {{ $qtyReturn > 0 ? $qtyReturn : '-' }} @endif | {{ $qtyReturn > 0 ? 'Rp ' . number_format((int) $item->subtotal, 0, ',', '.') : '-' }} | @if($itemStatus === 'pending' && !$isFinalized) @else {{ $item->reason ?? '-' }} @endif | @if($isFinalized) @if($itemStatus === 'approved') VALID @else - @endif @elseif($itemStatus === 'approved') @elseif($qtyReturn > 0 && $qtyReturn <= $availableQty) @elseif($qtyReturn > $availableQty) OVER @else - @endif |
| Belum ada item retur. | |||||||