eduplus / reports.html
ismio's picture
build fully school management system with fully re=ich reports - Initial Deployment
8fd60d9 verified
Raw History Blame Contribute Delete
32.8 kB
<!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>