@extends('admin.layouts.app') @section('title', 'PG Finsev | Admin Dashboard') @section('page-title', 'Admin Dashboard') @section('page-description') Welcome back, {{ Auth::user()->name }} @endsection @push('styles') @endpush @section('content')

Overview

Monitor clients, applications, KYC verification and payments.

๐Ÿ‘ฅ
Total Clients
{{ $totalClients }}
View Clients โ†’
๐Ÿ“‹
Applications
{{ $totalApplications }}
View Applications โ†’
๐Ÿชช
Pending KYC
{{ $pendingKyc }}
Review KYC โ†’
๐Ÿ’ณ
Total Payments
{{ $totalPayments }}
View Payments โ†’
๐Ÿ’ฐ
Total Loans
{{ $totalLoans }}
View Loans โ†’
โณ
Pending Loans
{{ $pendingLoans }}
Review Pending โ†’
โœ“
Active Loans
{{ $activeLoans }}
View Active โ†’
โš 
Overdue Loans
{{ $overdueLoans }}
Review Overdue โ†’

Loan Financial Overview

Manage Loans โ†’
๐Ÿ’ต
Loan Amount All applications โ‚น{{ number_format($totalLoanAmount, 2) }}
๐Ÿ“ค
Disbursed Disbursed loan value โ‚น{{ number_format($totalDisbursedAmount, 2) }}
๐Ÿ“Š
Outstanding Current active balance โ‚น{{ number_format($totalOutstandingAmount, 2) }}
๐Ÿงพ
Processing Fees Total configured fees โ‚น{{ number_format($totalProcessingFees, 2) }}

Loan Status

View All โ†’
โณ
Pending
{{ $pendingLoans }}
โœ“
Approved
{{ $approvedLoans }}
โ—
Active
{{ $activeLoans }}
โš 
Overdue
{{ $overdueLoans }}
โœ“
Completed
{{ $completedLoans }}
@php $dashboardNotifications = Auth::user() ->notifications() ->latest() ->take(5) ->get(); @endphp

Recent Notifications

View All โ†’
@forelse($dashboardNotifications as $notification) @php $notificationData = $notification->data ?? []; $notificationTitle = data_get( $notificationData, 'title', 'Notification' ); $notificationMessage = data_get( $notificationData, 'message', '' ); $notificationLevel = data_get( $notificationData, 'level', 'info' ); if (!in_array( $notificationLevel, ['success', 'warning', 'error', 'info'], true )) { $notificationLevel = 'info'; } $notificationLoan = data_get( $notificationData, 'loan_number' ); @endphp
{{ $notificationLevel === 'success' ? 'โœ“' : ($notificationLevel === 'warning' ? 'โš ' : ($notificationLevel === 'error' ? '!' : '๐Ÿ””')) }}
{{ $notificationTitle }} @if(!$notification->read_at) @endif
{{ $notificationMessage }}
{{ $notification->created_at?->diffForHumans() ?? '' }} @if($notificationLoan) ยท {{ $notificationLoan }} @endif
@if(!$notification->read_at)
@csrf
@endif
@empty
๐Ÿ””
No notifications New loan and payment updates will appear here.
@endforelse

Recent Loans

View All โ†’
@forelse($recentLoans as $loan) @php $loanStatus = strtolower((string) $loan->status); $loanBadgeClass = match ($loanStatus) { 'active', 'disbursed', 'completed' => 'badge-green', 'pending', 'approved' => 'badge-orange', 'overdue', 'rejected' => 'badge-red', default => 'badge-gray', }; @endphp @empty @endforelse
Loan Client Amount Status Action
{{ $loan->loan_number }} {{ $loan->user->name ?? 'Unknown' }} โ‚น{{ number_format((float) $loan->loan_amount, 2) }} {{ ucfirst(str_replace('_', ' ', $loan->status)) }} View
No loans found.

Quick Actions

Manage

KYC Overview

View All โ†’
โณ
Pending Verification
{{ $pendingKyc }}
โœ“
Verified
{{ $verifiedKyc }}
โœ•
Rejected
{{ $rejectedKyc }}

Recent Clients

View All โ†’
@forelse($recentClients as $client) @php $initial = strtoupper( substr( $client->name, 0, 1 ) ); $kyc = $client->clientKyc; @endphp @empty @endforelse
Client Mobile Registered KYC Action
{{ $initial }}
{{ $client->name }}
{{ $client->email }}
{{ $client->mobile ?? '-' }} {{ $client->created_at ? $client->created_at ->format('d M Y') : '-' }} @if( $kyc && $kyc->status === 'verified' ) Verified @elseif( $kyc && $kyc->status === 'rejected' ) Rejected @elseif($kyc) Pending @else Not Submitted @endif View
No clients found.

Recent Applications

View All โ†’
@forelse( $recentApplications as $application ) @empty @endforelse
Client KYC Date
{{ strtoupper( substr( $application->name, 0, 1 ) ) }}
{{ $application->name }}
{{ $application->email }}
@if( $application->clientKyc && $application->clientKyc->status === 'verified' ) Verified @elseif( $application->clientKyc && $application->clientKyc->status === 'rejected' ) Rejected @elseif( $application->clientKyc ) Pending @else Not Submitted @endif {{ $application->created_at ? $application->created_at ->format('d M Y') : '-' }}
No applications found.

Recent Payments

View All โ†’
@forelse( $recentPayments as $payment ) @empty @endforelse
Client Amount Status
{{ $payment->user->name ?? 'Unknown' }} โ‚น{{ number_format( $payment->amount ?? 0, 2 ) }} @if( $payment->status === 'paid' ) Paid @elseif( $payment->status === 'pending' ) Pending @elseif( $payment->status === 'failed' ) Failed @else {{ ucfirst( $payment->status ) }} @endif
No payments found.
@endsection