@extends('layouts.admin') @section('title', 'Admin Dashboard') @section('heading', 'Dashboard') @section('content') {{-- Stats row --}}
@php $statCards = [ ['label' => 'Total Students', 'value' => $stats['total_students'], 'icon' => '◉', 'color' => 'text-gold'], ['label' => 'Active Courses', 'value' => $stats['total_courses'], 'icon' => '◈', 'color' => 'text-sage'], ['label' => 'Enrollments', 'value' => $stats['total_enrollments'], 'icon' => '◎', 'color' => 'text-rust'], ['label' => 'Certificates Issued', 'value' => $stats['total_certificates'], 'icon' => '◆', 'color' => 'text-gold-light'], ]; @endphp @foreach ($statCards as $card)
{{ $card['icon'] }}
{{ number_format($card['value']) }}
{{ $card['label'] }}
@endforeach
{{-- Recent Enrollments --}}

Recent Enrollments

View all →
@if ($recentEnrollments->isEmpty())
No enrollments yet.
@else
@foreach ($recentEnrollments as $enrollment) @endforeach
Student Course Enrolled Status
{{ $enrollment->user->name }}
{{ $enrollment->user->email }}
{{ $enrollment->course->title }} {{ $enrollment->created_at->format('d M Y') }} @if ($enrollment->status === 'completed') ✓ Completed @else ◷ Active @endif
@endif
{{-- Quick links --}}
+
Add New Course
Create a new programme
Manage Enrollments
Issue certificates
All Courses
View and manage courses
@endsection