{{ $settings->shop_name ?? 'POS LINK (PVT) LTD' }}

{{ $settings->shop_address ?? '123 Business Avenue, Rajagiriya, Sri Lanka' }}

Tel: {{ $settings->shop_phone ?? '+94 11 234 5678' }} | Email: {{ $settings->shop_email ?? 'admin@poslink.lk' }}

Purchase Return

Document No: {{ $purchaseReturn->pr_code }}

To Supplier
{{ $purchaseReturn->supplier->name ?? 'N/A' }}
{{ $purchaseReturn->supplier->address ?? 'Address not available' }}
@if($purchaseReturn->supplier->phone)
Phone: {{ $purchaseReturn->supplier->phone }}
@endif @if($purchaseReturn->supplier->email)
Email: {{ $purchaseReturn->supplier->email }}
@endif
From Warehouse
{{ $purchaseReturn->warehouse->name ?? 'N/A' }}
Desired Pickup Location
Status: {{ $purchaseReturn->status == 1 ? 'SENT' : 'PENDING' }}
Return Date: {{ date('Y-M-d', strtotime($purchaseReturn->return_date)) }}
@foreach($purchaseReturn->items as $index => $item) @endforeach
# 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) }}
@if($purchaseReturn->note)
Important Remarks
{{ $purchaseReturn->note }}
@endif
Authorized Signature / Stamp