@extends('layouts.portal') @section('title', 'Client Details') @section('page_title', 'Client Profile') @section('page_subtitle', $client->full_name) @section('sidebar') @include('admin.partials.sidebar', ['active' => 'clients']) @endsection @section('content')
← Back to Clients
{{ substr($client->first_name, 0, 1) }}

{{ $client->full_name }}

{{ $client->email }}

📞{{ $client->phone ?? 'N/A' }} 🆔{{ $client->ic_number ?? 'N/A' }}
{{ ucfirst($client->status) }}

Joined {{ $client->created_at->format('d M Y') }}

👤

Created By

@if($client->referrer)

{{ $client->referrer->name }} ({{ ucfirst($client->referrer->role) }})

@elseif($client->createdBy)

{{ $client->createdBy->name }} ({{ ucfirst($client->createdBy->role) }})

@else

Unknown

@endif

Created On

{{ $client->created_at->format('d M Y, g:i A') }}

📄

Wills

{{ $client->wills->count() }}

🛡️

KYC Status

{{ $client->risk_rating ?? 'Not Assessed' }}

📁

KYC Documents

{{ $client->kycDocuments->count() }}

👤 Personal Information

Date of Birth {{ $client->date_of_birth ? $client->date_of_birth->format('d M Y') : 'Not provided' }}
Country {{ $client->country ?? 'Not provided' }}
Identification Type {{ $client->identification_type ?? 'Not provided' }}
Occupation {{ $client->occupation ?? 'Not provided' }}
Nationality {{ $client->nationality ?? 'Not provided' }}

🏠 Address

{{ $client->address ?: 'No address provided' }}

📞 Emergency Contact

{{ $client->emergency_contact_name ?: 'Not provided' }}

{{ $client->emergency_contact_phone ?: 'Not provided' }}

📄 Wills

@if($client->wills->count() > 0)
@foreach($client->wills as $will)

{{ $will->is_joint ? 'Joint Will' : ($will->will_type === 'individual' ? 'Individual Will' : 'Trust Will') }}

{{ $will->created_at->format('d M Y') }}

{{ App\Models\Will::getStatuses()[$will->status] }} 👁️
@endforeach
@else

No wills created yet

@endif
@endsection