@extends('layouts.portal') @section('title', 'Select Will Type') @section('page_title', 'Select Will Type') @section('page_subtitle', 'for ' . $client->full_name) @section('sidebar') @include('agent.partials.sidebar', ['active' => 'wills']) @endsection @php // Helper function to map package types to will types function getWillTypeFromPackageType($packageType) { $mapping = [ 'individual_will' => 'individual', 'trust_will' => 'trust', 'islamic_will' => 'islamic', 'joint_will' => 'joint', 'simple_will' => 'individual', 'couples_will' => 'joint', 'will_with_trust' => 'trust', ]; return $mapping[$packageType] ?? 'individual'; } // Get the effective will type for the client $effectiveWillType = getWillTypeFromPackageType($client->will_type_preference); @endphp @section('content')

Select Will Type

Choose the appropriate will type for {{ $client->full_name }}

Progress

Complete

My Clients {{ $client->full_name }} Select Will Type
@if(session('error'))
{{ session('error') }}
@endif
@csrf

Choose Will Type

Select the appropriate will type based on the client's needs and circumstances

@if($client->will_type_preference)

Current preference: {{ $client->will_type_preference }} (mapped to: {{ $effectiveWillType }})

@endif
Back to Client
Back to Clients
@endsection