@extends('layouts.portal') @section('title', 'Approved Wills') @section('page_title', 'Approved Wills') @section('page_subtitle', 'View all approved client wills') @section('sidebar') @include('agent.partials.sidebar', ['active' => 'approved']) @endsection @section('content')

Approved Wills

View all approved client wills

Octowill

Agent Dashboard

Total Approved

{{ $approvedWills->total() }}

This Month

{{ $approvedWills->where('updated_at', '>=', now()->startOfMonth())->count() }}

Individual Wills

{{ $approvedWills->where('will_type', 'individual')->count() }}

Trust Wills

{{ $approvedWills->where('will_type', 'trust')->count() }}

Approved Wills

All legally approved wills

@forelse($approvedWills as $will) @empty @endforelse
Client Will Type Approved By Approved Date Payment Actions
{{ substr($will->client->first_name ?? 'C', 0, 1) }}
{{ $will->client->full_name ?? 'Unknown Client' }}
{{ $will->client->email ?? 'No email' }}
{{ $will->will_type }}
{{ $will->approved_by ? 'Admin' : 'System' }}
{{ $will->updated_at->format('d M Y') }} {{ $will->payment_status == 'paid' ? 'Paid' : 'Pending' }}
@if($will->status == 'approved') View @else Review @endif Download

No approved wills found

No wills have been approved yet.

@if($approvedWills->hasPages())
Showing {{ $approvedWills->firstItem() }} to {{ $approvedWills->lastItem() }} of {{ $approvedWills->total() }} results
{{ $approvedWills->links() }}
@endif
@endsection