@extends('layouts.portal') @section('title', 'View Will Details') @section('page_title', 'Will Details') @section('page_subtitle', 'Review your will document') @section('sidebar') @include('client.partials.sidebar', ['active' => 'dummy-will']) @endsection @section('content') @push('styles') @endpush @section('content')

Will Document

Client: {{ $will->client->full_name }} | Will ID: #{{ $will->id }} | Version: v{{ $will->version ?? 1 }}

Back to Dashboard @if($will->status == 'payment_pending') Make Payment @endif
{{ $will->status === 'draft' ? 'DRAFT' : 'FINAL' }}
LAST WILL AND TESTAMENT
OF
@php $testatorDetails = json_decode($will->testator_details, true) ?? []; $primaryTestator = $testatorDetails['primary'] ?? []; @endphp {{ $primaryTestator['full_name'] ?? 'Testator Name' }}
PREAMBLE
1. TESTATOR INFORMATION
Full Name:
{{ $primaryTestator['full_name'] ?? 'N/A' }}
Identity Card No:
{{ $primaryTestator['ic'] ?? 'N/A' }}
Nationality:
{{ $primaryTestator['nationality'] ?? 'N/A' }}
Date of Birth:
{{ $primaryTestator['dob'] ?? 'N/A' }}
Email Address:
{{ $primaryTestator['email'] ?? 'N/A' }}
Phone Number:
{{ $primaryTestator['phone'] ?? 'N/A' }}
Residential Address:
{{ $primaryTestator['address'] ?? 'N/A' }}
@php $secondaryTestator = $testatorDetails['secondary'] ?? []; @endphp @if(!empty($secondaryTestator))
Secondary Testator:
Full Name:
{{ $secondaryTestator['full_name'] ?? 'N/A' }}
Identity Card No:
{{ $secondaryTestator['ic'] ?? 'N/A' }}
Nationality:
{{ $secondaryTestator['nationality'] ?? 'N/A' }}
Relationship:
{{ $secondaryTestator['relationship'] ?? 'N/A' }}
Address:
{{ $secondaryTestator['address'] ?? 'N/A' }}
@endif @php $executor = $testatorDetails['executor'] ?? []; @endphp
2. EXECUTOR APPOINTMENT
Executor's Full Name:
{{ $executor['full_name'] ?? 'N/A' }}
Identity Card No:
{{ $executor['ic'] ?? 'N/A' }}
Nationality:
{{ $executor['nationality'] ?? 'N/A' }}
Relationship:
{{ $executor['relationship'] ?? 'N/A' }}
Address:
{{ $executor['address'] ?? 'N/A' }}
@php $guardian = $testatorDetails['guardian'] ?? []; @endphp
3. GUARDIAN APPOINTMENT
Guardian's Full Name:
{{ $guardian['full_name'] ?? 'N/A' }}
Identity Card No:
{{ $guardian['ic'] ?? 'N/A' }}
Nationality:
{{ $guardian['nationality'] ?? 'N/A' }}
Relationship:
{{ $guardian['relationship'] ?? 'N/A' }}
Address:
{{ $guardian['address'] ?? 'N/A' }}
@if($will->beneficiaries && $will->beneficiaries->count() > 0)
4. BENEFICIARIES
@foreach($will->beneficiaries as $index => $beneficiary)
Beneficiary {{ $index + 1 }}:
Full Name:
{{ $beneficiary->full_name ?? 'N/A' }}
Relationship:
{{ $beneficiary->relationship ?? 'N/A' }}
Identity Card No:
{{ $beneficiary->ic_number ?? 'N/A' }}
Share Percentage:
{{ $beneficiary->share_percentage ?? 'N/A' }}%
Address:
{{ $beneficiary->address ?? 'N/A' }}
@endforeach @endif @if($will->assets && $will->assets->count() > 0)
5. ASSETS
@foreach($will->assets as $index => $asset)
Asset {{ $index + 1 }}:
Asset Type:
{{ $asset->asset_type ?? 'N/A' }}
Description:
{{ $asset->description ?? 'N/A' }}
Estimated Value:
RM{{ number_format($asset->value ?? 0, 2) }}
Location:
{{ $asset->location ?? 'N/A' }}
@endforeach @endif @if($will->liabilities && $will->liabilities->count() > 0)
6. LIABILITIES
@foreach($will->liabilities as $index => $liability)
Liability {{ $index + 1 }}:
Liability Type:
{{ $liability->type ?? $liability->liability_type ?? 'N/A' }}
Description:
{{ $liability->description ?? 'N/A' }}
Amount:
RM{{ number_format($liability->amount ?? 0, 2) }}
Creditor:
{{ $liability->creditor ?? 'N/A' }}
@endforeach @endif @if($will->gifts && $will->gifts->count() > 0)
7. SPECIFIC GIFTS
@foreach($will->gifts as $index => $gift)
Gift {{ $index + 1 }}:
Description:
{{ $gift->description ?? 'N/A' }}
Recipient:
{{ $gift->recipient_name ?? 'N/A' }}
Value:
RM{{ number_format($gift->value ?? 0, 2) }}
Conditions:
{{ $gift->conditions ?? 'N/A' }}
@endforeach @endif @if($will->donations && $will->donations->count() > 0)
8. DONATIONS
@foreach($will->donations as $index => $donation)
Donation {{ $index + 1 }}:
Organization:
{{ $donation->organization_name ?? 'N/A' }}
Amount:
RM{{ number_format($donation->amount ?? 0, 2) }}
Purpose:
{{ $donation->purpose ?? 'N/A' }}
Conditions:
{{ $donation->conditions ?? 'N/A' }}
@endforeach @endif @if($will->allowances && $will->allowances->count() > 0)
9. ALLOWANCES
@foreach($will->allowances as $index => $allowance)
Allowance {{ $index + 1 }}:
Recipient:
{{ $allowance->recipient_name ?? 'N/A' }}
Amount:
RM{{ number_format($allowance->amount ?? 0, 2) }}
Frequency:
{{ $allowance->frequency ?? 'N/A' }}
Purpose:
{{ $allowance->purpose ?? 'N/A' }}
@endforeach @endif @if($will->witnesses && $will->witnesses->count() > 0)
10. WITNESSES
@foreach($will->witnesses as $index => $witness) @if($index < 2)
Witness {{ $index + 1 }}:
Full Name:
{{ $witness->full_name ?? 'N/A' }}
Identity Card No:
{{ $witness->ic_number ?? 'N/A' }}
Address:
{{ $witness->address ?? 'N/A' }}
Signature Status:
@if($witness->digital_signature) ✓ Signed @else Not Signed @endif
@endif @endforeach @endif
@endsection