@extends('Layout.mainlayout') @section('content')
Total Revenue
₦ {{ number_format($total_revenue, 2) }}
Total Income Make
ACTIVE POLICIES
{{ $active_policies }}
Total active insurance policies
Total Advocate
{{ $total_advocates }}
Total Number of Advocate in the system
Total Transaction
{{ $total_transactions }}
Payment Made

Last policies

@forelse($last_policies as $policy) @empty @endforelse
Client ↓ Policy ID ↓ Policy Class ↓ StartDate ↓ Status ↓
{{ $policy->customer->title ?? 'N/A' }} {{ $policy->customer->fname ?? 'N/A' }} #{{ $policy->policy_no ?? 'N/A' }} {{ $policy->ins_class ?? 'N/A' }}
{{ $policy->startDate->format('d/m/Y') }}
• {{ $policy->transaction ? ucfirst($policy->transaction->status) : 'Pending' }}
No policies found

Recently Join Advocates

@forelse($recent_advocates as $advocate)
{{ $advocate->first_name ?? 'N/A' }} {{ $advocate->last_name ?? 'N/A' }}
{{ $advocate->phone_number ?? 'N/A' }}
Email
{{ $advocate->email ?? 'N/A' }}
@empty
No advocates found
@endforelse
@endsection