File size: 32,761 Bytes
8fd60d9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Reports | EduManage</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
.sidebar {
transition: all 0.3s ease;
}
.sidebar-mini {
width: 80px;
}
.sidebar-full {
width: 250px;
}
.main-content {
transition: all 0.3s ease;
}
.content-expanded {
margin-left: 250px;
}
.content-collapsed {
margin-left: 80px;
}
.report-card {
transition: all 0.3s ease;
}
.report-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.report-preview {
height: 500px;
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div id="sidebar" class="sidebar sidebar-full bg-indigo-800 text-white fixed h-full">
<div class="p-4 flex items-center justify-between border-b border-indigo-700">
<div class="flex items-center space-x-2">
<i data-feather="book-open" class="w-6 h-6"></i>
<span class="text-xl font-bold">EduManage</span>
</div>
<button id="toggleSidebar" class="text-white focus:outline-none">
<i data-feather="chevron-left" class="w-5 h-5"></i>
</button>
</div>
<div class="p-4">
<div class="flex items-center space-x-3 mb-6">
<img src="http://static.photos/people/200x200/1" alt="User" class="w-10 h-10 rounded-full">
<div>
<p class="font-medium">Admin User</p>
<p class="text-xs text-indigo-300">Super Admin</p>
</div>
</div>
<nav>
<ul class="space-y-2">
<li>
<a href="index.html" class="flex items-center space-x-3 p-2 rounded hover:bg-indigo-700">
<i data-feather="home" class="w-5 h-5"></i>
<span>Dashboard</span>
</a>
</li>
<li>
<a href="students.html" class="flex items-center space-x-3 p-2 rounded hover:bg-indigo-700">
<i data-feather="users" class="w-5 h-5"></i>
<span>Students</span>
</a>
</li>
<li>
<a href="teachers.html" class="flex items-center space-x-3 p-2 rounded hover:bg-indigo-700">
<i data-feather="user" class="w-5 h-5"></i>
<span>Teachers</span>
</a>
</li>
<li>
<a href="classes.html" class="flex items-center space-x-3 p-2 rounded hover:bg-indigo-700">
<i data-feather="book" class="w-5 h-5"></i>
<span>Classes</span>
</a>
</li>
<li>
<a href="attendance.html" class="flex items-center space-x-3 p-2 rounded hover:bg-indigo-700">
<i data-feather="check-square" class="w-5 h-5"></i>
<span>Attendance</span>
</a>
</li>
<li>
<a href="grades.html" class="flex items-center space-x-3 p-2 rounded hover:bg-indigo-700">
<i data-feather="award" class="w-5 h-5"></i>
<span>Grades</span>
</a>
</li>
<li>
<a href="#" class="flex items-center space-x-3 p-2 rounded bg-indigo-700">
<i data-feather="file-text" class="w-5 h-5"></i>
<span>Reports</span>
</a>
</li>
<li>
<a href="settings.html" class="flex items-center space-x-3 p-2 rounded hover:bg-indigo-700">
<i data-feather="settings" class="w-5 h-5"></i>
<span>Settings</span>
</a>
</li>
</ul>
</nav>
</div>
</div>
<!-- Main Content -->
<div id="mainContent" class="main-content content-expanded flex-1 overflow-auto">
<!-- Top Navigation -->
<header class="bg-white shadow-sm">
<div class="flex items-center justify-between p-4">
<div class="flex items-center space-x-4">
<h1 class="text-2xl font-bold text-gray-800">Reports</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<i data-feather="search" class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
<input type="text" placeholder="Search reports..." class="pl-10 pr-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
<i data-feather="bell" class="w-5 h-5"></i>
</button>
<div class="flex items-center space-x-2">
<img src="http://static.photos/people/200x200/1" alt="User" class="w-8 h-8 rounded-full">
<span class="font-medium">Admin</span>
</div>
</div>
</div>
</header>
<!-- Reports Content -->
<main class="p-6">
<!-- Report Categories -->
<div class="mb-8">
<div class="flex items-center justify-between mb-4">
<h2 class="text-xl font-semibold">Report Categories</h2>
<button class="flex items-center space-x-1 px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">
<i data-feather="plus" class="w-4 h-4"></i>
<span>Create Custom Report</span>
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
<a href="#student-reports" class="report-card bg-white p-4 rounded-lg shadow-sm border border-gray-200 hover:border-indigo-500">
<div class="flex items-center space-x-3">
<div class="p-3 rounded-full bg-indigo-100 text-indigo-600">
<i data-feather="users" class="w-5 h-5"></i>
</div>
<div>
<h3 class="font-medium">Student Reports</h3>
<p class="text-sm text-gray-500">12 reports available</p>
</div>
</div>
</a>
<a href="#teacher-reports" class="report-card bg-white p-4 rounded-lg shadow-sm border border-gray-200 hover:border-blue-500">
<div class="flex items-center space-x-3">
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i data-feather="user" class="w-5 h-5"></i>
</div>
<div>
<h3 class="font-medium">Teacher Reports</h3>
<p class="text-sm text-gray-500">8 reports available</p>
</div>
</div>
</a>
<a href="#attendance-reports" class="report-card bg-white p-4 rounded-lg shadow-sm border border-gray-200 hover:border-green-500">
<div class="flex items-center space-x-3">
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i data-feather="check-square" class="w-5 h-5"></i>
</div>
<div>
<h3 class="font-medium">Attendance Reports</h3>
<p class="text-sm text-gray-500">6 reports available</p>
</div>
</div>
</a>
<a href="#financial-reports" class="report-card bg-white p-4 rounded-lg shadow-sm border border-gray-200 hover:border-purple-500">
<div class="flex items-center space-x-3">
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i data-feather="dollar-sign" class="w-5 h-5"></i>
</div>
<div>
<h3 class="font-medium">Financial Reports</h3>
<p class="text-sm text-gray-500">5 reports available</p>
</div>
</div>
</a>
</div>
</div>
<!-- Student Reports Section -->
<div id="student-reports" class="mb-8" data-aos="fade-up">
<div class="flex items-center justify-between mb-4">
<h2 class="text-xl font-semibold">Student Reports</h2>
<div class="flex items-center space-x-2">
<div class="relative">
<select class="appearance-none bg-white border border-gray-300 rounded-lg pl-3 pr-8 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option>All Grades</option>
<option>Grade 1</option>
<option>Grade 2</option>
<option>Grade 3</option>
<option>Grade 4</option>
<option>Grade 5</option>
</select>
<i data-feather="chevron-down" class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4"></i>
</div>
<button class="flex items-center space-x-1 px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">
<i data-feather="download" class="w-4 h-4"></i>
<span>Export All</span>
</button>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Report Card 1 -->
<div class="report-card bg-white p-6 rounded-xl shadow-md border border-gray-200 hover:shadow-lg">
<div class="flex items-start justify-between mb-4">
<div class="p-3 rounded-lg bg-indigo-100 text-indigo-600">
<i data-feather="file-text" class="w-6 h-6"></i>
</div>
<button class="text-gray-400 hover:text-gray-600">
<i data-feather="more-vertical" class="w-5 h-5"></i>
</button>
</div>
<h3 class="text-lg font-semibold mb-2">Student Performance Analysis</h3>
<p class="text-gray-600 mb-4">Detailed analysis of student performance across all subjects with comparative metrics.</p>
<div class="flex items-center justify-between">
<span class="text-sm text-gray-500">Last generated: 2 days ago</span>
<div class="flex space-x-2">
<button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
<i data-feather="eye" class="w-4 h-4"></i>
</button>
<button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
<i data-feather="download" class="w-4 h-4"></i>
</button>
<button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
<i data-feather="printer" class="w-4 h-4"></i>
</button>
</div>
</div>
</div>
<!-- Report Card 2 -->
<div class="report-card bg-white p-6 rounded-xl shadow-md border border-gray-200 hover:shadow-lg">
<div class="flex items-start justify-between mb-4">
<div class="p-3 rounded-lg bg-blue-100 text-blue-600">
<i data-feather="award" class="w-6 h-6"></i>
</div>
<button class="text-gray-400 hover:text-gray-600">
<i data-feather="more-vertical" class="w-5 h-5"></i>
</button>
</div>
<h3 class="text-lg font-semibold mb-2">Top Performing Students</h3>
<p class="text-gray-600 mb-4">List of top performing students with their achievements and performance metrics.</p>
<div class="flex items-center justify-between">
<span class="text-sm text-gray-500">Last generated: 1 week ago</span>
<div class="flex space-x-2">
<button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
<i data-feather="eye" class="w-4 h-4"></i>
</button>
<button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
<i data-feather="download" class="w-4 h-4"></i>
</button>
<button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
<i data-feather="printer" class="w-4 h-4"></i>
</button>
</div>
</div>
</div>
<!-- Report Card 3 -->
<div class="report-card bg-white p-6 rounded-xl shadow-md border border-gray-200 hover:shadow-lg">
<div class="flex items-start justify-between mb-4">
<div class="p-3 rounded-lg bg-green-100 text-green-600">
<i data-feather="trending-up" class="w-6 h-6"></i>
</div>
<button class="text-gray-400 hover:text-gray-600">
<i data-feather="more-vertical" class="w-5 h-5"></i>
</button>
</div>
<h3 class="text-lg font-semibold mb-2">Progress Over Time</h3>
<p class="text-gray-600 mb-4">Track student progress over semesters with visual charts and improvement metrics.</p>
<div class="flex items-center justify-between">
<span class="text-sm text-gray-500">Last generated: 3 days ago</span>
<div class="flex space-x-2">
<button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
<i data-feather="eye" class="w-4 h-4"></i>
</button>
<button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
<i data-feather="download" class="w-4 h-4"></i>
</button>
<button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
<i data-feather="printer" class="w-4 h-4"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Report Preview Section -->
<div class="bg-white p-6 rounded-xl shadow-md mb-8" data-aos="fade-up">
<div class="flex items-center justify-between mb-6">
<h2 class="text-xl font-semibold">Report Preview</h2>
<div class="flex space-x-3">
<button class="flex items-center space-x-1 px-4 py-2 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200">
<i data-feather="refresh-cw" class="w-4 h-4"></i>
<span>Refresh Data</span>
</button>
<button class="flex items-center space-x-1 px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">
<i data-feather="download" class="w-4 h-4"></i>
<span>Export Report</span>
</button>
</div>
</div>
<div class="report-preview border rounded-lg p-4 bg-gray-50 overflow-auto">
<!-- Sample Report Content -->
<div class="max-w-5xl mx-auto bg-white p-6 shadow-sm">
<div class="text-center mb-8">
<h1 class="text-2xl font-bold text-indigo-800">Student Performance Report</h1>
<p class="text-gray-600">Academic Year 2023-2024 | Generated on: June 15, 2023</p>
</div>
<div class="mb-8">
<h2 class="text-xl font-semibold border-b pb-2 mb-4">Executive Summary</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
<div class="bg-indigo-50 p-4 rounded-lg">
<p class="text-sm text-indigo-600 font-medium">Total Students</p>
<p class="text-2xl font-bold">1,245</p>
</div>
<div class="bg-green-50 p-4 rounded-lg">
<p class="text-sm text-green-600 font-medium">Average GPA</p>
<p class="text-2xl font-bold">3.42</p>
</div>
<div class="bg-blue-50 p-4 rounded-lg">
<p class="text-sm text-blue-600 font-medium">Top Performing Class</p>
<p class="text-2xl font-bold">Grade 11 - Science</p>
</div>
</div>
<p class="text-gray-700">
This report provides a comprehensive analysis of student performance across all grades and subjects.
The data shows an overall improvement of 8% compared to the previous academic year, with particular
strength in mathematics and science subjects. Areas requiring attention include language arts performance
in middle school grades.
</p>
</div>
<div class="mb-8">
<h2 class="text-xl font-semibold border-b pb-2 mb-4">Performance by Grade Level</h2>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Grade</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Average GPA</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Top Subject</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Lowest Subject</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">% Improvement</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">Grade 9</td>
<td class="px-6 py-4 whitespace-nowrap">3.28</td>
<td class="px-6 py-4 whitespace-nowrap">Mathematics</td>
<td class="px-6 py-4 whitespace-nowrap">Language Arts</td>
<td class="px-6 py-4 whitespace-nowrap text-green-600">+5%</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">Grade 10</td>
<td class="px-6 py-4 whitespace-nowrap">3.35</td>
<td class="px-6 py-4 whitespace-nowrap">Science</td>
<td class="px-6 py-4 whitespace-nowrap">History</td>
<td class="px-6 py-4 whitespace-nowrap text-green-600">+7%</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">Grade 11</td>
<td class="px-6 py-4 whitespace-nowrap">3.52</td>
<td class="px-6 py-4 whitespace-nowrap">Physics</td>
<td class="px-6 py-4 whitespace-nowrap">Literature</td>
<td class="px-6 py-4 whitespace-nowrap text-green-600">+9%</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">Grade 12</td>
<td class="px-6 py-4 whitespace-nowrap">3.56</td>
<td class="px-6 py-4 whitespace-nowrap">Calculus</td>
<td class="px-6 py-4 whitespace-nowrap">Economics</td>
<td class="px-6 py-4 whitespace-nowrap text-green-600">+12%</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="mb-8">
<h2 class="text-xl font-semibold border-b pb-2 mb-4">Performance Trends</h2>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
<div>
<h3 class="text-lg font-medium mb-2">GPA Trend by Grade</h3>
<canvas id="gradeTrendChart" height="200"></canvas>
</div>
<div>
<h3 class="text-lg font-medium mb-2">Subject Performance</h3>
<canvas id="subjectPerformanceChart" height="200"></canvas>
</div>
</div>
</div>
<div>
<h2 class="text-xl font-semibold border-b pb-2 mb-4">Recommendations</h2>
<ul class="list-disc pl-5 space-y-2 text-gray-700">
<li>Implement additional support programs for Language Arts in Grades 9-10</li>
<li>Recognize and reward top performing teachers in Science and Mathematics</li>
<li>Provide targeted interventions for students with GPA below 2.5</li>
<li>Expand advanced placement opportunities for high performing students</li>
<li>Conduct professional development for teachers in areas with lower performance</li>
</ul>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
// Initialize AOS
AOS.init();
// Initialize Feather Icons
feather.replace();
// Toggle Sidebar
const sidebar = document.getElementById('sidebar');
const mainContent = document.getElementById('mainContent');
const toggleSidebar = document.getElementById('toggleSidebar');
toggleSidebar.addEventListener('click', () => {
sidebar.classList.toggle('sidebar-mini');
sidebar.classList.toggle('sidebar-full');
mainContent.classList.toggle('content-collapsed');
mainContent.classList.toggle('content-expanded');
// Change the icon based on sidebar state
const icon = toggleSidebar.querySelector('i');
if (sidebar.classList.contains('sidebar-mini')) {
feather.replace();
icon.setAttribute('data-feather', 'chevron-right');
} else {
feather.replace();
icon.setAttribute('data-feather', 'chevron-left');
}
feather.replace();
});
// Report Charts
// Grade Trend Chart
const gradeTrendCtx = document.getElementById('gradeTrendChart').getContext('2d');
const gradeTrendChart = new Chart(gradeTrendCtx, {
type: 'line',
data: {
labels: ['2019', '2020', '2021', '2022', '2023'],
datasets: [
{
label: 'Grade 9',
data: [3.1, 3.15, 3.2, 3.25, 3.28],
borderColor: 'rgba(79, 70, 229, 1)',
backgroundColor: 'rgba(79, 70, 229, 0.1)',
tension: 0.3,
fill: true
},
{
label: 'Grade 10',
data: [3.2, 3.22, 3.28, 3.3, 3.35],
borderColor: 'rgba(99, 102, 241, 1)',
backgroundColor: 'rgba(99, 102, 241, 0.1)',
tension: 0.3,
fill: true
},
{
label: 'Grade 11',
data: [3.3, 3.35, 3.4, 3.45, 3.52],
borderColor: 'rgba(129, 140, 248, 1)',
backgroundColor: 'rgba(129, 140, 248, 0.1)',
tension: 0.3,
fill: true
},
{
label: 'Grade 12',
data: [3.35, 3.4, 3.45, 3.5, 3.56],
borderColor: 'rgba(165, 180, 252, 1)',
backgroundColor: 'rgba(165, 180, 252, 0.1)',
tension: 0.3,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'top',
}
},
scales: {
y: {
beginAtZero: false,
min: 3,
max: 4
}
}
}
});
// Subject Performance Chart
const subjectPerformanceCtx = document.getElementById('subjectPerformanceChart').getContext('2d');
const subjectPerformanceChart = new Chart(subjectPerformanceCtx, {
type: 'bar',
data: {
labels: ['Mathematics', 'Science', 'Language Arts', 'History', 'Arts'],
datasets: [{
label: 'Average Score',
data: [85, 82, 76, 79, 81],
backgroundColor: [
'rgba(79, 70, 229, 0.7)',
'rgba(99, 102, 241, 0.7)',
'rgba(129, 140, 248, 0.7)',
'rgba(165, 180, 252, 0.7)',
'rgba(196, 181, 253, 0.7)'
],
borderColor: [
'rgba(79, 70, 229, 1)',
'rgba(99, 102, 241, 1)',
'rgba(129, 140, 248, 1)',
'rgba(165, 180, 252, 1)',
'rgba(196, 181, 253, 1)'
],
borderWidth: 1
}]
},
options: {
responsive: true,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: true,
max: 100
}
}
}
});
</script>
</body>
</html>
|