=======
@php
$farmer = $grn->farmer;
$contact = $farmer->farmer_contact ?? null;
$contactDisplay = $contact ? ('+'.ltrim((string) $contact, '+')) : '—';
$statusLabel = match ((int) ($grn->grn_stat ?? 0)) {
0 => 'Pending FAQ',
1 => 'In payment queue',
2 => 'Voucher saved',
default => 'Recorded',
};
@endphp
Hope Coffee
Goods Received Note
P.O Box 81 Kyotera · +256 706 058246
Payment desk token
#{{ $grn->id }}
{{ $statusLabel }}
Farmer
Intake
@if($gradeLines->isNotEmpty())
Grade breakdown
| Screen / grade |
Kg |
@foreach($gradeLines as $line)
| {{ $line['label'] }} |
{{ number_format($line['qty'], 1) }} |
@endforeach
@endif
Total FAQ
{{ number_format($faqTotal, 1) }} kg
Out-turn
@if($kibokoWeight > 0 && $outTurn > 0)
{{ number_format($outTurn, 1) }}%
@elseif($kibokoWeight > 0 && $faqTotal > 0)
{{ number_format(($faqTotal / $kibokoWeight) * 100, 1) }}%
@else
—
@endif
Processed by
{{ $savedByUser->name ?? '—' }}
@if(!empty($savedByUser->sign))
@endif
@if(!empty($qrCode))
Scan to verify GRN #{{ $grn->id }}
@endif