| MAKLUMAT AHLI |
MAKLUMAT WARIS |
| Nama Ahli | {{ $user->name ?: '-' }} |
Nama Waris | {{ $user->nok_name ?: '-' }} |
| No. IC | {{ $user->ic_no ?: '-' }} |
No. IC | {{ $user->nok_ic_no ?: '-' }} |
| Alamat E-mel | {{ $user->email ?: '-' }} |
No. Telefon | {{ $user->nok_phone_no ?: '-' }} |
| No. Telefon | {{ $user->phone_no ?: '-' }} |
Hubungan | {{ $user->nok_relationship ?: '-' }} |
| Alamat | {{ $user->address ?: '-' }} |
@php
// 1. Group the plans by KP Name
$groupedPlans = $plans->groupBy('kp_name');
// 2. Initialize Grand Totals for the entire document
$grandTotalPO = 0;
$grandTotalModal = 0;
@endphp
@foreach ($groupedPlans as $kpName => $plansInGroup)
@php
// Initialize totals for THIS specific KP
$groupModal = 0;
$groupPO = 0;
@endphp
| Nama Plan |
Nama KP |
Modal |
PO KP |
PO Bonda |
Jumlah PO |
@foreach ($plansInGroup as $plan)
@php
$currentPO = $plan->total_po_kp + $plan->total_po_bonda;
// Add to Group Totals
$groupModal += $plan->total_modal;
$groupPO += $currentPO;
// Add to Grand Totals
$grandTotalModal += $plan->total_modal;
$grandTotalPO += $currentPO;
@endphp
| {{ $plan->name }} |
{{ $plan->kp_name }} |
RM {{ number_format($plan->total_modal / 100, 2) }} |
RM {{ number_format($plan->total_po_kp / 100, 2) }} |
RM {{ number_format($plan->total_po_bonda / 100, 2) }} |
RM {{ number_format($currentPO / 100, 2) }} |
@endforeach
@php
$bank = $bankAccount[$plan->kp_id] ?? null;
@endphp
| JUMLAH MODAL ({{ $kpName }}): RM {{ number_format($groupModal / 100, 2) }} |
JUMLAH PO ({{ $kpName }}): RM {{ number_format($groupPO / 100, 2) }} |
AKAUN BANK ({{ $bank['name'] ?? '-' }}): {{ $bank['account_no'] ?? '-' }} |
@endforeach
JUMLAH KESELURUHAN MODAL: RM {{ number_format($grandTotalModal / 100, 2) }}
JUMLAH KESELURUHAN PO: RM {{ number_format($grandTotalPO / 100, 2) }}
@php
$eligibleGifts = $nonCashGifts ?? collect();
@endphp
@if ($eligibleGifts->isNotEmpty())
HADIAH BUKAN TUNAI
| Nama Plan |
Hadiah |
@foreach ($eligibleGifts as $gift)
| {{ $gift->plan_name }} |
{{ $gift->gift_name }} |
@endforeach
*Nota: Hadiah-hadiah ini mungkin ditukarkan dengan nilai RM yang setara,
bergantung kepada keputusan dan budi bicara pengurusan dan perbincangan bersama ahli.
@endif