@extends('layouts.portal') @section('title', 'Testator Details - Will') @section('page_title', 'Testator Details') @section('page_subtitle', 'for ' . $client->full_name) @section('sidebar') @include('agent.partials.sidebar', ['active' => 'wills']) @endsection @section('content')

Testator Details

{{ $will->will_type ? ucfirst($will->will_type) : 'Will' }} - Enter Testator Information

Progress

Step 2 of 8

Clients {{ $client->full_name }} Select Will Type Testator Details

Testator Details

Person who is writing the will (Primary Testator)

@csrf
1

Primary Testator (Will Writer)

Choose agent from dropdown, then manually fill details below

Select agent from dropdown, then manually enter their details in the form fields.
@php $testatorDetails = []; $secondaryDetails = []; $executorDetails = []; $guardianDetails = []; // Debug: Check raw data $rawTestatorDetails = $will->testator_details; if ($will->testator_details !== null) { // Handle both array (from Laravel casts) and JSON string $decodedData = is_array($will->testator_details) ? $will->testator_details : (json_decode($will->testator_details, true) ?? []); $testatorDetails = $decodedData['primary'] ?? []; $secondaryDetails = $decodedData['secondary'] ?? []; $executorDetails = $decodedData['executor'] ?? []; $guardianDetails = $decodedData['guardian'] ?? []; } @endphp
@php // Extract special instructions text from JSON if it exists $specialInstructions = ''; if ($will->instructions) { $instrData = is_array($will->instructions) ? $will->instructions : json_decode($will->instructions, true); if (is_array($instrData) && isset($instrData['special_instructions'])) { $specialInstructions = $instrData['special_instructions']; } } @endphp
2

Secondary Testator

Choose agent from dropdown, then manually fill details below

Select agent from dropdown, then manually enter their details in the form fields.
3

Primary Executor

Person who will execute/manage will after death

Choose a family member to automatically fill their details below

Family members from your profile will appear here. You can still enter details manually.
4

Appointment of Guardian / Caretaker

Choose a family member to automatically fill their details below

Family members from your profile will appear here. You can still enter details manually.
Back
@endsection