Spaces:
Running
Running
File size: 18,992 Bytes
1d7fce6 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Dashboard | EduSultan ERP</title>
<link rel="stylesheet" href="/static/css/admin.css">
</head>
<body class="dashboard-layout">
<div class="sidebar bg-blue-800 text-white">
<div class="logo p-4 border-b border-blue-700">
<img src="/static/images/logo-white.png" alt="EduSultan Logo" class="h-10 mx-auto">
</div>
<nav class="mt-4">
<div class="px-4 py-2 text-blue-200 text-xs uppercase font-semibold">Main</div>
<a href="/admin/dashboard" class="sidebar-link active">
<i data-feather="home"></i> Dashboard
</a>
<div class="px-4 py-2 text-blue-200 text-xs uppercase font-semibold mt-4">Management</div>
<a href="/admin/students" class="sidebar-link">
<i data-feather="users"></i> Students
</a>
<a href="/admin/teachers" class="sidebar-link">
<i data-feather="user-check"></i> Teachers
</a>
<a href="/admin/classes" class="sidebar-link">
<i data-feather="book"></i> Classes
</a>
<a href="/admin/subjects" class="sidebar-link">
<i data-feather="book-open"></i> Subjects
</a>
<div class="px-4 py-2 text-blue-200 text-xs uppercase font-semibold mt-4">Operations</div>
<a href="/admin/attendance" class="sidebar-link">
<i data-feather="clipboard"></i> Attendance
</a>
<a href="/admin/exams" class="sidebar-link">
<i data-feather="edit"></i> Exams & Grades
</a>
<a href="/admin/fees" class="sidebar-link">
<i data-feather="dollar-sign"></i> Fee Management
</a>
<div class="px-4 py-2 text-blue-200 text-xs uppercase font-semibold mt-4">System</div>
<a href="/admin/settings" class="sidebar-link">
<i data-feather="settings"></i> Settings
</a>
<a href="/admin/reports" class="sidebar-link">
<i data-feather="printer"></i> Reports
</a>
</nav>
</div>
<div class="main-content">
<header class="topbar bg-white shadow-sm">
<div class="flex items-center justify-between px-4 py-3">
<div class="flex items-center">
<button class="sidebar-toggle mr-4 text-gray-500">
<i data-feather="menu"></i>
</button>
<h1 class="text-xl font-semibold text-gray-800">Admin Dashboard</h1>
</div>
<div class="flex items-center space-x-4">
<div class="search-box relative">
<input type="text" placeholder="Search..."
class="pl-10 pr-4 py-2 border border-gray-300 rounded-full text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
<i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i>
</div>
<div class="notifications relative">
<button class="text-gray-500 hover:text-gray-700">
<i data-feather="bell"></i>
<span class="notification-badge">3</span>
</button>
</div>
<div class="language-switcher flex items-center">
<button class="lang-btn px-2 py-1 text-sm rounded-md mr-1 bg-gray-100">FR</button>
<button class="lang-btn px-2 py-1 text-sm rounded-md bg-gray-100">عربية</button>
</div>
<div class="user-profile flex items-center">
<img src="http://static.photos/people/200x200/42" alt="Admin" class="h-8 w-8 rounded-full">
<span class="ml-2 text-sm font-medium">Admin User</span>
</div>
</div>
</div>
</header>
<main class="p-6">
<div class="breadcrumbs mb-4 text-sm text-gray-600">
<a href="/admin/dashboard" class="text-blue-600">Home</a> / Dashboard
</div>
<div class="stats-grid grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="stat-card bg-white p-6 rounded-lg shadow">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">Total Students</p>
<h3 class="text-2xl font-bold">1,248</h3>
</div>
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i data-feather="users"></i>
</div>
</div>
<p class="mt-2 text-sm text-green-600">
<i data-feather="trending-up"></i> 5.2% from last month
</p>
</div>
<div class="stat-card bg-white p-6 rounded-lg shadow">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">Total Teachers</p>
<h3 class="text-2xl font-bold">48</h3>
</div>
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i data-feather="user-check"></i>
</div>
</div>
<p class="mt-2 text-sm text-green-600">
<i data-feather="trending-up"></i> 2.1% from last month
</p>
</div>
<div class="stat-card bg-white p-6 rounded-lg shadow">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">Today's Attendance</p>
<h3 class="text-2xl font-bold">92%</h3>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i data-feather="clipboard"></i>
</div>
</div>
<p class="mt-2 text-sm text-red-600">
<i data-feather="trending-down"></i> 3% from yesterday
</p>
</div>
<div class="stat-card bg-white p-6 rounded-lg shadow">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">Monthly Revenue</p>
<h3 class="text-2xl font-bold">$24,580</h3>
</div>
<div class="p-3 rounded-full bg-yellow-100 text-yellow-600">
<i data-feather="dollar-sign"></i>
</div>
</div>
<p class="mt-2 text-sm text-green-600">
<i data-feather="trending-up"></i> 12.5% from last month
</p>
</div>
</div>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
<div class="lg:col-span-2 bg-white p-6 rounded-lg shadow">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-semibold">Student Enrollment Trend</h2>
<select class="text-sm border border-gray-300 rounded px-3 py-1">
<option>This Year</option>
<option>Last Year</option>
<option>Last 5 Years</option>
</select>
</div>
<div class="chart-container h-64">
<!-- Enrollment chart will be rendered here -->
<img src="http://static.photos/technology/640x360/1" alt="Enrollment Chart Placeholder" class="w-full h-full object-cover rounded">
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-semibold">Recent Activities</h2>
<a href="#" class="text-sm text-blue-600">View All</a>
</div>
<div class="space-y-4">
<div class="activity-item">
<div class="flex items-start">
<div class="bg-blue-100 p-2 rounded-full mr-3">
<i data-feather="user-plus" class="text-blue-600 w-4 h-4"></i>
</div>
<div>
<p class="text-sm">New student registered: Ahmed Zaki</p>
<p class="text-xs text-gray-500">10 minutes ago</p>
</div>
</div>
</div>
<div class="activity-item">
<div class="flex items-start">
<div class="bg-green-100 p-2 rounded-full mr-3">
<i data-feather="dollar-sign" class="text-green-600 w-4 h-4"></i>
</div>
<div>
<p class="text-sm">Fee payment received from Laila Mohamed</p>
<p class="text-xs text-gray-500">1 hour ago</p>
</div>
</div>
</div>
<div class="activity-item">
<div class="flex items-start">
<div class="bg-purple-100 p-2 rounded-full mr-3">
<i data-feather="edit" class="text-purple-600 w-4 h-4"></i>
</div>
<div>
<p class="text-sm">Grades updated for Class 10 Mathematics</p>
<p class="text-xs text-gray-500">2 hours ago</p>
</div>
</div>
</div>
<div class="activity-item">
<div class="flex items-start">
<div class="bg-yellow-100 p-2 rounded-full mr-3">
<i data-feather="clipboard" class="text-yellow-600 w-4 h-4"></i>
</div>
<div>
<p class="text-sm">Attendance marked for Grade 5B</p>
<p class="text-xs text-gray-500">3 hours ago</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
<div class="bg-white p-6 rounded-lg shadow">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-semibold">Pending Fee Payments</h2>
<a href="/admin/fees" class="text-sm text-blue-600">View All</a>
</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">Student</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">Amount</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">Due Date</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/1">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Karim Benjelloun</div>
<div class="text-sm text-gray-500">Grade 10A</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$250.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-red-500">Overdue</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/2">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Amira El Fassi</div>
<div class="text-sm text-gray-500">Grade 8B</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$180.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-yellow-500">Due in 2 days</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/3">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Youssef Idrissi</div>
<div class="text-sm text-gray-500">Grade 12A</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$300.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-yellow-500">Due in 5 days</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-semibold">Quick Actions</h2>
</div>
<div class="grid grid-cols-2 gap-4">
<a href="/admin/students/add" class="quick-action p-4 border border-gray-200 rounded-lg text-center hover:bg-blue-50 transition">
<div class="bg-blue-100 p-3 rounded-full inline-block mb-2">
<i data-feather="user-plus" class="text-blue-600"></i>
</div>
<p class="text-sm font-medium">Add Student</p>
</a>
<a href="/admin/announcements/create" class="quick-action p-4 border border-gray-200 rounded-lg text-center hover:bg-green-50 transition">
<div class="bg-green-100 p-3 rounded-full inline-block mb-2">
<i data-feather="bell" class="text-green-600"></i>
</div>
<p class="text-sm font-medium">Create Announcement</p>
</a>
<a href="/admin/reports/generate" class="quick-action p-4 border border-gray-200 rounded-lg text-center hover:bg-purple-50 transition">
<div class="bg-purple-100 p-3 rounded-full inline-block mb-2">
<i data-feather="file-text" class="text-purple-600"></i>
</div>
<p class="text-sm font-medium">Generate Report</p>
</a>
<a href="/admin/fees/collection" class="quick-action p-4 border border-gray-200 rounded-lg text-center hover:bg-yellow-50 transition">
<div class="bg-yellow-100 p-3 rounded-full inline-block mb-2">
<i data-feather="dollar-sign" class="text-yellow-600"></i>
</div>
<p class="text-sm font-medium">Record Payment</p>
</a>
</div>
</div>
</div>
</main>
</div>
<script src="/static/js/admin.js"></script>
<script>
feather.replace();
</script>
</body>
</html> |