diff --git a/src/app/(auth)/components/loginForm.tsx b/src/app/(auth)/components/loginForm.tsx index fc22012..ef16c34 100644 --- a/src/app/(auth)/components/loginForm.tsx +++ b/src/app/(auth)/components/loginForm.tsx @@ -21,7 +21,7 @@ export default function LoginForm() { const response = await login(email, password); console.log("Login successful:", response); authLogin(response.access_token, response.user); - router.push("/user-dashboard"); + router.push("/admin-dashboard"); } catch (error) { console.error("Login failed:", error); // Handle login error (e.g., display error message to user) diff --git a/src/app/(dashboard)/(pages)/academic-dashboard/page.tsx b/src/app/(dashboard)/(pages)/academic-dashboard/page.tsx index 7f2c8b6..ed014c4 100644 --- a/src/app/(dashboard)/(pages)/academic-dashboard/page.tsx +++ b/src/app/(dashboard)/(pages)/academic-dashboard/page.tsx @@ -1,22 +1,537 @@ - +"use client"; import Footer from "@/components/footer"; -import React from "react"; import "../../style/page.css"; - +import Header from "../../components/header"; +import Sidebar, { MenuItem } from "../../components/sidebar"; +import { useState } from "react"; +import { FaTachometerAlt, FaCalendarAlt, FaBullhorn, FaClipboardList, FaChartBar, FaBook} from "react-icons/fa"; export default function AcademicDashboardPage() { - return ( -
8
+Teaching this semester
+248
+Total enrollment
+12
+Exam claims to review
+5
+Published this month
+| Time | +Monday | +Tuesday | +Wednesday | +Thursday | +Friday | +
|---|---|---|---|---|---|
| 09:00 - 10:30 | +
+
+
+ Mathematics 101
+ Room 205
+ Year 1 Students
+ |
+
+
+
+ Physics 202
+ Lab 3
+ Year 2 Students
+ |
+
+
+
+ English Lit
+ Room 102
+ Year 1 Students
+ |
+
+
+
+ Computer Sci
+ Lab 7
+ Year 3 Students
+ |
+
+
+
+ History
+ Room 301
+ Year 1 Students
+ |
+
| 11:00 - 12:30 | +
+
+
+ Physics 202
+ Room 108
+ Year 2 Students
+ |
+
+
+
+ English Lit
+ Room 102
+ Year 1 Students
+ |
+
+
+
+ Mathematics 101
+ Room 205
+ Year 1 Students
+ |
+
+
+
+ History
+ Room 301
+ Year 1 Students
+ |
+
+
+
+ Computer Sci
+ Lab 7
+ Year 3 Students
+ |
+
| 14:00 - 15:30 | +
+
+
+ Computer Sci
+ Lab 7
+ Year 3 Students
+ |
+
+
+
+ Mathematics 101
+ Room 205
+ Year 1 Students
+ |
+
+
+
+ Physics 202
+ Lab 3
+ Year 2 Students
+ |
+
+
+
+ English Lit
+ Room 102
+ Year 1 Students
+ |
+
+
+
+ Chemistry Lab
+ Lab 5
+ Year 2 Students
+ |
+
| Title | +Date | +Audience | +Status | +Actions | +
|---|---|---|---|---|
| Midterm Exam Schedule | +2025-08-10 | +All Students | ++ Published + | ++ + + | +
| Library Closure Notice | +2025-08-05 | +All Students | ++ Published + | ++ + + | +
| New Course Materials Available | +2025-08-01 | +Mathematics 101 | ++ Published + | ++ + + | +
| Guest Lecture - Quantum Computing | +2025-07-28 | +Computer Science | ++ Draft + | ++ + + | +
| Student | +Course | +Claim Type | +Date Submitted | +Status | +Actions | +
|---|---|---|---|---|---|
| John Smith | +Mathematics 101 | +Extension Request | +2025-08-10 | ++ Pending + | ++ + | +
| Sarah Johnson | +Physics 202 | +Special Arrangements | +2025-08-08 | ++ Approved + | ++ + | +
| Michael Brown | +Computer Science | +Alternative Assessment | +2025-08-05 | ++ Rejected + | ++ + | +
| Emily Davis | +English Literature | +Extension Request | +2025-08-03 | ++ Pending + | ++ + | +
Semester 1
+Year 1 Students
+Semester 1
+Year 2 Students
+Semester 1
+Year 1 Students
+Semester 2
+Year 3 Students
+Semester 2
+Year 1 Students
+Semester 1
+Year 2 Students
+Student Performance Chart
+Course Enrollment Chart
+Overview Content
; + content = ( +1,248
++12% from last month
+342
++5% from last hour
+24
+3 require immediate attention
+Operational
+All systems running smoothly
+Users Content
; + content = ( +| User | +Role | +Last login | +Actions | +|
|---|---|---|---|---|
| John Doe | +Administrator | ++ john12@gmail.com + | +2023-05-15 14:30 | ++ + + | +
| Jane Smith | +Editor | ++ smith9@gmail.com + | +2023-05-14 09:15 | ++ + + | +
| Robert Johnson | +Viewer | ++ rbjohn@gmail.com + | +2023-05-10 16:45 | ++ + + + | +
Analytics Content
; + content = ( +User Activity Chart
+Performance Metrics Chart
+Settings Content
; + content = ( +8
+Currently in use
+4
+Ready for allocation
+12
+Awaiting approval
+96%
+Operational
+| Time | +Monday | +Tuesday | +Wednesday | +Thursday | +Friday | +
|---|---|---|---|---|---|
| 09:00 - 11:00 | +
+
+
+ Programming Lab A
+ Dr. Smith
+ Year 2 Students
+ |
+
+
+
+ Networking Lab B
+ Prof. Johnson
+ Year 3 Students
+ |
+
+
+
+ Database Lab C
+ Dr. Williams
+ Year 2 Students
+ |
+
+
+
+ Graphics Lab D
+ Prof. Brown
+ Year 3 Students
+ |
+
+
+
+ AI Lab E
+ Dr. Davis
+ Year 4 Students
+ |
+
| 11:30 - 13:30 | +
+
+
+ Networking Lab B
+ Prof. Johnson
+ Year 3 Students
+ |
+
+
+
+ Database Lab C
+ Dr. Williams
+ Year 2 Students
+ |
+
+
+
+ Programming Lab A
+ Dr. Smith
+ Year 2 Students
+ |
+
+
+
+ AI Lab E
+ Dr. Davis
+ Year 4 Students
+ |
+
+
+
+ Graphics Lab D
+ Prof. Brown
+ Year 3 Students
+ |
+
| 14:30 - 16:30 | +
+
+
+ Graphics Lab D
+ Prof. Brown
+ Year 3 Students
+ |
+
+
+
+ Programming Lab A
+ Dr. Smith
+ Year 2 Students
+ |
+
+
+
+ Networking Lab B
+ Prof. Johnson
+ Year 3 Students
+ |
+
+
+
+ Database Lab C
+ Dr. Williams
+ Year 2 Students
+ |
+
+
+
+ Research Lab F
+ Dr. Miller
+ Postgrad Students
+ |
+
| Equipment | +Lab | +Quantity | +Status | +Last Maintenance | +Actions | +
|---|---|---|---|---|---|
| High-Performance Workstations | +Graphics Lab D | +20 | ++ Operational + | +2025-07-15 | ++ + + | +
| Networking Equipment | +Networking Lab B | +15 | ++ Maintenance + | +2025-06-20 | ++ + + | +
| Database Servers | +Database Lab C | +8 | ++ Operational + | +2025-07-22 | ++ + + | +
| AI Workstations | +AI Lab E | +12 | ++ Operational + | +2025-08-01 | ++ + + | +
| Requester | +Lab | +Date/Time | +Purpose | +Status | +Actions | +
|---|---|---|---|---|---|
| John Smith | +Programming Lab A | +2025-08-15 09:00-11:00 | +Data Structures Workshop | ++ Pending + | ++ + + | +
| Sarah Johnson | +Networking Lab B | +2025-08-16 14:30-16:30 | +Network Security Lab | ++ Approved + | ++ + | +
| Michael Brown | +Graphics Lab D | +2025-08-17 11:30-13:30 | +3D Modeling Workshop | ++ Rejected + | ++ + | +
| Emily Davis | +Database Lab C | +2025-08-18 09:00-11:00 | +SQL Optimization Lab | ++ Pending + | ++ + + | +
Lab Utilization Chart
+Equipment Usage Chart
+| Equipment | +Lab | +Last Maintenance | +Next Due | +Status | +Actions | +
|---|---|---|---|---|---|
| High-Performance Workstations | +Graphics Lab D | +2025-07-15 | +2025-10-15 | ++ On Schedule + | ++ + | +
| Networking Equipment | +Networking Lab B | +2025-06-20 | +2025-08-20 | ++ Due Soon + | ++ + | +
| Database Servers | +Database Lab C | +2025-07-22 | +2025-10-22 | ++ On Schedule + | ++ + | +
| AI Workstations | +AI Lab E | +2025-08-01 | +2025-11-01 | ++ On Schedule + | ++ + | +
Dr. Sarah Johnson
+Semester 1
+Prof. Michael Chen
+Semester 1
+Dr. Emily Roberts
+Semester 1
+Prof. David Wilson
+Semester 2
+Dr. James Miller
+Semester 2
+Prof. Lisa Anderson
+Semester 1
+| Time | +Monday | +Tuesday | +Wednesday | +Thursday | +Friday | +
|---|---|---|---|---|---|
| 09:00 - 10:30 | +
+
+
+ Mathematics 101
+ Room 205
+ |
+
+
+
+ Physics 202
+ Lab 3
+ |
+
+
+
+ English Lit
+ Room 102
+ |
+
+
+
+ Computer Sci
+ Lab 7
+ |
+
+
+
+ History
+ Room 301
+ |
+
| 11:00 - 12:30 | +
+
+
+ Physics 202
+ Room 108
+ |
+
+
+
+ English Lit
+ Room 102
+ |
+
+
+
+ Mathematics 101
+ Room 205
+ |
+
+
+
+ History
+ Room 301
+ |
+
+
+
+ Computer Sci
+ Lab 7
+ |
+
| 14:00 - 15:30 | +
+
+
+ Computer Sci
+ Lab 7
+ |
+
+
+
+ Mathematics 101
+ Room 205
+ |
+
+
+
+ Physics 202
+ Lab 3
+ |
+
+
+
+ English Lit
+ Room 102
+ |
+
+
+
+ Chemistry Lab
+ Lab 5
+ |
+
| Assignment | +Course | +Due Date | +Status | +Actions | +
|---|---|---|---|---|
| Calculus Problem Set 3 | +Mathematics 101 | +2025-08-18 23:59 | ++ Pending + | ++ + | +
| Physics Lab Report 2 | +Physics 202 | +2025-08-20 23:59 | ++ Pending + | ++ + | +
| Literary Analysis Essay | +English Literature | +2025-08-25 23:59 | ++ Pending + | ++ + | +
| Programming Project 1 | +Computer Science | +2025-09-01 23:59 | ++ Submitted + | ++ + | +
+ Student ID: STU123456
+Computer Science Major
+Grade Distribution Chart
+Calculus Problem Set 3 is due on August 18th
+Dr. Sarah Johnson has uploaded new lecture notes for Mathematics 101
+Final exam schedule for Semester 1 is now available
+Research Skills Workshop on August 20th at 14:00 in Library Room 101
+