LAST WILL AND TESTAMENT
Will Reference No: {{ $will->id }}
Date: {{ date('d F Y') }}

I, {{ strtoupper($will->client->full_name ?? 'TESTATOR') }}, (NRIC/Passport No: {{ $will->client->ic_number ?? 'N/A' }}), of {{ $will->client->nationality ?? 'Malaysian' }} nationality, presently residing at {{ $will->client->address ?? 'N/A' }}, born on {{ $will->client->date_of_birth ? date('d F Y', strtotime($will->client->date_of_birth)) : 'N/A' }}, being of sound mind, memory and understanding, do hereby make, publish and declare this to be my LAST WILL AND TESTAMENT, hereby expressly revoking all previous wills, codicils and testamentary dispositions made by me at any time heretofore.

FIRST: REVOCATION

I hereby revoke, annul and cancel all wills, codicils and other testamentary dispositions heretofore made by me, and declare this to be my Last Will and Testament.

@if($will->client && $will->client->familyMembers && count($will->client->familyMembers) > 0)
SECOND: FAMILY DECLARATION

I declare that my family members are as follows:

@foreach($will->client->familyMembers as $member) @endforeach
No. Full Name Relationship NRIC/Passport
{{ $loop->iteration }} {{ strtoupper($member->full_name ?? 'N/A') }} {{ ucfirst($member->relationship ?? 'N/A') }} {{ $member->ic_number ?? 'N/A' }}
@endif
THIRD: APPOINTMENT OF EXECUTOR
@php $testatorDetails = is_string($will->testator_details) ? json_decode($will->testator_details, true) ?? [] : ($will->testator_details ?? []); $executor = $testatorDetails['executor'] ?? []; @endphp @if(!empty($executor['full_name']))

I hereby nominate, constitute and appoint {{ strtoupper($executor['full_name']) }} (NRIC: {{ $executor['ic'] ?? 'N/A' }}) to be the Executor and Trustee of this my Will.

@php $guardian = $testatorDetails['guardian'] ?? []; @endphp @if(!empty($guardian['full_name']))

In the event that the above-named Executor shall fail, refuse or be unable to act, I hereby nominate {{ strtoupper($guardian['full_name']) }} (NRIC: {{ $guardian['ic'] ?? 'N/A' }}) to act as the alternate Executor.

@endif @else

I hereby nominate, constitute and appoint _________________________ (NRIC: _________________________) to be the Executor.

@endif
@php $beneficiaries = is_string($will->beneficiaries) ? json_decode($will->beneficiaries, true) ?? [] : ($will->beneficiaries ?? []); @endphp @if(!empty($beneficiaries) && count($beneficiaries) > 0)
FOURTH: BENEFICIARIES AND DISTRIBUTION

I give, devise and bequeath my estate to my beneficiaries in the manner following:

@foreach($beneficiaries as $beneficiary) @endforeach
No. Full Name Relationship
{{ $loop->iteration }} {{ strtoupper($beneficiary['full_name'] ?? $beneficiary['name'] ?? 'N/A') }} {{ $beneficiary['relationship'] ?? 'N/A' }}
@endif @php $assets = is_string($will->assets) ? json_decode($will->assets, true) ?? [] : ($will->assets ?? []); $totalAssetValue = 0; foreach ($assets as $a) { if (is_array($a) && isset($a['value'])) { $totalAssetValue += (float)$a['value']; } } @endphp @if(!empty($assets) && count($assets) > 0)
FIFTH: SPECIFIC BEQUESTS OF ASSETS

I declare that I am the sole and absolute owner of the following assets, which I hereby give, devise and bequeath as follows:

@foreach($assets as $index => $asset)

{{ $index + 1 }}. {{ $asset['asset_type'] ?? $asset['description'] ?? 'Asset' }} - RM {{ number_format($asset['value'] ?? 0, 2) }}

@endforeach

TOTAL ESTATE VALUE: RM {{ number_format($totalAssetValue, 2) }}

@endif @if($will->liabilities && $will->liabilities->count() > 0)
SIXTH: LIABILITIES

I declare that I have the following liabilities which shall be paid from my estate prior to distribution:

@php $totalLiability = 0; @endphp @foreach($will->liabilities as $liability) @php $totalLiability += $liability->amount ?? 0; @endphp

{{ $loop->iteration }}. {{ $liability->type ?? $liability->liability_type ?? 'Liability' }} - RM {{ number_format($liability->amount ?? 0, 2) }}

@endforeach

TOTAL LIABILITIES: RM {{ number_format($totalLiability, 2) }}

@endif
IN WITNESS WHEREOF

I have hereunto set my hand to this my Last Will and Testament this {{ date('jS') }} day of {{ date('F Y') }}.

TESTATOR
WITNESS 1
WITNESS 2