{{ $settings->shop_address ?? '123 Business Avenue, Rajagiriya, Sri Lanka' }}
Tel: {{ $settings->shop_phone ?? '+94 11 234 5678' }} | Email: {{ $settings->shop_email ?? 'admin@poslink.lk' }}
Document No: {{ $purchaseReturn->pr_code }}
| # | Item & Variation | Qty | Unit Cost | Disc. | Subtotal |
|---|---|---|---|---|---|
| {{ $index + 1 }} |
{{ $item->product->name ?? 'N/A' }}
@php
$label = $item->variationType ? $item->variationType->name : null;
@endphp
@if($label && $label !== 'Default')
Variation: {{ $label }}
@endif
@if($item->batch)
Batch: {{ $item->batch->batch_no }}
@endif
ID: {{ $item->product->code ?? 'N/A' }}
|
{{ number_format($item->qty, 0) }} | {{ number_format($item->unit_price, 2) }} | {{ number_format($item->discount_amount, 2) }} | {{ number_format($item->total, 2) }} |
| Items Subtotal: | Rs {{ number_format($purchaseReturn->items->sum(fn($i) => $i->qty * $i->unit_price), 2) }} |
| Return Discount: | - Rs {{ number_format($purchaseReturn->return_discount ?? 0, 2) }} |
| Return Tax: | Rs {{ number_format($purchaseReturn->return_tax ?? 0, 2) }} |
| Grand Total: | Rs {{ number_format($purchaseReturn->total_amount, 2) }} |