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

Dashboard

{{-- Stats Cards --}}
๐Ÿ‘ฅ
{{ $stats['total_students'] }}
Total Students
โœ…
{{ $stats['active'] }}
Active
โฐ
{{ $stats['expired'] }}
Expired
๐Ÿ“…
{{ $stats['today_checkins'] }}
Check-ins Today
{{-- Expiring Soon --}}

โš ๏ธ Expiring Within 5 Days

@forelse($expiringSoon as $student)
{{ $student->name }}
{{ $student->email }} ยท {{ ucfirst($student->tier) }}
{{ $student->daysUntilExpiry() }} day(s) left
Manage โ†’
@empty

No subscriptions expiring in the next 5 days. ๐ŸŽ‰

@endforelse
{{-- Tier Breakdown --}}

๐Ÿ“Š By Tier

@foreach($tierBreakdown as $t)
{{ $t->tier }} {{ $t->count }}
@endforeach
Pending {{ $stats['pending'] }}
Cancelled {{ $stats['cancelled'] }}
Total Revenue โ‚ฆ{{ number_format($stats['total_revenue'], 2) }}
{{-- Sections --}}

๐Ÿ—‚๏ธ Sections

Manage โ†’
@foreach($sections as $sec)
{{ $sec->name }}
{{ $sec->students_count }}
students
@endforeach
{{-- Recent Payments --}}

๐Ÿ’ณ Recent Payments

@forelse($recentPayments as $pay) @empty @endforelse
Student Tier Amount Date Reference
{{ $pay->student->name }} {{ $pay->tier->name ?? 'โ€”' }} โ‚ฆ{{ number_format($pay->amount, 2) }} {{ $pay->paid_at?->format('M d, Y') }} {{ $pay->reference }}
No payments yet.
@endsection