File size: 10,994 Bytes
f37a629 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></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.sheetjs.com/xlsx-0.19.3/package/dist/xlsx.full.min.js"></script>
<style>
.sidebar {
transition: all 0.3s ease;
}
.active-nav {
background-color: #6366f1;
color: white;
}
.active-nav:hover {
background-color: #4f46e5;
}
</style>
</head>
<body class="bg-gray-100">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar w-64 bg-white shadow-lg">
<div class="p-4 border-b border-gray-200">
<h1 class="text-xl font-bold text-indigo-600 flex items-center">
<i data-feather="shield" class="mr-2"></i> Admin Panel
</h1>
</div>
<nav class="p-4">
<ul class="space-y-2">
<li>
<a href="#" class="flex items-center p-2 rounded-lg active-nav">
<i data-feather="home" class="mr-2"></i> Dashboard
</a>
</li>
<li>
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-gray-100">
<i data-feather="users" class="mr-2"></i> Manage Students
</a>
</li>
<li>
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-gray-100">
<i data-feather="user-plus" class="mr-2"></i> Manage Officers
</a>
</li>
<li>
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-gray-100">
<i data-feather="calendar" class="mr-2"></i> Attendance Reports
</a>
</li>
<li>
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-gray-100">
<i data-feather="settings" class="mr-2"></i> System Settings
</a>
</li>
</ul>
</nav>
</div>
<!-- Main Content -->
<div class="flex-1 overflow-auto">
<!-- Header -->
<header class="bg-white shadow-sm p-4 flex justify-between items-center">
<h2 class="text-xl font-semibold text-gray-800">Dashboard</h2>
<div class="flex items-center space-x-4">
<div class="relative">
<i data-feather="bell" class="text-gray-600 cursor-pointer"></i>
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
</div>
<div class="flex items-center">
<div class="h-8 w-8 rounded-full bg-indigo-100 flex items-center justify-center">
<i data-feather="user" class="text-indigo-600"></i>
</div>
<span class="ml-2 text-sm font-medium">Admin</span>
</div>
</div>
</header>
<!-- Content -->
<main class="p-6">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="bg-white p-6 rounded-lg shadow hover:shadow-lg transition-shadow">
<div class="flex justify-between items-center">
<div>
<p class="text-gray-500">Total Students</p>
<h3 class="text-2xl font-bold">1,245</h3>
</div>
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i data-feather="users"></i>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow hover:shadow-lg transition-shadow">
<div class="flex justify-between items-center">
<div>
<p class="text-gray-500">Present Today</p>
<h3 class="text-2xl font-bold">1,120</h3>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i data-feather="check-circle"></i>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow hover:shadow-lg transition-shadow">
<div class="flex justify-between items-center">
<div>
<p class="text-gray-500">Absent Today</p>
<h3 class="text-2xl font-bold">125</h3>
</div>
<div class="p-3 rounded-full bg-red-100 text-red-600">
<i data-feather="x-circle"></i>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow hover:shadow-lg transition-shadow">
<div class="flex justify-between items-center">
<div>
<p class="text-gray-500">Attendance Officers</p>
<h3 class="text-2xl font-bold">24</h3>
</div>
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i data-feather="user-check"></i>
</div>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow mb-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold">Recent Attendance</h3>
<button class="bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700 flex items-center">
<i data-feather="download" class="mr-2"></i> Export Excel
</button>
</div>
<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">Date</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Student</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Morning</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Break 1</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Break 2</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">2023-06-15</td>
<td class="px-6 py-4 whitespace-nowrap">John Doe</td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Present</span></td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Present</span></td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-red-100 text-red-800 rounded-full text-xs">Absent</span></td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">2023-06-15</td>
<td class="px-6 py-4 whitespace-nowrap">Jane Smith</td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Present</span></td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Present</span></td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Present</span></td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">2023-06-15</td>
<td class="px-6 py-4 whitespace-nowrap">Michael Johnson</td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-yellow-100 text-yellow-800 rounded-full text-xs">Late</span></td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Present</span></td>
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Present</span></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<h3 class="text-lg font-semibold mb-4">Monthly Attendance Overview</h3>
<div class="h-64">
<!-- Chart placeholder -->
<div class="bg-gray-100 rounded-lg h-full flex items-center justify-center">
<p class="text-gray-500">Attendance chart will be displayed here</p>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
AOS.init();
feather.replace();
</script>
</body>
</html>
html |