Input: Admin Email + Password
Process: Verify credentials → Check role = ADMIN → Generate admin session token
Output: Login successful → Redirect to Admin Dashboard
Input: Admin session token
Process: Fetch system statistics → Count active students → Calculate revenue → Show content count
Output: Dashboard with key metrics (total students, revenue, active subscriptions, content stats)
Input: Admin views/manages students
Process: List all students → View details → Approve/Block/Delete accounts → Update status
Output: Student list with actions (Active/Inactive/Blocked status)
Input: Admin uploads video file with metadata (title, course, is_free flag)
Process: Validate file → Upload to storage → Save metadata to database → Link to course
Output: Video successfully uploaded and available for students
Input: Admin uploads PDF file with metadata (title, course, is_free)
Process: Validate PDF → Upload to storage → Save file path to database
Output: Notes successfully uploaded and downloadable for students
Input: Admin creates exam with title, course, questions, duration, total marks
Process: Enter exam details → Add questions with answers → Set marking scheme → Save exam
Output: Exam created and available for students to attempt
Input: Admin defines plan (name, duration, price, features)
Process: Enter plan details → Set included features (videos, notes, tests, guidance) → Save plan
Output: Subscription plan active and available for student purchase
Input: Admin views payment history
Process: Fetch all payments → Filter by status/date → Calculate total revenue
Output: Payment list with details (student, amount, date, status, transaction ID)
Input: Admin selects exam to view results
Process: Fetch all student results → Calculate pass/fail statistics → Generate report
Output: Result list with student performance (marks, status, rank)
Input: Admin creates notification message
Process: Write message → Select target students (All/Specific) → Send notification → Store in DB
Output: Notification sent to students' dashboard and email
Input: Admin requests analytics dashboard
Process: Aggregate data from all tables → Calculate KPIs → Generate graphs and charts
Output: Analytics dashboard (enrollment trends, revenue graphs, content usage, exam statistics)
Secure admin login → Role verification → Session token generated
System statistics → Active students → Revenue tracking → Content count
View all students → Approve/Block accounts → Update status
Upload lectures → Validate files → Store metadata → Content available
Upload PDFs → Validate format → Store path → Notes downloadable
Create exams → Add questions → Set marking → Exam ready
Create plans → Set features → Define pricing → Plans active
View all payments → Transaction history → Revenue calculation
View exam results → Student performance → Pass/fail stats
Send alerts → Target students → Push to dashboard + email
Generate reports → Data aggregation → KPIs & trends
Full system management → Content control → User oversight
👨💼 Admin Operations: 11 major functions
📦 Database Tables: 13 tables managed
🔄 Complete Admin Lifecycle: Login → Management → Analytics