@extends('layouts.portal') @section('title', 'Enhanced Reports') @section('page_title', 'Enhanced Reports') @section('page_subtitle', 'Comprehensive reporting with filtering and Excel export capabilities') @section('sidebar') @include('admin.partials.sidebar', ['active' => 'reports-enhanced']) @endsection @section('content')

Enhanced Reports

Comprehensive reporting with filtering and Excel export capabilities

6 Report Types Available System Online

Client Reports

Complete client information including personal details, assets, liabilities, and wills

View Reports

Will Reports

Will statistics, creator information, and detailed will analytics

View Reports

Agent Reports

Agent performance, client referrals, and commission details

View Reports

Lawyer Reports

Lawyer performance, will reviews, and commission analytics

View Reports

Commission Reports

Detailed commission tracking for agents and lawyers

View Reports

Will Creator Stats

Statistics on who created how many wills and performance metrics

View Reports

Quick Statistics

{{ App\Models\Client::count() }}
Total Clients
{{ App\Models\Will::count() }}
Total Wills
{{ App\Models\User::where('role', 'agent')->count() }}
Total Agents
{{ App\Models\User::where('role', 'lawyer')->count() }}
Total Lawyers
{{ App\Models\Commission::count() }}
Total Commissions
RM {{ number_format(App\Models\Payment::where('status', 'completed')->sum('amount'), 2) }}
Total Revenue
@endsection