@extends('layouts.app') @section('title', 'Client Details - ' . $client->first_name . ' ' . $client->last_name) @section('content')

Client Details

Complete information for {{ $client->full_name }}

Client Overview
Client ID: #{{ $client->id }}
Full Name: {{ $client->full_name }}
Email: {{ $client->email }}
Phone: {{ $client->phone ?? 'N/A' }}
IC Number: {{ $client->ic_number ?? 'N/A' }}
Status: {{ ucfirst($client->status) }}
Address: {{ $client->address ?? 'N/A' }}
Emergency Contact: {{ $client->emergency_contact_name ?? 'N/A' }}
Emergency Phone: {{ $client->emergency_contact_phone ?? 'N/A' }}
Created By: {{ $client->user?->full_name ?? $client->user?->name }} {{ $client->user?->email }}
Assigned Staff: {{ $client->assignedStaff?->full_name ?? $client->assignedStaff?->name ?? 'N/A' }}
Assigned Lawyer: {{ $client->assignedLawyer?->full_name ?? $client->assignedLawyer?->name ?? 'N/A' }}
RM {{ number_format($stats['total_assets_value'], 2) }}
Total Assets Value
RM {{ number_format($stats['total_liabilities_value'], 2) }}
Total Liabilities
RM {{ number_format($stats['net_worth'], 2) }}
Net Worth
{{ $stats['total_wills'] }}
Total Wills ({{ $stats['completed_wills'] }} completed)
Assets ({{ $client->assets->count() }} items)
@foreach($client->assets as $asset) @endforeach
Type Description Value Location Will ID Created Date
{{ ucfirst($asset->type) }} {{ $asset->description }} RM {{ number_format($asset->value, 2) }} {{ $asset->location ?? 'N/A' }} @if($asset->will) #{{ $asset->will->id }} @else N/A @endif {{ $asset->created_at->format('M d, Y') }}
Liabilities ({{ $client->liabilities->count() }} items)
@foreach($client->liabilities as $liability) @endforeach
Type Description Amount Creditor Will ID Created Date
{{ ucfirst($liability->type) }} {{ $liability->description }} RM {{ number_format($liability->amount, 2) }} {{ $liability->creditor ?? 'N/A' }} @if($liability->will) #{{ $liability->will->id }} @else N/A @endif {{ $liability->created_at->format('M d, Y') }}
Wills ({{ $client->wills->count() }} wills)
@foreach($client->wills as $will) @endforeach
Will ID Status Creator Type Created Date Signed Date Beneficiaries Trustees Assets Liabilities Actions
#{{ $will->id }} {{ ucfirst(str_replace('_', ' ', $will->status)) }} {{ ucfirst($will->creator_type ?? 'N/A') }} {{ $will->created_at->format('M d, Y') }} {{ $will->signed_at?->format('M d, Y') ?? 'Not Signed' }} {{ $will->beneficiaries?->count() ?? 0 }} {{ $will->trustees?->count() ?? 0 }} {{ $will->assets?->count() ?? 0 }} {{ $will->liabilities?->count() ?? 0 }} View
@if($client->familyMembers->count() > 0)
Family Members ({{ $client->familyMembers->count() }} members)
@foreach($client->familyMembers as $member) @endforeach
Name Relationship Date of Birth IC Number Phone Email
{{ $member->full_name }} {{ ucfirst($member->relationship) }} {{ $member->date_of_birth?->format('M d, Y') ?? 'N/A' }} {{ $member->ic_number ?? 'N/A' }} {{ $member->phone ?? 'N/A' }} {{ $member->email ?? 'N/A' }}
@endif @if($client->kycDocuments->count() > 0)
KYC Documents ({{ $client->kycDocuments->count() }} documents)
@foreach($client->kycDocuments as $document) @endforeach
Document Type File Name Status Uploaded Date Actions
{{ ucfirst(str_replace('_', ' ', $document->document_type)) }} {{ $document->file_name }} {{ ucfirst($document->status) }} {{ $document->created_at->format('M d, Y') }} @if($document->file_path) Download @endif
@endif
@endsection