@extends('layouts.portal') @section('title', 'Select Client & Template') @section('page_title', 'Create New Will') @section('page_subtitle', 'Select template type and client') @section('sidebar') @include('admin.partials.sidebar', ['active' => 'will-templates']) @endsection @section('content')

Create New Will

Step 1: Select client and template type

Selected Template

@php $templateLabels = [ 'individual' => ['name' => 'Individual Will', 'icon' => 'fa-user', 'color' => 'blue'], 'trust' => ['name' => 'Trust Will', 'icon' => 'fa-shield-alt', 'color' => 'purple'], 'islamic' => ['name' => 'Islamic Wasiat', 'icon' => 'fa-mosque', 'color' => 'green'], 'joint' => ['name' => 'Joint Will', 'icon' => 'fa-users', 'color' => 'orange'], ]; $selected = $templateLabels[$templateType] ?? $templateLabels['individual']; @endphp
{{ $selected['name'] }}
Change Template

Select Client

Add New Client
@if($clients->count() > 0)
@foreach($clients as $client)
{{ strtoupper(substr($client->first_name, 0, 1)) }}

{{ $client->first_name }} {{ $client->last_name }}

{{ $client->email ?? 'N/A' }}

{{ $client->phone ?? 'N/A' }}

@if($client->ic_number)

IC: {{ $client->ic_number }}

@endif
@endforeach
@else

No clients found.

Create First Client
@endif
@endsection