@extends('layouts.portal') @section('title', 'Staff Dashboard') @section('page_title', 'Staff Dashboard') @section('page_subtitle', 'Will Writer Portal') @section('sidebar') @include('staff.partials.sidebar', ['active' => 'dashboard']) @endsection @section('content')

Welcome back, {{ auth()->user()->name }}!

Manage your assigned clients and will drafting workflow

Secure Portal Encrypted

Total Clients

{{ $stats['total_clients'] ?? 0 }}

Active assignments

Pending Review

{{ $stats['pending_review'] ?? 0 }}

Awaiting approval

In Drafting

{{ $stats['drafting'] ?? 0 }}

In progress

Completed

{{ $stats['stored'] ?? 0 }}

Finalized

Assigned Clients

Clients assigned to you for will management

@if($assignedClients->count() > 0)
@foreach($assignedClients as $client) @endforeach
Client Contact Wills Status Created Actions
{{ substr($client->first_name, 0, 1) }}

{{ $client->full_name }}

ID: {{ $client->id }}

{{ $client->email }}

{{ $client->phone }}

{{ $client->wills->count() }} will(s) {{ ucfirst($client->status) }}
{{ $client->created_at->format('d M Y') }}
View @if($client->wills->count() === 0) Create Will @endif
{{ $assignedClients->links() }}
@else

No clients assigned yet

You don't have any clients assigned to you at the moment.

Contact your administrator to get clients assigned to your account.

@endif
@endsection