@extends('layouts.portal') @section('title', 'All Clients - Staff Portal') @section('sidebar') @include('staff.partials.sidebar', ['active' => 'all-clients']) @endsection @section('content')
View and manage all your assigned clients
Total Clients
{{ $clients->total() }}
Active Wills
{{ $clients->sum(function($client) { return $client->wills->count(); }) }}
Pending Review
{{ $clients->where('status', 'pending')->count() }}
Completed
{{ $clients->where('status', 'active')->count() }}
| Client Information | Contact Details | Wills | Assets | Family | Status | Actions |
|---|---|---|---|---|---|---|
|
{{ substr($client->first_name, 0, 1) }}{{ substr($client->last_name, 0, 1) }}
{{ $client->full_name }}
IC: {{ $client->ic_number }}
|
{{ $client->email ?? 'N/A' }}
{{ $client->phone ?? 'N/A' }}
|
{{ $client->wills->count() }} Will(s) | {{ $client->assets->count() }} Asset(s) | {{ $client->familyMembers->count() }} Member(s) | @if($client->status === 'active') Active @elseif($client->status === 'pending') Pending @else {{ ucfirst($client->status) }} @endif |
@if(request('search')) No clients match your search criteria. Try different keywords. @else You don't have any assigned clients yet. Get started by creating your first client. @endif
Create Your First Client