@extends('admin.layout') @section('title', 'Dashboard') @section('content')

Dashboard Overview

Welcome back! Here's what's happening with your platform.

{{-- Main Stats Cards --}}
{{-- Total Users --}}

Total Users

{{ number_format($totalUsers) }}

+{{ $newUsersThisWeek }} this week

View All Users →
{{-- Total Vouchers --}}

Total Vouchers

{{ number_format($totalVouchers) }}

{{ $claimRate }}% claimed

Manage Vouchers →
{{-- Activities --}}

Activities

{{ number_format($totalActivities) }}

{{ $activeHolidays }} active holidays

View Activities →
{{-- Blogs --}}

Blog Posts

{{ number_format($totalBlogs) }}

Content published

Manage Blogs →
{{-- Voucher Breakdown --}}

Available Vouchers

{{ number_format($availableVouchers) }}

Claimed Vouchers

{{ number_format($claimedVouchers) }}

Claims This Week

{{ number_format($recentClaims) }}

{{-- Charts Row --}}
{{-- Weekly Active Users --}}

Weekly Active Users (Past Year)

{{-- Vouchers by Type --}}

Voucher Distribution by Type

{{-- Vouchers Claimed by Holiday --}}

Vouchers Claimed by Holiday

{{-- Bottom Section: Top Users & Recent Activity --}}
{{-- Top Users --}}

Top Users by Claims

@if($topUsers->count() > 0)
@foreach($topUsers as $index => $user)
{{ $index + 1 }}

{{ $user->name ?? $user->email }}

{{ $user->email }}

{{ $user->vouchers_count }}

claims

@endforeach
@else

No voucher claims yet

@endif
{{-- Recent Activity --}}

Recent Voucher Claims

@if($recentActivity->count() > 0)
@foreach($recentActivity as $claim)

{{ $claim->user ? $claim->user->name : 'Unknown User' }}

claimed {{ ucfirst($claim->type) }} voucher

{{ $claim->claimed_at->diffForHumans() }}

@endforeach
@else

No recent claims

@endif
@endsection