{{ $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' }}

Goods Received Note

Document No: {{ $grn->grn_no }}

@if($grn->invoice_no)

Invoice No: {{ $grn->invoice_no }}

@endif
Received From
{{ $grn->supplier->name ?? 'N/A' }}
{{ $grn->supplier->address ?? 'Address not available' }}
@if($grn->supplier->phone)
Phone: {{ $grn->supplier->phone }}
@endif
Location / Reference
{{ $grn->warehouse->name ?? 'N/A' }}
PO Reference: {{ $grn->purchaseOrder->po_code ?? 'N/A' }}
Status: {{ $grn->status }}
Receipt Date: {{ date('Y-M-d', strtotime($grn->date)) }}
@php $items_subtotal = 0; @endphp @foreach($grn->items as $index => $item) @php $line_total = ($item->received_qty * $item->unit_cost) - $item->discount_amount; $items_subtotal += $line_total; @endphp @endforeach
# Item & Variation Paid Qty Free Qty Unit Cost Disc. Total
{{ $index + 1 }}
{{ $item->product->name ?? 'N/A' }}
@php $label = $item->productVariation->variationType->name ?? null; @endphp @if($label && !in_array(strtolower($label), ['default', 'n/a']))
Variation: {{ $label }}
@endif
ID: {{ $item->product->code ?? 'N/A' }}
{{ number_format($item->received_qty, 0) }} {{ $item->free_qty > 0 ? '+'.number_format($item->free_qty, 0) : '-' }} {{ number_format($item->unit_cost, 2) }} -{{ number_format($item->discount_amount, 2) }} {{ number_format($line_total, 2) }}
@if($grn->return_adjustment > 0) @endif
Items Subtotal: Rs {{ number_format($items_subtotal, 2) }}
Returns Offset: - Rs {{ number_format($grn->return_adjustment, 2) }}
Payable Amount: Rs {{ number_format($grn->grand_total, 2) }}
@if($grn->notes)
Notes / Comments
{{ $grn->notes }}
@endif @php $linkedReturns = \App\Models\PurchaseReturn::where('grn_id', $grn->id)->get(); @endphp @if($linkedReturns->count() > 0)
Included Return Settlements
@foreach($linkedReturns as $ret) @endforeach
Return Ref: {{ $ret->pr_code }} ({{ $ret->return_date }}) - Rs {{ number_format($ret->total_amount, 2) }}
@endif
Received By
Authorized Approval