@section('page_title', 'Analytics Overview') @section('content') {{-- ── Stat Cards ────────────────────────────────────────────── --}}
💰
Revenue
₦{{ number_format($revenue) }}
Total Revenue
↑ Via Paystack
🗳️
Votes
{{ number_format($totalVotes) }}
Total Votes Cast
Confirmed payments only
🌾
Active
{{ $activeNominees }}
Active Nominees
Visible on public page
🏷️
Categories
{{ $totalCategories }}
Award Categories
Manage in Categories
{{-- ── Quick Actions ──────────────────────────────────────────── --}}
➕ Add Nominee 🏷 Categories 💳 Transactions ⬇ Export CSV
{{-- ── Recent Transactions ────────────────────────────────────── --}}

💳 Recent Transactions

View All →
@forelse ($recentTx as $t) @empty @endforelse
Reference Voter Nominee Votes Amount Status Date
{{ $t->paystack_reference }}
{{ $t->voter_name }}
{{ $t->voter_email }}
{{ $t->nominee->farm_name }} {{ number_format($t->vote_count) }} ₦{{ number_format($t->amount_paid) }} {{ $t->created_at->format('d M Y H:i') }}
💳

No transactions yet

{{-- ── Top Nominees Summary ───────────────────────────────────── --}} @if(isset($topNominees) && $topNominees->count())

🏆 Top Nominees by Votes

@foreach ($topNominees as $i => $n)
@php $rankCls = match($i) { 0 => 'lb-rank-1', 1 => 'lb-rank-2', 2 => 'lb-rank-3', default => 'lb-rank-n' }; @endphp
{{ $i + 1 }}
{{ $n->farm_name }} {{ number_format($n->votes) }} votes
@endforeach
@endif @endsection