File size: 20,168 Bytes
da8124d |
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 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Dashboard - Iraq Leadership Academy</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>
<style>
.sidebar {
transition: all 0.3s;
}
.sidebar-collapsed {
width: 5rem;
}
.sidebar-expanded {
width: 16rem;
}
.main-content {
transition: margin-left 0.3s;
}
.card-hover:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.chart-container {
height: 300px;
}
</style>
</head>
<body class="bg-gray-50 font-sans antialiased">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div id="sidebar" class="sidebar sidebar-expanded bg-gray-800 text-white flex flex-col">
<div class="flex items-center justify-between p-4 border-b border-gray-700">
<div class="flex items-center">
<i data-feather="award" class="h-8 w-8 text-white"></i>
<span class="ml-2 text-xl font-bold">ILA Admin</span>
</div>
<button id="toggle-sidebar" class="text-gray-400 hover:text-white">
<i data-feather="chevron-left"></i>
</button>
</div>
<div class="flex-1 overflow-y-auto">
<nav class="p-4 space-y-1">
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium rounded-md bg-gray-900 text-white">
<i data-feather="home" class="mr-3"></i>
<span>Dashboard</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium rounded-md text-gray-300 hover:bg-gray-700 hover:text-white">
<i data-feather="users" class="mr-3"></i>
<span>Students</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium rounded-md text-gray-300 hover:bg-gray-700 hover:text-white">
<i data-feather="book" class="mr-3"></i>
<span>Courses</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium rounded-md text-gray-300 hover:bg-gray-700 hover:text-white">
<i data-feather="calendar" class="mr-3"></i>
<span>Schedule</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium rounded-md text-gray-300 hover:bg-gray-700 hover:text-white">
<i data-feather="file-text" class="mr-3"></i>
<span>Reports</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium rounded-md text-gray-300 hover:bg-gray-700 hover:text-white">
<i data-feather="message-square" class="mr-3"></i>
<span>Messages</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium rounded-md text-gray-300 hover:bg-gray-700 hover:text-white">
<i data-feather="settings" class="mr-3"></i>
<span>Settings</span>
</a>
</nav>
</div>
<div class="p-4 border-t border-gray-700">
<div class="flex items-center">
<img class="h-9 w-9 rounded-full" src="http://static.photos/people/200x200/2" alt="Admin profile">
<div class="ml-3">
<p class="text-sm font-medium text-white">Admin User</p>
<p class="text-xs font-medium text-gray-400">Super Admin</p>
</div>
</div>
<button class="mt-4 w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-gray-800 bg-white hover:bg-gray-50">
<i data-feather="log-out" class="mr-2"></i>
Sign out
</button>
</div>
</div>
<!-- Main Content -->
<div id="main-content" class="main-content flex-1 overflow-auto">
<!-- Top Navigation -->
<header class="bg-white shadow-sm">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4 flex justify-between items-center">
<h1 class="text-lg font-semibold text-gray-900">Admin Dashboard</h1>
<div class="flex items-center space-x-4">
<div class="relative">
<input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i>
</div>
<button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
<i data-feather="bell"></i>
</button>
<button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
<i data-feather="help-circle"></i>
</button>
</div>
</div>
</header>
<!-- Dashboard Content -->
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<!-- Stats -->
<div class="grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-4 mb-8">
<!-- Total Students -->
<div class="bg-white overflow-hidden shadow rounded-lg card-hover">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-blue-500 rounded-md p-3">
<i data-feather="users" class="h-6 w-6 text-white"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dt class="text-sm font-medium text-gray-500 truncate">Total Students</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">1,248</div>
</dd>
</div>
</div>
</div>
</div>
<!-- Active Courses -->
<div class="bg-white overflow-hidden shadow rounded-lg card-hover">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-green-500 rounded-md p-3">
<i data-feather="book" class="h-6 w-6 text-white"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dt class="text-sm font-medium text-gray-500 truncate">Active Courses</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">24</div>
</dd>
</div>
</div>
</div>
</div>
<!-- New Applications -->
<div class="bg-white overflow-hidden shadow rounded-lg card-hover">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-yellow-500 rounded-md p-3">
<i data-feather="file-text" class="h-6 w-6 text-white"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dt class="text-sm font-medium text-gray-500 truncate">New Applications</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">87</div>
<span class="ml-2 text-sm font-medium text-yellow-800">+12%</span>
</dd>
</div>
</div>
</div>
</div>
<!-- Completion Rate -->
<div class="bg-white overflow-hidden shadow rounded-lg card-hover">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-purple-500 rounded-md p-3">
<i data-feather="bar-chart-2" class="h-6 w-6 text-white"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dt class="text-sm font-medium text-gray-500 truncate">Completion Rate</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">82%</div>
<span class="ml-2 text-sm font-medium text-purple-800">+5%</span>
</dd>
</div>
</div>
</div>
</div>
</div>
<!-- Charts Section -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8">
<!-- Enrollment Chart -->
<div class="bg-white shadow rounded-lg p-6 card-hover">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-medium text-gray-900">Student Enrollment</h3>
<div class="relative">
<select class="appearance-none bg-white border border-gray-300 rounded-md pl-3 pr-8 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<option>Last 30 days</option>
<option>Last 90 days</option>
<option>This Year</option>
</select>
<i data-feather="chevron-down" class="absolute right-2 top-1.5 text-gray-400"></i>
</div>
</div>
<div class="chart-container">
<!-- Chart placeholder - would be replaced with actual chart library -->
<div class="flex items-end h-full">
<div class="flex-1 flex justify-around">
<div class="w-8 bg-blue-100" style="height: 30%;"></div>
<div class="w-8 bg-blue-200" style="height: 50%;"></div>
<div class="w-8 bg-blue-300" style="height: 70%;"></div>
<div class="w-8 bg-blue-400" style="height: 90%;"></div>
<div class="w-8 bg-blue-500" style="height: 60%;"></div>
<div class="w-8 bg-blue-600" style="height: 80%;"></div>
<div class="w-8 bg-blue-700" style="height: 40%;"></div>
</div>
</div>
</div>
</div>
<!-- Course Popularity -->
<div class="bg-white shadow rounded-lg p-6 card-hover">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-medium text-gray-900">Course Popularity</h3>
<div class="relative">
<select class="appearance-none bg-white border border-gray-300 rounded-md pl-3 pr-8 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<option>All Programs</option>
<option>Youth Leadership</option>
<option>Executive Leadership</option>
</select>
<i data-feather="chevron-down" class="absolute right-2 top-1.5 text-gray-400"></i>
</div>
</div>
<div class="chart-container">
<!-- Chart placeholder - would be replaced with actual chart library -->
<div class="flex items-center h-full">
<div class="w-full">
<div class="flex items-center mb-2">
<div class="w-3 h-3 rounded-full bg-blue-500 mr-2"></div>
<div class="text-sm text-gray-600">Leadership 101</div>
<div class="ml-auto text-sm font-medium">35%</div>
</div>
<div class="flex items-center mb-2">
<div class="w-3 h-3 rounded-full bg-green-500 mr-2"></div>
<div class="text-sm text-gray-600">Public Speaking</div>
<div class="ml-auto text-sm font-medium">25%</div>
</div>
<div class="flex items-center mb-2">
<div class="w-3 h-3 rounded-full bg-yellow-500 mr-2"></div>
<div class="text-sm text-gray-600">Strategic Thinking</div>
<div class="ml-auto text-sm font-medium">20%</div>
</div>
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-purple-500 mr-2"></div>
<div class="text-sm text-gray-600">Global Perspectives</div>
<div class="ml-auto text-sm font-medium">15%</div>
</div>
<div class="flex items-center mt-2">
<div class="w-3 h-3 rounded-full bg-red-500 mr-2"></div>
<div class="text-sm text-gray-600">Other Courses</div>
<div class="ml-auto text-sm font-medium">5%</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Recent Activity -->
<div class="mb-8">
<h2 class="text-lg font-medium text-gray-900 mb-4">Recent Activity</h2>
<div class="bg-white shadow overflow-hidden sm:rounded-lg">
<div class="flex items-center justify-between border-b border-gray-200 px-4 py-3">
<h3 class="text-sm font-medium text-gray-500">Latest system activities</h3>
<a href="#" class="text-sm font-medium text-blue-600 hover:text-blue-500">View all</a>
</div>
<ul class="divide-y divide-gray-200">
<li>
<div class="px-4 py-4 sm:px-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-blue-100 rounded-md p-2">
<i data-feather="user-plus" class="h-5 w-5 text-blue-600"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-900">New student registration</p>
<p class="text-sm text-gray-500">Ahmed Al-Rashid registered for Leadership 101</p>
</div>
<div class="ml-auto text-sm text-gray-500">2 hours ago</div>
</div>
</div>
</li>
<li>
<div class="px-4 py-4 sm:px-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-green-100 rounded-md p-2">
<i data-feather="check-circle" class="h-5 w-5 text-green-600"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-900">Assignment submitted</p>
<p class="text-sm text-gray-500">Noor Ali submitted Reflection Paper for Week 3</p>
</div>
<div class="ml-auto text-sm text-gray-500">5 hours ago</div>
</div>
</div>
</li>
<li>
<div class="px-4 py-4 sm:px-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-purple-100 rounded-md p-2">
<i data-feather="message-square" class="h-5 w-5 text-purple-600"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-900">New message</p>
<p class="text-sm text-gray-500">Karim Hassan sent a message regarding course schedule</p>
</div>
<div class="ml-auto text-sm text-gray-500">1 day ago</div>
</div>
</div>
</li>
<li>
<div class="px-4 py-4 sm:px-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-yellow-100 rounded-md p-2">
<i data-fe
</body>
</html> |