{{-- ── Welcome Banner ── --}}
{{-- ── Stat Cards ── --}}
{{-- ── Charts Row ── --}}
{{-- Registration Trend Chart --}}
{{-- Deal Status Breakdown ── --}}
{{-- ── Bottom Row ── --}}
Registration Trend — last 6 months
Farmers
Vendors
@php
$dPending = \App\Models\Interest::where('status','pending')->count();
$dAccepted = \App\Models\Interest::where('status','accepted')->count();
$dCountered = \App\Models\Interest::where('status','countered')->count();
$dRejected = \App\Models\Interest::where('status','rejected')->count();
$dTotal = $dPending + $dAccepted + $dCountered + $dRejected;
$pct = fn($n) => $dTotal > 0 ? round($n / $dTotal * 100) : 0;
@endphp
Deal Status Breakdown
{{ $dTotal }} total
{{-- Accepted --}}
{{-- Pending --}}
{{-- Countered --}}
{{-- Rejected --}}
Accepted
{{ $dAccepted }} ({{ $pct($dAccepted) }}%)
Pending
{{ $dPending }} ({{ $pct($dPending) }}%)
Countered
{{ $dCountered }} ({{ $pct($dCountered) }}%)
Rejected
{{ $dRejected }} ({{ $pct($dRejected) }}%)
{{-- KYC Progress ── --}}
{{-- Quick Links ── --}}
{{-- System Health ── --}}
KYC Completion
View Report →
@php
$farmerKycDone = $totalFarmers > 0
? round((($totalFarmers - $farmerKycPending) / $totalFarmers) * 100)
: 0;
$vendorKycDone = $totalVendors > 0
? round((($totalVendors - $vendorKycPending) / $totalVendors) * 100)
: 0;
@endphp
Farmers KYC
{{ $farmerKycDone }}%
{{ $totalFarmers - $farmerKycPending }} verified
{{ $farmerKycPending }} pending
Vendors KYC
{{ $vendorKycDone }}%
{{ $totalVendors - $vendorKycPending }} verified
{{ $vendorKycPending }} pending
System Overview
@php
$totalDeals = \App\Models\Interest::count();
$pendingDeals = \App\Models\Interest::where('status','pending')->count();
$flaggedDeals = \App\Models\Interest::where('is_flagged',1)->count();
@endphp
Total Registered Users
{{ $totalFarmers + $totalVendors }}
Pending Deals
{{ $pendingDeals }}
Flagged Deals
{{ $flaggedDeals }}
Total Deal Volume
{{ $totalDeals }}