@extends('layouts.portal') @section('title', 'Reports') @section('page_title', 'My Reports') @section('page_subtitle', 'Comprehensive client and will performance data') @section('sidebar') @include('agent.partials.sidebar', ['active' => 'reports']) @endsection @section('content')
Total Clients
Total Wills
Completed
Completion Rate
Total Commission
Commission Paid
Commission Pending
| Client Name | IC Number | Phone | Created At (Time) | Will Status | Will Version | Written By | Completed | Approved | Comm. Level | Amount | Status | Paid At (Time) | Action | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $report['client_name'] ?? 'N/A' }} | {{ $report['ic_number'] ?? 'N/A' }} | {{ $report['email'] ?? 'N/A' }} | {{ $report['phone'] ?? 'N/A' }} | @if($report['client_created_at']) {{ \Carbon\Carbon::parse($report['client_created_at'])->format('M d, Y') }} @else N/A @endif | @if($report['will_status']) {{ ucfirst($report['will_status']) }} @else — @endif | {{ $report['will_version'] }} | {{ $report['will_created_by'] ?? 'N/A' }} | @if($report['will_completed_at']) {{ \Carbon\Carbon::parse($report['will_completed_at'])->format('M d, Y') }} @else — @endif | @if($report['admin_approved_at']) {{ \Carbon\Carbon::parse($report['admin_approved_at'])->format('M d') }} @else Await @endif | @if($report['commission_level'] !== 'N/A') Level {{ $report['commission_level'] }} @else — @endif | RM {{ number_format($report['commission_amount'] ?? 0, 2) }} | @if($report['commission_amount'] > 0) {{ ucfirst($report['commission_status'] ?? 'pending') }} @else — @endif | @if($report['commission_paid_at']) {{ \Carbon\Carbon::parse($report['commission_paid_at'])->format('M d, Y') }} @else — @endif | View |
|
No reports found Create your first client to get started Create Client |
||||||||||||||
End of Report