Add 3 files
Browse files- README.md +7 -5
- index.html +741 -19
- prompts.txt +1 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: admin
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: blue
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,741 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Admin Dashboard - Personnel Management</title>
|
| 7 |
+
<!-- Bootstrap 5 CSS -->
|
| 8 |
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
| 9 |
+
<!-- Bootstrap Icons -->
|
| 10 |
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
|
| 11 |
+
<!-- Custom CSS -->
|
| 12 |
+
<style>
|
| 13 |
+
.sidebar {
|
| 14 |
+
transition: all 0.3s ease;
|
| 15 |
+
height: 100vh;
|
| 16 |
+
position: fixed;
|
| 17 |
+
z-index: 1000;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
.main-content {
|
| 21 |
+
margin-left: 250px;
|
| 22 |
+
transition: all 0.3s ease;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
.sidebar.collapsed {
|
| 26 |
+
width: 70px !important;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
.sidebar.collapsed .sidebar-text {
|
| 30 |
+
display: none !important;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
.sidebar.collapsed .logo-text {
|
| 34 |
+
display: none !important;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
.sidebar.collapsed .logo-icon {
|
| 38 |
+
display: block !important;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
.logo-icon {
|
| 42 |
+
display: none;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.sidebar.collapsed + .main-content {
|
| 46 |
+
margin-left: 70px !important;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.notification-badge {
|
| 50 |
+
position: absolute;
|
| 51 |
+
top: -5px;
|
| 52 |
+
right: -5px;
|
| 53 |
+
font-size: 10px;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
.chart-container {
|
| 57 |
+
height: 300px;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
.nav-link.active {
|
| 61 |
+
font-weight: 600;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
/* Custom scrollbar for sidebar */
|
| 65 |
+
.sidebar::-webkit-scrollbar {
|
| 66 |
+
width: 6px;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.sidebar::-webkit-scrollbar-track {
|
| 70 |
+
background: transparent;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
.sidebar::-webkit-scrollbar-thumb {
|
| 74 |
+
background-color: rgba(255, 255, 255, 0.2);
|
| 75 |
+
border-radius: 20px;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
/* Dark mode scrollbar */
|
| 79 |
+
[data-bs-theme="dark"] .sidebar::-webkit-scrollbar-thumb {
|
| 80 |
+
background-color: rgba(0, 0, 0, 0.2);
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
/* Status badges */
|
| 84 |
+
.badge-status-active {
|
| 85 |
+
background-color: #198754;
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
.badge-status-inactive {
|
| 89 |
+
background-color: #dc3545;
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
.badge-status-pending {
|
| 93 |
+
background-color: #fd7e14;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
.badge-status-leave {
|
| 97 |
+
background-color: #ffc107;
|
| 98 |
+
color: #000;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
/* Custom card styles */
|
| 102 |
+
.card-stat {
|
| 103 |
+
border: none;
|
| 104 |
+
border-radius: 10px;
|
| 105 |
+
overflow: hidden;
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
.card-stat .icon-container {
|
| 109 |
+
width: 50px;
|
| 110 |
+
height: 50px;
|
| 111 |
+
border-radius: 12px;
|
| 112 |
+
display: flex;
|
| 113 |
+
align-items: center;
|
| 114 |
+
justify-content: center;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
/* Dark mode transition */
|
| 118 |
+
body {
|
| 119 |
+
transition: background-color 0.3s ease;
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
/* Table row hover effect */
|
| 123 |
+
.table-hover tbody tr {
|
| 124 |
+
transition: background-color 0.2s ease;
|
| 125 |
+
}
|
| 126 |
+
</style>
|
| 127 |
+
</head>
|
| 128 |
+
<body>
|
| 129 |
+
<div class="d-flex">
|
| 130 |
+
<!-- Sidebar -->
|
| 131 |
+
<div class="sidebar bg-primary text-white flex-shrink-0 p-3" style="width: 250px;">
|
| 132 |
+
<div class="d-flex align-items-center mb-4">
|
| 133 |
+
<div class="logo-icon me-3">
|
| 134 |
+
<i class="bi bi-shield-lock fs-3"></i>
|
| 135 |
+
</div>
|
| 136 |
+
<div class="logo-text">
|
| 137 |
+
<h1 class="fs-5 fw-bold mb-0">Command Center</h1>
|
| 138 |
+
<small class="text-white-50">Admin Dashboard</small>
|
| 139 |
+
</div>
|
| 140 |
+
<button id="toggleSidebar" class="btn btn-link text-white ms-auto p-0">
|
| 141 |
+
<i class="bi bi-list fs-4"></i>
|
| 142 |
+
</button>
|
| 143 |
+
</div>
|
| 144 |
+
|
| 145 |
+
<hr class="my-2 border-white opacity-25">
|
| 146 |
+
|
| 147 |
+
<ul class="nav nav-pills flex-column mb-auto">
|
| 148 |
+
<li class="nav-item mb-1">
|
| 149 |
+
<a href="#" class="nav-link text-white active">
|
| 150 |
+
<i class="bi bi-speedometer2 me-2"></i>
|
| 151 |
+
<span class="sidebar-text">Dashboard</span>
|
| 152 |
+
</a>
|
| 153 |
+
</li>
|
| 154 |
+
|
| 155 |
+
<li class="nav-item mt-3 mb-1">
|
| 156 |
+
<small class="text-white-50 sidebar-text">PERSONNEL MANAGEMENT</small>
|
| 157 |
+
</li>
|
| 158 |
+
|
| 159 |
+
<li class="nav-item mb-1">
|
| 160 |
+
<a href="#" class="nav-link text-white">
|
| 161 |
+
<i class="bi bi-person-badge me-2"></i>
|
| 162 |
+
<span class="sidebar-text">Military Personnel</span>
|
| 163 |
+
</a>
|
| 164 |
+
</li>
|
| 165 |
+
|
| 166 |
+
<li class="nav-item mb-1">
|
| 167 |
+
<a href="#" class="nav-link text-white">
|
| 168 |
+
<i class="bi bi-person me-2"></i>
|
| 169 |
+
<span class="sidebar-text">Civilian Personnel</span>
|
| 170 |
+
</a>
|
| 171 |
+
</li>
|
| 172 |
+
|
| 173 |
+
<li class="nav-item mb-1">
|
| 174 |
+
<a href="#" class="nav-link text-white">
|
| 175 |
+
<i class="bi bi-people me-2"></i>
|
| 176 |
+
<span class="sidebar-text">Admin Users</span>
|
| 177 |
+
</a>
|
| 178 |
+
</li>
|
| 179 |
+
|
| 180 |
+
<li class="nav-item mt-3 mb-1">
|
| 181 |
+
<small class="text-white-50 sidebar-text">REPORTS</small>
|
| 182 |
+
</li>
|
| 183 |
+
|
| 184 |
+
<li class="nav-item mb-1">
|
| 185 |
+
<a href="#" class="nav-link text-white">
|
| 186 |
+
<i class="bi bi-file-earmark-text me-2"></i>
|
| 187 |
+
<span class="sidebar-text">Personnel Reports</span>
|
| 188 |
+
</a>
|
| 189 |
+
</li>
|
| 190 |
+
|
| 191 |
+
<li class="nav-item mb-1">
|
| 192 |
+
<a href="#" class="nav-link text-white">
|
| 193 |
+
<i class="bi bi-bar-chart me-2"></i>
|
| 194 |
+
<span class="sidebar-text">Analytics</span>
|
| 195 |
+
</a>
|
| 196 |
+
</li>
|
| 197 |
+
|
| 198 |
+
<li class="nav-item mt-3 mb-1">
|
| 199 |
+
<small class="text-white-50 sidebar-text">SETTINGS</small>
|
| 200 |
+
</li>
|
| 201 |
+
|
| 202 |
+
<li class="nav-item mb-1">
|
| 203 |
+
<a href="#" class="nav-link text-white">
|
| 204 |
+
<i class="bi bi-gear me-2"></i>
|
| 205 |
+
<span class="sidebar-text">System Settings</span>
|
| 206 |
+
</a>
|
| 207 |
+
</li>
|
| 208 |
+
</ul>
|
| 209 |
+
|
| 210 |
+
<hr class="my-2 border-white opacity-25">
|
| 211 |
+
|
| 212 |
+
<div class="dropdown">
|
| 213 |
+
<a href="#" class="d-flex align-items-center text-white text-decoration-none dropdown-toggle" data-bs-toggle="dropdown">
|
| 214 |
+
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Admin" width="32" height="32" class="rounded-circle me-2">
|
| 215 |
+
<span class="sidebar-text"><strong>Admin User</strong></span>
|
| 216 |
+
</a>
|
| 217 |
+
<ul class="dropdown-menu dropdown-menu-dark shadow">
|
| 218 |
+
<li><a class="dropdown-item" href="#"><i class="bi bi-person me-2"></i> Profile</a></li>
|
| 219 |
+
<li><a class="dropdown-item" href="#"><i class="bi bi-gear me-2"></i> Settings</a></li>
|
| 220 |
+
<li><hr class="dropdown-divider"></li>
|
| 221 |
+
<li><a class="dropdown-item" href="#"><i class="bi bi-box-arrow-right me-2"></i> Sign out</a></li>
|
| 222 |
+
</ul>
|
| 223 |
+
</div>
|
| 224 |
+
|
| 225 |
+
<div class="mt-3">
|
| 226 |
+
<div class="form-check form-switch">
|
| 227 |
+
<input class="form-check-input" type="checkbox" id="darkModeToggle">
|
| 228 |
+
<label class="form-check-label sidebar-text" for="darkModeToggle">Dark Mode</label>
|
| 229 |
+
</div>
|
| 230 |
+
</div>
|
| 231 |
+
</div>
|
| 232 |
+
|
| 233 |
+
<!-- Main Content -->
|
| 234 |
+
<div class="main-content flex-grow-1 p-4">
|
| 235 |
+
<!-- Top Navigation -->
|
| 236 |
+
<div class="d-flex justify-content-between align-items-center mb-4">
|
| 237 |
+
<h2 class="h4 fw-bold mb-0">Dashboard Overview</h2>
|
| 238 |
+
|
| 239 |
+
<div class="d-flex align-items-center">
|
| 240 |
+
<div class="me-3 position-relative">
|
| 241 |
+
<button class="btn btn-link text-muted position-relative p-0">
|
| 242 |
+
<i class="bi bi-bell fs-5"></i>
|
| 243 |
+
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger">3</span>
|
| 244 |
+
</button>
|
| 245 |
+
</div>
|
| 246 |
+
|
| 247 |
+
<div class="dropdown">
|
| 248 |
+
<button class="btn btn-link text-muted dropdown-toggle d-flex align-items-center" data-bs-toggle="dropdown">
|
| 249 |
+
<i class="bi bi-translate me-1"></i>
|
| 250 |
+
<span>EN</span>
|
| 251 |
+
</button>
|
| 252 |
+
<ul class="dropdown-menu dropdown-menu-end shadow">
|
| 253 |
+
<li><a class="dropdown-item" href="#">English</a></li>
|
| 254 |
+
<li><a class="dropdown-item" href="#">Español</a></li>
|
| 255 |
+
<li><a class="dropdown-item" href="#">Français</a></li>
|
| 256 |
+
</ul>
|
| 257 |
+
</div>
|
| 258 |
+
</div>
|
| 259 |
+
</div>
|
| 260 |
+
|
| 261 |
+
<!-- Stats Cards -->
|
| 262 |
+
<div class="row g-4 mb-4">
|
| 263 |
+
<div class="col-md-6 col-lg-3">
|
| 264 |
+
<div class="card card-stat shadow-sm h-100">
|
| 265 |
+
<div class="card-body">
|
| 266 |
+
<div class="d-flex align-items-center">
|
| 267 |
+
<div class="icon-container bg-primary bg-opacity-10 text-primary">
|
| 268 |
+
<i class="bi bi-person-badge fs-4"></i>
|
| 269 |
+
</div>
|
| 270 |
+
<div class="ms-3">
|
| 271 |
+
<h6 class="mb-0 text-muted">Military Personnel</h6>
|
| 272 |
+
<h3 class="mb-0">1,254</h3>
|
| 273 |
+
</div>
|
| 274 |
+
</div>
|
| 275 |
+
<div class="mt-3">
|
| 276 |
+
<span class="badge bg-success bg-opacity-10 text-success">
|
| 277 |
+
<i class="bi bi-arrow-up"></i> 12%
|
| 278 |
+
</span>
|
| 279 |
+
<small class="text-muted ms-1">from last month</small>
|
| 280 |
+
</div>
|
| 281 |
+
</div>
|
| 282 |
+
</div>
|
| 283 |
+
</div>
|
| 284 |
+
|
| 285 |
+
<div class="col-md-6 col-lg-3">
|
| 286 |
+
<div class="card card-stat shadow-sm h-100">
|
| 287 |
+
<div class="card-body">
|
| 288 |
+
<div class="d-flex align-items-center">
|
| 289 |
+
<div class="icon-container bg-success bg-opacity-10 text-success">
|
| 290 |
+
<i class="bi bi-person fs-4"></i>
|
| 291 |
+
</div>
|
| 292 |
+
<div class="ms-3">
|
| 293 |
+
<h6 class="mb-0 text-muted">Civilian Personnel</h6>
|
| 294 |
+
<h3 class="mb-0">876</h3>
|
| 295 |
+
</div>
|
| 296 |
+
</div>
|
| 297 |
+
<div class="mt-3">
|
| 298 |
+
<span class="badge bg-success bg-opacity-10 text-success">
|
| 299 |
+
<i class="bi bi-arrow-up"></i> 5%
|
| 300 |
+
</span>
|
| 301 |
+
<small class="text-muted ms-1">from last month</small>
|
| 302 |
+
</div>
|
| 303 |
+
</div>
|
| 304 |
+
</div>
|
| 305 |
+
</div>
|
| 306 |
+
|
| 307 |
+
<div class="col-md-6 col-lg-3">
|
| 308 |
+
<div class="card card-stat shadow-sm h-100">
|
| 309 |
+
<div class="card-body">
|
| 310 |
+
<div class="d-flex align-items-center">
|
| 311 |
+
<div class="icon-container bg-purple bg-opacity-10 text-purple">
|
| 312 |
+
<i class="bi bi-people fs-4"></i>
|
| 313 |
+
</div>
|
| 314 |
+
<div class="ms-3">
|
| 315 |
+
<h6 class="mb-0 text-muted">Admin Users</h6>
|
| 316 |
+
<h3 class="mb-0">24</h3>
|
| 317 |
+
</div>
|
| 318 |
+
</div>
|
| 319 |
+
<div class="mt-3">
|
| 320 |
+
<span class="badge bg-danger bg-opacity-10 text-danger">
|
| 321 |
+
<i class="bi bi-arrow-down"></i> 2%
|
| 322 |
+
</span>
|
| 323 |
+
<small class="text-muted ms-1">from last month</small>
|
| 324 |
+
</div>
|
| 325 |
+
</div>
|
| 326 |
+
</div>
|
| 327 |
+
</div>
|
| 328 |
+
|
| 329 |
+
<div class="col-md-6 col-lg-3">
|
| 330 |
+
<div class="card card-stat shadow-sm h-100">
|
| 331 |
+
<div class="card-body">
|
| 332 |
+
<div class="d-flex align-items-center">
|
| 333 |
+
<div class="icon-container bg-warning bg-opacity-10 text-warning">
|
| 334 |
+
<i class="bi bi-clock fs-4"></i>
|
| 335 |
+
</div>
|
| 336 |
+
<div class="ms-3">
|
| 337 |
+
<h6 class="mb-0 text-muted">Pending Approvals</h6>
|
| 338 |
+
<h3 class="mb-0">18</h3>
|
| 339 |
+
</div>
|
| 340 |
+
</div>
|
| 341 |
+
<div class="mt-3">
|
| 342 |
+
<span class="badge bg-success bg-opacity-10 text-success">
|
| 343 |
+
<i class="bi bi-plus"></i> 3
|
| 344 |
+
</span>
|
| 345 |
+
<small class="text-muted ms-1">new today</small>
|
| 346 |
+
</div>
|
| 347 |
+
</div>
|
| 348 |
+
</div>
|
| 349 |
+
</div>
|
| 350 |
+
</div>
|
| 351 |
+
|
| 352 |
+
<!-- Charts and Tables -->
|
| 353 |
+
<div class="row g-4 mb-4">
|
| 354 |
+
<div class="col-lg-8">
|
| 355 |
+
<div class="card shadow-sm h-100">
|
| 356 |
+
<div class="card-body">
|
| 357 |
+
<div class="d-flex justify-content-between align-items-center mb-4">
|
| 358 |
+
<h5 class="card-title mb-0">Personnel Distribution</h5>
|
| 359 |
+
<div class="btn-group btn-group-sm" role="group">
|
| 360 |
+
<button type="button" class="btn btn-outline-secondary active">Monthly</button>
|
| 361 |
+
<button type="button" class="btn btn-outline-secondary">Yearly</button>
|
| 362 |
+
</div>
|
| 363 |
+
</div>
|
| 364 |
+
<div class="chart-container">
|
| 365 |
+
<canvas id="personnelChart"></canvas>
|
| 366 |
+
</div>
|
| 367 |
+
</div>
|
| 368 |
+
</div>
|
| 369 |
+
</div>
|
| 370 |
+
|
| 371 |
+
<div class="col-lg-4">
|
| 372 |
+
<div class="card shadow-sm h-100">
|
| 373 |
+
<div class="card-body">
|
| 374 |
+
<h5 class="card-title mb-4">Recent Activity</h5>
|
| 375 |
+
|
| 376 |
+
<div class="d-flex mb-4">
|
| 377 |
+
<div class="flex-shrink-0">
|
| 378 |
+
<div class="icon-container bg-primary bg-opacity-10 text-primary" style="width: 40px; height: 40px;">
|
| 379 |
+
<i class="bi bi-person-plus"></i>
|
| 380 |
+
</div>
|
| 381 |
+
</div>
|
| 382 |
+
<div class="ms-3">
|
| 383 |
+
<p class="mb-0 small">New military personnel added</p>
|
| 384 |
+
<small class="text-muted">2 minutes ago</small>
|
| 385 |
+
</div>
|
| 386 |
+
</div>
|
| 387 |
+
|
| 388 |
+
<div class="d-flex mb-4">
|
| 389 |
+
<div class="flex-shrink-0">
|
| 390 |
+
<div class="icon-container bg-success bg-opacity-10 text-success" style="width: 40px; height: 40px;">
|
| 391 |
+
<i class="bi bi-file-earmark-text"></i>
|
| 392 |
+
</div>
|
| 393 |
+
</div>
|
| 394 |
+
<div class="ms-3">
|
| 395 |
+
<p class="mb-0 small">Monthly report generated</p>
|
| 396 |
+
<small class="text-muted">1 hour ago</small>
|
| 397 |
+
</div>
|
| 398 |
+
</div>
|
| 399 |
+
|
| 400 |
+
<div class="d-flex mb-4">
|
| 401 |
+
<div class="flex-shrink-0">
|
| 402 |
+
<div class="icon-container bg-purple bg-opacity-10 text-purple" style="width: 40px; height: 40px;">
|
| 403 |
+
<i class="bi bi-key"></i>
|
| 404 |
+
</div>
|
| 405 |
+
</div>
|
| 406 |
+
<div class="ms-3">
|
| 407 |
+
<p class="mb-0 small">Admin permissions updated</p>
|
| 408 |
+
<small class="text-muted">3 hours ago</small>
|
| 409 |
+
</div>
|
| 410 |
+
</div>
|
| 411 |
+
|
| 412 |
+
<div class="d-flex mb-4">
|
| 413 |
+
<div class="flex-shrink-0">
|
| 414 |
+
<div class="icon-container bg-warning bg-opacity-10 text-warning" style="width: 40px; height: 40px;">
|
| 415 |
+
<i class="bi bi-exclamation-triangle"></i>
|
| 416 |
+
</div>
|
| 417 |
+
</div>
|
| 418 |
+
<div class="ms-3">
|
| 419 |
+
<p class="mb-0 small">Security alert detected</p>
|
| 420 |
+
<small class="text-muted">5 hours ago</small>
|
| 421 |
+
</div>
|
| 422 |
+
</div>
|
| 423 |
+
|
| 424 |
+
<div class="d-flex">
|
| 425 |
+
<div class="flex-shrink-0">
|
| 426 |
+
<div class="icon-container bg-danger bg-opacity-10 text-danger" style="width: 40px; height: 40px;">
|
| 427 |
+
<i class="bi bi-person-x"></i>
|
| 428 |
+
</div>
|
| 429 |
+
</div>
|
| 430 |
+
<div class="ms-3">
|
| 431 |
+
<p class="mb-0 small">Civilian personnel removed</p>
|
| 432 |
+
<small class="text-muted">Yesterday</small>
|
| 433 |
+
</div>
|
| 434 |
+
</div>
|
| 435 |
+
</div>
|
| 436 |
+
</div>
|
| 437 |
+
</div>
|
| 438 |
+
</div>
|
| 439 |
+
|
| 440 |
+
<!-- Personnel Tables -->
|
| 441 |
+
<div class="row g-4 mb-4">
|
| 442 |
+
<div class="col-lg-6">
|
| 443 |
+
<div class="card shadow-sm">
|
| 444 |
+
<div class="card-header bg-transparent border-0 d-flex justify-content-between align-items-center">
|
| 445 |
+
<h5 class="mb-0">Military Personnel</h5>
|
| 446 |
+
<button class="btn btn-sm btn-primary">
|
| 447 |
+
<i class="bi bi-plus"></i> Add New
|
| 448 |
+
</button>
|
| 449 |
+
</div>
|
| 450 |
+
<div class="card-body p-0">
|
| 451 |
+
<div class="table-responsive">
|
| 452 |
+
<table class="table table-hover mb-0">
|
| 453 |
+
<thead class="table-light">
|
| 454 |
+
<tr>
|
| 455 |
+
<th>ID</th>
|
| 456 |
+
<th>Name</th>
|
| 457 |
+
<th>Rank</th>
|
| 458 |
+
<th>Status</th>
|
| 459 |
+
<th>Actions</th>
|
| 460 |
+
</tr>
|
| 461 |
+
</thead>
|
| 462 |
+
<tbody>
|
| 463 |
+
<tr>
|
| 464 |
+
<td>MP-1001</td>
|
| 465 |
+
<td>John Smith</td>
|
| 466 |
+
<td>Major</td>
|
| 467 |
+
<td><span class="badge badge-status-active">Active</span></td>
|
| 468 |
+
<td>
|
| 469 |
+
<button class="btn btn-sm btn-link text-primary p-0 me-2"><i class="bi bi-eye"></i></button>
|
| 470 |
+
<button class="btn btn-sm btn-link text-warning p-0 me-2"><i class="bi bi-pencil"></i></button>
|
| 471 |
+
<button class="btn btn-sm btn-link text-danger p-0"><i class="bi bi-trash"></i></button>
|
| 472 |
+
</td>
|
| 473 |
+
</tr>
|
| 474 |
+
<tr>
|
| 475 |
+
<td>MP-1002</td>
|
| 476 |
+
<td>Sarah Johnson</td>
|
| 477 |
+
<td>Captain</td>
|
| 478 |
+
<td><span class="badge badge-status-active">Active</span></td>
|
| 479 |
+
<td>
|
| 480 |
+
<button class="btn btn-sm btn-link text-primary p-0 me-2"><i class="bi bi-eye"></i></button>
|
| 481 |
+
<button class="btn btn-sm btn-link text-warning p-0 me-2"><i class="bi bi-pencil"></i></button>
|
| 482 |
+
<button class="btn btn-sm btn-link text-danger p-0"><i class="bi bi-trash"></i></button>
|
| 483 |
+
</td>
|
| 484 |
+
</tr>
|
| 485 |
+
<tr>
|
| 486 |
+
<td>MP-1003</td>
|
| 487 |
+
<td>Michael Brown</td>
|
| 488 |
+
<td>Lieutenant</td>
|
| 489 |
+
<td><span class="badge badge-status-leave">On Leave</span></td>
|
| 490 |
+
<td>
|
| 491 |
+
<button class="btn btn-sm btn-link text-primary p-0 me-2"><i class="bi bi-eye"></i></button>
|
| 492 |
+
<button class="btn btn-sm btn-link text-warning p-0 me-2"><i class="bi bi-pencil"></i></button>
|
| 493 |
+
<button class="btn btn-sm btn-link text-danger p-0"><i class="bi bi-trash"></i></button>
|
| 494 |
+
</td>
|
| 495 |
+
</tr>
|
| 496 |
+
</tbody>
|
| 497 |
+
</table>
|
| 498 |
+
</div>
|
| 499 |
+
</div>
|
| 500 |
+
<div class="card-footer bg-transparent border-0">
|
| 501 |
+
<a href="#" class="btn btn-link p-0">View All Military Personnel <i class="bi bi-arrow-right"></i></a>
|
| 502 |
+
</div>
|
| 503 |
+
</div>
|
| 504 |
+
</div>
|
| 505 |
+
|
| 506 |
+
<div class="col-lg-6">
|
| 507 |
+
<div class="card shadow-sm">
|
| 508 |
+
<div class="card-header bg-transparent border-0 d-flex justify-content-between align-items-center">
|
| 509 |
+
<h5 class="mb-0">Civilian Personnel</h5>
|
| 510 |
+
<button class="btn btn-sm btn-primary">
|
| 511 |
+
<i class="bi bi-plus"></i> Add New
|
| 512 |
+
</button>
|
| 513 |
+
</div>
|
| 514 |
+
<div class="card-body p-0">
|
| 515 |
+
<div class="table-responsive">
|
| 516 |
+
<table class="table table-hover mb-0">
|
| 517 |
+
<thead class="table-light">
|
| 518 |
+
<tr>
|
| 519 |
+
<th>ID</th>
|
| 520 |
+
<th>Name</th>
|
| 521 |
+
<th>Department</th>
|
| 522 |
+
<th>Status</th>
|
| 523 |
+
<th>Actions</th>
|
| 524 |
+
</tr>
|
| 525 |
+
</thead>
|
| 526 |
+
<tbody>
|
| 527 |
+
<tr>
|
| 528 |
+
<td>CP-2001</td>
|
| 529 |
+
<td>Emily Davis</td>
|
| 530 |
+
<td>Logistics</td>
|
| 531 |
+
<td><span class="badge badge-status-active">Active</span></td>
|
| 532 |
+
<td>
|
| 533 |
+
<button class="btn btn-sm btn-link text-primary p-0 me-2"><i class="bi bi-eye"></i></button>
|
| 534 |
+
<button class="btn btn-sm btn-link text-warning p-0 me-2"><i class="bi bi-pencil"></i></button>
|
| 535 |
+
<button class="btn btn-sm btn-link text-danger p-0"><i class="bi bi-trash"></i></button>
|
| 536 |
+
</td>
|
| 537 |
+
</tr>
|
| 538 |
+
<tr>
|
| 539 |
+
<td>CP-2002</td>
|
| 540 |
+
<td>Robert Wilson</td>
|
| 541 |
+
<td>Engineering</td>
|
| 542 |
+
<td><span class="badge badge-status-active">Active</span></td>
|
| 543 |
+
<td>
|
| 544 |
+
<button class="btn btn-sm btn-link text-primary p-0 me-2"><i class="bi bi-eye"></i></button>
|
| 545 |
+
<button class="btn btn-sm btn-link text-warning p-0 me-2"><i class="bi bi-pencil"></i></button>
|
| 546 |
+
<button class="btn btn-sm btn-link text-danger p-0"><i class="bi bi-trash"></i></button>
|
| 547 |
+
</td>
|
| 548 |
+
</tr>
|
| 549 |
+
<tr>
|
| 550 |
+
<td>CP-2003</td>
|
| 551 |
+
<td>Jennifer Lee</td>
|
| 552 |
+
<td>Medical</td>
|
| 553 |
+
<td><span class="badge badge-status-inactive">Inactive</span></td>
|
| 554 |
+
<td>
|
| 555 |
+
<button class="btn btn-sm btn-link text-primary p-0 me-2"><i class="bi bi-eye"></i></button>
|
| 556 |
+
<button class="btn btn-sm btn-link text-warning p-0 me-2"><i class="bi bi-pencil"></i></button>
|
| 557 |
+
<button class="btn btn-sm btn-link text-danger p-0"><i class="bi bi-trash"></i></button>
|
| 558 |
+
</td>
|
| 559 |
+
</tr>
|
| 560 |
+
</tbody>
|
| 561 |
+
</table>
|
| 562 |
+
</div>
|
| 563 |
+
</div>
|
| 564 |
+
<div class="card-footer bg-transparent border-0">
|
| 565 |
+
<a href="#" class="btn btn-link p-0">View All Civilian Personnel <i class="bi bi-arrow-right"></i></a>
|
| 566 |
+
</div>
|
| 567 |
+
</div>
|
| 568 |
+
</div>
|
| 569 |
+
</div>
|
| 570 |
+
|
| 571 |
+
<!-- Admin Users Section -->
|
| 572 |
+
<div class="card shadow-sm">
|
| 573 |
+
<div class="card-header bg-transparent border-0 d-flex justify-content-between align-items-center">
|
| 574 |
+
<h5 class="mb-0">Admin Users</h5>
|
| 575 |
+
<button class="btn btn-sm btn-primary">
|
| 576 |
+
<i class="bi bi-plus"></i> Add Admin
|
| 577 |
+
</button>
|
| 578 |
+
</div>
|
| 579 |
+
<div class="card-body p-0">
|
| 580 |
+
<div class="table-responsive">
|
| 581 |
+
<table class="table table-hover mb-0">
|
| 582 |
+
<thead class="table-light">
|
| 583 |
+
<tr>
|
| 584 |
+
<th>ID</th>
|
| 585 |
+
<th>Username</th>
|
| 586 |
+
<th>Email</th>
|
| 587 |
+
<th>Role</th>
|
| 588 |
+
<th>Last Login</th>
|
| 589 |
+
<th>Actions</th>
|
| 590 |
+
</tr>
|
| 591 |
+
</thead>
|
| 592 |
+
<tbody>
|
| 593 |
+
<tr>
|
| 594 |
+
<td>AD-001</td>
|
| 595 |
+
<td>admin_john</td>
|
| 596 |
+
<td>john.admin@command.mil</td>
|
| 597 |
+
<td>Super Admin</td>
|
| 598 |
+
<td>Today, 09:42 AM</td>
|
| 599 |
+
<td>
|
| 600 |
+
<button class="btn btn-sm btn-link text-primary p-0 me-2"><i class="bi bi-eye"></i></button>
|
| 601 |
+
<button class="btn btn-sm btn-link text-warning p-0 me-2"><i class="bi bi-pencil"></i></button>
|
| 602 |
+
<button class="btn btn-sm btn-link text-danger p-0"><i class="bi bi-trash"></i></button>
|
| 603 |
+
</td>
|
| 604 |
+
</tr>
|
| 605 |
+
<tr>
|
| 606 |
+
<td>AD-002</td>
|
| 607 |
+
<td>admin_sarah</td>
|
| 608 |
+
<td>sarah.admin@command.mil</td>
|
| 609 |
+
<td>Personnel Admin</td>
|
| 610 |
+
<td>Yesterday, 04:15 PM</td>
|
| 611 |
+
<td>
|
| 612 |
+
<button class="btn btn-sm btn-link text-primary p-0 me-2"><i class="bi bi-eye"></i></button>
|
| 613 |
+
<button class="btn btn-sm btn-link text-warning p-0 me-2"><i class="bi bi-pencil"></i></button>
|
| 614 |
+
<button class="btn btn-sm btn-link text-danger p-0"><i class="bi bi-trash"></i></button>
|
| 615 |
+
</td>
|
| 616 |
+
</tr>
|
| 617 |
+
<tr>
|
| 618 |
+
<td>AD-003</td>
|
| 619 |
+
<td>admin_mike</td>
|
| 620 |
+
<td>mike.admin@command.mil</td>
|
| 621 |
+
<td>Reports Admin</td>
|
| 622 |
+
<td>2 days ago</td>
|
| 623 |
+
<td>
|
| 624 |
+
<button class="btn btn-sm btn-link text-primary p-0 me-2"><i class="bi bi-eye"></i></button>
|
| 625 |
+
<button class="btn btn-sm btn-link text-warning p-0 me-2"><i class="bi bi-pencil"></i></button>
|
| 626 |
+
<button class="btn btn-sm btn-link text-danger p-0"><i class="bi bi-trash"></i></button>
|
| 627 |
+
</td>
|
| 628 |
+
</tr>
|
| 629 |
+
</tbody>
|
| 630 |
+
</table>
|
| 631 |
+
</div>
|
| 632 |
+
</div>
|
| 633 |
+
<div class="card-footer bg-transparent border-0">
|
| 634 |
+
<a href="#" class="btn btn-link p-0">View All Admin Users <i class="bi bi-arrow-right"></i></a>
|
| 635 |
+
</div>
|
| 636 |
+
</div>
|
| 637 |
+
</div>
|
| 638 |
+
</div>
|
| 639 |
+
|
| 640 |
+
<!-- Bootstrap 5 JS Bundle with Popper -->
|
| 641 |
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
| 642 |
+
<!-- Chart.js -->
|
| 643 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
| 644 |
+
|
| 645 |
+
<script>
|
| 646 |
+
// Toggle sidebar
|
| 647 |
+
document.getElementById('toggleSidebar').addEventListener('click', function() {
|
| 648 |
+
document.querySelector('.sidebar').classList.toggle('collapsed');
|
| 649 |
+
});
|
| 650 |
+
|
| 651 |
+
// Initialize chart
|
| 652 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 653 |
+
const ctx = document.getElementById('personnelChart').getContext('2d');
|
| 654 |
+
const personnelChart = new Chart(ctx, {
|
| 655 |
+
type: 'bar',
|
| 656 |
+
data: {
|
| 657 |
+
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'],
|
| 658 |
+
datasets: [
|
| 659 |
+
{
|
| 660 |
+
label: 'Military Personnel',
|
| 661 |
+
data: [1200, 1250, 1230, 1260, 1240, 1254, 1270],
|
| 662 |
+
backgroundColor: 'rgba(13, 110, 253, 0.7)',
|
| 663 |
+
borderColor: 'rgba(13, 110, 253, 1)',
|
| 664 |
+
borderWidth: 1
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
label: 'Civilian Personnel',
|
| 668 |
+
data: [800, 820, 830, 850, 860, 870, 876],
|
| 669 |
+
backgroundColor: 'rgba(25, 135, 84, 0.7)',
|
| 670 |
+
borderColor: 'rgba(25, 135, 84, 1)',
|
| 671 |
+
borderWidth: 1
|
| 672 |
+
}
|
| 673 |
+
]
|
| 674 |
+
},
|
| 675 |
+
options: {
|
| 676 |
+
responsive: true,
|
| 677 |
+
maintainAspectRatio: false,
|
| 678 |
+
scales: {
|
| 679 |
+
y: {
|
| 680 |
+
beginAtZero: false
|
| 681 |
+
}
|
| 682 |
+
},
|
| 683 |
+
plugins: {
|
| 684 |
+
legend: {
|
| 685 |
+
position: 'top',
|
| 686 |
+
}
|
| 687 |
+
}
|
| 688 |
+
}
|
| 689 |
+
});
|
| 690 |
+
});
|
| 691 |
+
|
| 692 |
+
// Dark mode toggle with localStorage persistence
|
| 693 |
+
const darkModeToggle = document.getElementById('darkModeToggle');
|
| 694 |
+
const htmlElement = document.documentElement;
|
| 695 |
+
|
| 696 |
+
// Check for saved user preference, if any, on load of the website
|
| 697 |
+
if (localStorage.getItem('darkMode') === 'true') {
|
| 698 |
+
htmlElement.setAttribute('data-bs-theme', 'dark');
|
| 699 |
+
darkModeToggle.checked = true;
|
| 700 |
+
} else {
|
| 701 |
+
htmlElement.setAttribute('data-bs-theme', 'light');
|
| 702 |
+
darkModeToggle.checked = false;
|
| 703 |
+
}
|
| 704 |
+
|
| 705 |
+
// Listen for toggle changes
|
| 706 |
+
darkModeToggle.addEventListener('change', function() {
|
| 707 |
+
if (this.checked) {
|
| 708 |
+
htmlElement.setAttribute('data-bs-theme', 'dark');
|
| 709 |
+
localStorage.setItem('darkMode', 'true');
|
| 710 |
+
} else {
|
| 711 |
+
htmlElement.setAttribute('data-bs-theme', 'light');
|
| 712 |
+
localStorage.setItem('darkMode', 'false');
|
| 713 |
+
}
|
| 714 |
+
});
|
| 715 |
+
|
| 716 |
+
// Update chart colors when dark mode changes
|
| 717 |
+
function updateChartTheme(isDarkMode) {
|
| 718 |
+
const chart = Chart.getChart("personnelChart");
|
| 719 |
+
if (chart) {
|
| 720 |
+
chart.options.scales.x.grid.color = isDarkMode ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.1)';
|
| 721 |
+
chart.options.scales.y.grid.color = isDarkMode ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.1)';
|
| 722 |
+
chart.update();
|
| 723 |
+
}
|
| 724 |
+
}
|
| 725 |
+
|
| 726 |
+
// Observe theme changes
|
| 727 |
+
const observer = new MutationObserver(function(mutations) {
|
| 728 |
+
mutations.forEach(function(mutation) {
|
| 729 |
+
if (mutation.attributeName === 'data-bs-theme') {
|
| 730 |
+
const isDarkMode = htmlElement.getAttribute('data-bs-theme') === 'dark';
|
| 731 |
+
updateChartTheme(isDarkMode);
|
| 732 |
+
}
|
| 733 |
+
});
|
| 734 |
+
});
|
| 735 |
+
|
| 736 |
+
observer.observe(htmlElement, {
|
| 737 |
+
attributes: true
|
| 738 |
+
});
|
| 739 |
+
</script>
|
| 740 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Osabox/admin" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 741 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
can we use bootstrap 5? and make it nicer, with a darkmode that stays even after a refresh
|