@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')
Choose the appropriate will type for {{ $client->full_name }}
Progress
Complete