@extends('layouts.app') @section('title', 'Admin Dashboard') @section('content')

Welcome {{ auth()->user()->name }}! 👋

Manage and monitor all partners in the micro-loan system

{{ $stats['total_partners'] }}

Total Partners Registered

View All Partners
👥

{{ $stats['total_partners'] }}

Total Partners

Total Partners
{{ number_format($stats['total_partners']) }}
Active Partners
{{ number_format($stats['active_partners']) }}
Inactive Partners
{{ number_format($stats['inactive_partners']) }}
Partner Status
@php $total = $stats['total_partners']; $statusColors = [ 'active' => ['color' => '#28c76f', 'label' => 'Active'], 'inactive' => ['color' => '#ea5455', 'label' => 'Inactive'], ]; @endphp @foreach($statusColors as $status => $info) @php $count = $partnerStatusData[$status] ?? 0; $percentage = $total > 0 ? round(($count / $total) * 100) : 0; @endphp
{{ $info['label'] }}
{{ $percentage }}% ({{ $count }})
@endforeach
Recent Partners
View All
@forelse($recentPartners as $partner) @empty @endforelse
Partner Name Company Email Phone Status Registered
{{ substr($partner->name, 0, 1) }}
{{ $partner->name }}
{{ $partner->company_name ?? 'N/A' }} {{ $partner->email }} {{ $partner->phone ?? 'N/A' }} {{ ucfirst($partner->status) }} {{ $partner->created_at->format('d M Y') }}

No partners yet

@endsection @section('scripts') @endsection