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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Cloud ERP System - AnyCoder</title>
|
| 7 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 8 |
+
<style>
|
| 9 |
+
:root {
|
| 10 |
+
--primary-color: #3498db;
|
| 11 |
+
--secondary-color: #2980b9;
|
| 12 |
+
--accent-color: #e74c3c;
|
| 13 |
+
--light-color: #ecf0f1;
|
| 14 |
+
--dark-color: #2c3e50;
|
| 15 |
+
--success-color: #2ecc71;
|
| 16 |
+
--warning-color: #f39c12;
|
| 17 |
+
--danger-color: #e74c3c;
|
| 18 |
+
--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 19 |
+
--border-radius: 8px;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
* {
|
| 23 |
+
margin: 0;
|
| 24 |
+
padding: 0;
|
| 25 |
+
box-sizing: border-box;
|
| 26 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
body {
|
| 30 |
+
background-color: #f5f7fa;
|
| 31 |
+
color: var(--dark-color);
|
| 32 |
+
line-height: 1.6;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
.container {
|
| 36 |
+
display: grid;
|
| 37 |
+
grid-template-columns: 250px 1fr;
|
| 38 |
+
min-height: 100vh;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
/* Sidebar */
|
| 42 |
+
.sidebar {
|
| 43 |
+
background-color: var(--dark-color);
|
| 44 |
+
color: white;
|
| 45 |
+
padding: 1.5rem;
|
| 46 |
+
position: sticky;
|
| 47 |
+
top: 0;
|
| 48 |
+
height: 100vh;
|
| 49 |
+
overflow-y: auto;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
.logo {
|
| 53 |
+
display: flex;
|
| 54 |
+
align-items: center;
|
| 55 |
+
margin-bottom: 2rem;
|
| 56 |
+
padding-bottom: 1rem;
|
| 57 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
.logo img {
|
| 61 |
+
width: 40px;
|
| 62 |
+
height: 40px;
|
| 63 |
+
margin-right: 10px;
|
| 64 |
+
border-radius: 50%;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
.logo h2 {
|
| 68 |
+
font-size: 1.2rem;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
.nav-menu {
|
| 72 |
+
list-style: none;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
.nav-item {
|
| 76 |
+
margin-bottom: 0.5rem;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
.nav-link {
|
| 80 |
+
display: flex;
|
| 81 |
+
align-items: center;
|
| 82 |
+
padding: 0.8rem 1rem;
|
| 83 |
+
color: white;
|
| 84 |
+
text-decoration: none;
|
| 85 |
+
border-radius: var(--border-radius);
|
| 86 |
+
transition: all 0.3s ease;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
.nav-link:hover, .nav-link.active {
|
| 90 |
+
background-color: var(--primary-color);
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
.nav-link i {
|
| 94 |
+
margin-right: 1rem;
|
| 95 |
+
font-size: 1.1rem;
|
| 96 |
+
width: 20px;
|
| 97 |
+
text-align: center;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
.sidebar-footer {
|
| 101 |
+
position: absolute;
|
| 102 |
+
bottom: 1rem;
|
| 103 |
+
left: 1.5rem;
|
| 104 |
+
right: 1.5rem;
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
.sidebar-footer p {
|
| 108 |
+
font-size: 0.8rem;
|
| 109 |
+
opacity: 0.7;
|
| 110 |
+
text-align: center;
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
/* Main Content */
|
| 114 |
+
.main {
|
| 115 |
+
padding: 1.5rem;
|
| 116 |
+
overflow-y: auto;
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
.header {
|
| 120 |
+
display: flex;
|
| 121 |
+
justify-content: space-between;
|
| 122 |
+
align-items: center;
|
| 123 |
+
margin-bottom: 2rem;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
.header h1 {
|
| 127 |
+
font-size: 1.8rem;
|
| 128 |
+
color: var(--dark-color);
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
.header-actions {
|
| 132 |
+
display: flex;
|
| 133 |
+
align-items: center;
|
| 134 |
+
gap: 1rem;
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
.search-box {
|
| 138 |
+
position: relative;
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
.search-box input {
|
| 142 |
+
padding: 0.5rem 1rem;
|
| 143 |
+
border: 1px solid #ddd;
|
| 144 |
+
border-radius: var(--border-radius);
|
| 145 |
+
width: 200px;
|
| 146 |
+
transition: width 0.3s ease;
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
.search-box input:focus {
|
| 150 |
+
outline: none;
|
| 151 |
+
border-color: var(--primary-color);
|
| 152 |
+
width: 250px;
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
.search-box i {
|
| 156 |
+
position: absolute;
|
| 157 |
+
right: 10px;
|
| 158 |
+
top: 50%;
|
| 159 |
+
transform: translateY(-50%);
|
| 160 |
+
color: #777;
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
.user-profile {
|
| 164 |
+
display: flex;
|
| 165 |
+
align-items: center;
|
| 166 |
+
gap: 0.5rem;
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
.user-profile img {
|
| 170 |
+
width: 35px;
|
| 171 |
+
height: 35px;
|
| 172 |
+
border-radius: 50%;
|
| 173 |
+
object-fit: cover;
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
.user-profile span {
|
| 177 |
+
font-weight: 500;
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
/* Dashboard Cards */
|
| 181 |
+
.dashboard-cards {
|
| 182 |
+
display: grid;
|
| 183 |
+
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
| 184 |
+
gap: 1.5rem;
|
| 185 |
+
margin-bottom: 2rem;
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
.card {
|
| 189 |
+
background: white;
|
| 190 |
+
border-radius: var(--border-radius);
|
| 191 |
+
padding: 1.5rem;
|
| 192 |
+
box-shadow: var(--shadow);
|
| 193 |
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 194 |
+
}
|
| 195 |
+
|
| 196 |
+
.card:hover {
|
| 197 |
+
transform: translateY(-5px);
|
| 198 |
+
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
.card-header {
|
| 202 |
+
display: flex;
|
| 203 |
+
justify-content: space-between;
|
| 204 |
+
align-items: center;
|
| 205 |
+
margin-bottom: 1rem;
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
.card-title {
|
| 209 |
+
font-size: 0.9rem;
|
| 210 |
+
color: #777;
|
| 211 |
+
text-transform: uppercase;
|
| 212 |
+
letter-spacing: 1px;
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
.card-icon {
|
| 216 |
+
font-size: 1.5rem;
|
| 217 |
+
opacity: 0.7;
|
| 218 |
+
}
|
| 219 |
+
|
| 220 |
+
.card-value {
|
| 221 |
+
font-size: 2rem;
|
| 222 |
+
font-weight: 700;
|
| 223 |
+
margin-bottom: 0.5rem;
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
.card-footer {
|
| 227 |
+
display: flex;
|
| 228 |
+
align-items: center;
|
| 229 |
+
font-size: 0.8rem;
|
| 230 |
+
color: #777;
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
.card-footer i {
|
| 234 |
+
margin-right: 0.3rem;
|
| 235 |
+
font-size: 0.7rem;
|
| 236 |
+
}
|
| 237 |
+
|
| 238 |
+
.trending-up {
|
| 239 |
+
color: var(--success-color);
|
| 240 |
+
}
|
| 241 |
+
|
| 242 |
+
.trending-down {
|
| 243 |
+
color: var(--danger-color);
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
/* Charts Section */
|
| 247 |
+
.charts-section {
|
| 248 |
+
display: grid;
|
| 249 |
+
grid-template-columns: 1fr 1fr;
|
| 250 |
+
gap: 1.5rem;
|
| 251 |
+
margin-bottom: 2rem;
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
.chart-card {
|
| 255 |
+
background: white;
|
| 256 |
+
border-radius: var(--border-radius);
|
| 257 |
+
padding: 1.5rem;
|
| 258 |
+
box-shadow: var(--shadow);
|
| 259 |
+
}
|
| 260 |
+
|
| 261 |
+
.chart-header {
|
| 262 |
+
display: flex;
|
| 263 |
+
justify-content: space-between;
|
| 264 |
+
align-items: center;
|
| 265 |
+
margin-bottom: 1.5rem;
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
.chart-title {
|
| 269 |
+
font-size: 1.2rem;
|
| 270 |
+
font-weight: 600;
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
.chart-controls {
|
| 274 |
+
display: flex;
|
| 275 |
+
gap: 0.5rem;
|
| 276 |
+
}
|
| 277 |
+
|
| 278 |
+
.chart-btn {
|
| 279 |
+
padding: 0.3rem 0.6rem;
|
| 280 |
+
border: 1px solid #ddd;
|
| 281 |
+
background: white;
|
| 282 |
+
border-radius: 4px;
|
| 283 |
+
cursor: pointer;
|
| 284 |
+
font-size: 0.8rem;
|
| 285 |
+
transition: all 0.2s;
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
.chart-btn.active {
|
| 289 |
+
background: var(--primary-color);
|
| 290 |
+
color: white;
|
| 291 |
+
border-color: var(--primary-color);
|
| 292 |
+
}
|
| 293 |
+
|
| 294 |
+
.chart-container {
|
| 295 |
+
height: 250px;
|
| 296 |
+
}
|
| 297 |
+
|
| 298 |
+
/* Recent Transactions */
|
| 299 |
+
.recent-transactions {
|
| 300 |
+
background: white;
|
| 301 |
+
border-radius: var(--border-radius);
|
| 302 |
+
padding: 1.5rem;
|
| 303 |
+
box-shadow: var(--shadow);
|
| 304 |
+
}
|
| 305 |
+
|
| 306 |
+
.transactions-header {
|
| 307 |
+
display: flex;
|
| 308 |
+
justify-content: space-between;
|
| 309 |
+
align-items: center;
|
| 310 |
+
margin-bottom: 1.5rem;
|
| 311 |
+
}
|
| 312 |
+
|
| 313 |
+
.transactions-title {
|
| 314 |
+
font-size: 1.2rem;
|
| 315 |
+
font-weight: 600;
|
| 316 |
+
}
|
| 317 |
+
|
| 318 |
+
.view-all {
|
| 319 |
+
color: var(--primary-color);
|
| 320 |
+
text-decoration: none;
|
| 321 |
+
font-size: 0.9rem;
|
| 322 |
+
}
|
| 323 |
+
|
| 324 |
+
.table-responsive {
|
| 325 |
+
overflow-x: auto;
|
| 326 |
+
}
|
| 327 |
+
|
| 328 |
+
table {
|
| 329 |
+
width: 100%;
|
| 330 |
+
border-collapse: collapse;
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
th, td {
|
| 334 |
+
padding: 0.8rem;
|
| 335 |
+
text-align: left;
|
| 336 |
+
border-bottom: 1px solid #eee;
|
| 337 |
+
}
|
| 338 |
+
|
| 339 |
+
th {
|
| 340 |
+
font-weight: 600;
|
| 341 |
+
color: #555;
|
| 342 |
+
background-color: #f9f9f9;
|
| 343 |
+
}
|
| 344 |
+
|
| 345 |
+
tr:hover {
|
| 346 |
+
background-color: #f5f5f5;
|
| 347 |
+
}
|
| 348 |
+
|
| 349 |
+
.status {
|
| 350 |
+
padding: 0.3rem 0.6rem;
|
| 351 |
+
border-radius: 20px;
|
| 352 |
+
font-size: 0.8rem;
|
| 353 |
+
font-weight: 500;
|
| 354 |
+
text-align: center;
|
| 355 |
+
}
|
| 356 |
+
|
| 357 |
+
.status-completed {
|
| 358 |
+
background-color: rgba(46, 204, 113, 0.1);
|
| 359 |
+
color: var(--success-color);
|
| 360 |
+
}
|
| 361 |
+
|
| 362 |
+
.status-pending {
|
| 363 |
+
background-color: rgba(243, 156, 18, 0.1);
|
| 364 |
+
color: var(--warning-color);
|
| 365 |
+
}
|
| 366 |
+
|
| 367 |
+
.status-cancelled {
|
| 368 |
+
background-color: rgba(231, 76, 60, 0.1);
|
| 369 |
+
color: var(--danger-color);
|
| 370 |
+
}
|
| 371 |
+
|
| 372 |
+
/* Quick Actions */
|
| 373 |
+
.quick-actions {
|
| 374 |
+
display: grid;
|
| 375 |
+
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
| 376 |
+
gap: 1rem;
|
| 377 |
+
margin-bottom: 2rem;
|
| 378 |
+
}
|
| 379 |
+
|
| 380 |
+
.action-card {
|
| 381 |
+
background: white;
|
| 382 |
+
border-radius: var(--border-radius);
|
| 383 |
+
padding: 1.2rem;
|
| 384 |
+
text-align: center;
|
| 385 |
+
box-shadow: var(--shadow);
|
| 386 |
+
transition: all 0.3s ease;
|
| 387 |
+
cursor: pointer;
|
| 388 |
+
}
|
| 389 |
+
|
| 390 |
+
.action-card:hover {
|
| 391 |
+
transform: translateY(-3px);
|
| 392 |
+
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
|
| 393 |
+
}
|
| 394 |
+
|
| 395 |
+
.action-icon {
|
| 396 |
+
font-size: 2rem;
|
| 397 |
+
margin-bottom: 0.8rem;
|
| 398 |
+
color: var(--primary-color);
|
| 399 |
+
}
|
| 400 |
+
|
| 401 |
+
.action-title {
|
| 402 |
+
font-size: 0.9rem;
|
| 403 |
+
font-weight: 500;
|
| 404 |
+
}
|
| 405 |
+
|
| 406 |
+
/* Responsive Design */
|
| 407 |
+
@media (max-width: 1024px) {
|
| 408 |
+
.container {
|
| 409 |
+
grid-template-columns: 1fr;
|
| 410 |
+
}
|
| 411 |
+
|
| 412 |
+
.sidebar {
|
| 413 |
+
position: relative;
|
| 414 |
+
height: auto;
|
| 415 |
+
display: none;
|
| 416 |
+
}
|
| 417 |
+
|
| 418 |
+
.sidebar.active {
|
| 419 |
+
display: block;
|
| 420 |
+
}
|
| 421 |
+
|
| 422 |
+
.main {
|
| 423 |
+
padding: 1rem;
|
| 424 |
+
}
|
| 425 |
+
|
| 426 |
+
.charts-section {
|
| 427 |
+
grid-template-columns: 1fr;
|
| 428 |
+
}
|
| 429 |
+
}
|
| 430 |
+
|
| 431 |
+
@media (max-width: 768px) {
|
| 432 |
+
.header {
|
| 433 |
+
flex-direction: column;
|
| 434 |
+
align-items: flex-start;
|
| 435 |
+
gap: 1rem;
|
| 436 |
+
}
|
| 437 |
+
|
| 438 |
+
.header-actions {
|
| 439 |
+
width: 100%;
|
| 440 |
+
justify-content: space-between;
|
| 441 |
+
}
|
| 442 |
+
|
| 443 |
+
.search-box input {
|
| 444 |
+
width: 100%;
|
| 445 |
+
}
|
| 446 |
+
|
| 447 |
+
.dashboard-cards {
|
| 448 |
+
grid-template-columns: 1fr;
|
| 449 |
+
}
|
| 450 |
+
|
| 451 |
+
.quick-actions {
|
| 452 |
+
grid-template-columns: repeat(2, 1fr);
|
| 453 |
+
}
|
| 454 |
+
}
|
| 455 |
+
|
| 456 |
+
@media (max-width: 480px) {
|
| 457 |
+
.quick-actions {
|
| 458 |
+
grid-template-columns: 1fr;
|
| 459 |
+
}
|
| 460 |
+
|
| 461 |
+
.charts-section {
|
| 462 |
+
margin-bottom: 1rem;
|
| 463 |
+
}
|
| 464 |
+
|
| 465 |
+
.chart-container {
|
| 466 |
+
height: 200px;
|
| 467 |
+
}
|
| 468 |
+
}
|
| 469 |
+
|
| 470 |
+
/* AnyCoder Branding */
|
| 471 |
+
.anycoder-brand {
|
| 472 |
+
position: fixed;
|
| 473 |
+
bottom: 10px;
|
| 474 |
+
right: 10px;
|
| 475 |
+
background: white;
|
| 476 |
+
padding: 0.5rem 1rem;
|
| 477 |
+
border-radius: var(--border-radius);
|
| 478 |
+
box-shadow: var(--shadow);
|
| 479 |
+
font-size: 0.8rem;
|
| 480 |
+
z-index: 1000;
|
| 481 |
+
}
|
| 482 |
+
|
| 483 |
+
.anycoder-brand a {
|
| 484 |
+
color: var(--primary-color);
|
| 485 |
+
text-decoration: none;
|
| 486 |
+
font-weight: 500;
|
| 487 |
+
}
|
| 488 |
+
</style>
|
| 489 |
+
</head>
|
| 490 |
+
<body>
|
| 491 |
+
<div class="container">
|
| 492 |
+
<!-- Sidebar -->
|
| 493 |
+
<aside class="sidebar">
|
| 494 |
+
<div class="logo">
|
| 495 |
+
<img src="https://via.placeholder.com/40" alt="Company Logo">
|
| 496 |
+
<h2>Cloud ERP</h2>
|
| 497 |
+
</div>
|
| 498 |
+
<ul class="nav-menu">
|
| 499 |
+
<li class="nav-item">
|
| 500 |
+
<a href="#" class="nav-link active">
|
| 501 |
+
<i class="fas fa-home"></i>
|
| 502 |
+
<span>Dashboard</span>
|
| 503 |
+
</a>
|
| 504 |
+
</li>
|
| 505 |
+
<li class="nav-item">
|
| 506 |
+
<a href="#" class="nav-link">
|
| 507 |
+
<i class="fas fa-chart-line"></i>
|
| 508 |
+
<span>Analytics</span>
|
| 509 |
+
</a>
|
| 510 |
+
</li>
|
| 511 |
+
<li class="nav-item">
|
| 512 |
+
<a href="#" class="nav-link">
|
| 513 |
+
<i class="fas fa-box"></i>
|
| 514 |
+
<span>Inventory</span>
|
| 515 |
+
</a>
|
| 516 |
+
</li>
|
| 517 |
+
<li class="nav-item">
|
| 518 |
+
<a href="#" class="nav-link">
|
| 519 |
+
<i class="fas fa-users"></i>
|
| 520 |
+
<span>Customers</span>
|
| 521 |
+
</a>
|
| 522 |
+
</li>
|
| 523 |
+
<li class="nav-item">
|
| 524 |
+
<a href="#" class="nav-link">
|
| 525 |
+
<i class="fas fa-truck"></i>
|
| 526 |
+
<span>Suppliers</span>
|
| 527 |
+
</a>
|
| 528 |
+
</li>
|
| 529 |
+
<li class="nav-item">
|
| 530 |
+
<a href="#" class="nav-link">
|
| 531 |
+
<i class="fas fa-file-invoice"></i>
|
| 532 |
+
<span>Invoices</span>
|
| 533 |
+
</a>
|
| 534 |
+
</li>
|
| 535 |
+
<li class="nav-item">
|
| 536 |
+
<a href="#" class="nav-link">
|
| 537 |
+
<i class="fas fa-cog"></i>
|
| 538 |
+
<span>Settings</span>
|
| 539 |
+
</a>
|
| 540 |
+
</li>
|
| 541 |
+
</ul>
|
| 542 |
+
<div class="sidebar-footer">
|
| 543 |
+
<p>Built with <a href="https://huggingface.co/spaces/akhaliq/anycoder" style="color: var(--primary-color);">anycoder</a></p>
|
| 544 |
+
</div>
|
| 545 |
+
</aside>
|
| 546 |
+
|
| 547 |
+
<!-- Main Content -->
|
| 548 |
+
<main class="main">
|
| 549 |
+
<!-- Header -->
|
| 550 |
+
<header class="header">
|
| 551 |
+
<h1>Dashboard</h1>
|
| 552 |
+
<div class="header-actions">
|
| 553 |
+
<div class="search-box">
|
| 554 |
+
<input type="text" placeholder="Search...">
|
| 555 |
+
<i class="fas fa-search"></i>
|
| 556 |
+
</div>
|
| 557 |
+
<div class="user-profile">
|
| 558 |
+
<img src="https://via.placeholder.com/35" alt="User Avatar">
|
| 559 |
+
<span>John Doe</span>
|
| 560 |
+
</div>
|
| 561 |
+
</div>
|
| 562 |
+
</header>
|
| 563 |
+
|
| 564 |
+
<!-- Dashboard Cards -->
|
| 565 |
+
<section class="dashboard-cards">
|
| 566 |
+
<div class="card">
|
| 567 |
+
<div class="card-header">
|
| 568 |
+
<span class="card-title">Total Revenue</span>
|
| 569 |
+
<i class="fas fa-dollar-sign card-icon"></i>
|
| 570 |
+
</div>
|
| 571 |
+
<div class="card-value">$128,450</div>
|
| 572 |
+
<div class="card-footer">
|
| 573 |
+
<i class="fas fa-arrow-up trending-up"></i>
|
| 574 |
+
<span>12% vs last month</span>
|
| 575 |
+
</div>
|
| 576 |
+
</div>
|
| 577 |
+
|
| 578 |
+
<div class="card">
|
| 579 |
+
<div class="card-header">
|
| 580 |
+
<span class="card-title">Orders</span>
|
| 581 |
+
<i class="fas fa-shopping-cart card-icon"></i>
|
| 582 |
+
</div>
|
| 583 |
+
<div class="card-value">1,248</div>
|
| 584 |
+
<div class="card-footer">
|
| 585 |
+
<i class="fas fa-arrow-down trending-down"></i>
|
| 586 |
+
<span>3% vs last month</span>
|
| 587 |
+
</div>
|
| 588 |
+
</div>
|
| 589 |
+
|
| 590 |
+
<div class="card">
|
| 591 |
+
<div class="card-header">
|
| 592 |
+
<span class="card-title">Customers</span>
|
| 593 |
+
<i class="fas fa-users card-icon"></i>
|
| 594 |
+
</div>
|
| 595 |
+
<div class="card-value">846</div>
|
| 596 |
+
<div class="card-footer">
|
| 597 |
+
<i class="fas fa-arrow-up trending-up"></i>
|
| 598 |
+
<span>8% vs last month</span>
|
| 599 |
+
</div>
|
| 600 |
+
</div>
|
| 601 |
+
|
| 602 |
+
<div class="card">
|
| 603 |
+
<div class="card-header">
|
| 604 |
+
<span class="card-title">Inventory</span>
|
| 605 |
+
<i class="fas fa-boxes card-icon"></i>
|
| 606 |
+
</div>
|
| 607 |
+
<div class="card-value">3,210</div>
|
| 608 |
+
<div class="card-footer">
|
| 609 |
+
<i class="fas fa-arrow-up trending-up"></i>
|
| 610 |
+
<span>5% vs last month</span>
|
| 611 |
+
</div>
|
| 612 |
+
</div>
|
| 613 |
+
</section>
|
| 614 |
+
|
| 615 |
+
<!-- Charts Section -->
|
| 616 |
+
<section class="charts-section">
|
| 617 |
+
<div class="chart-card">
|
| 618 |
+
<div class="chart-header">
|
| 619 |
+
<h3 class="chart-title">Revenue Overview</h3>
|
| 620 |
+
<div class="chart-controls">
|
| 621 |
+
<button class="chart-btn active">Monthly</button>
|
| 622 |
+
<button class="chart-btn">Weekly</button>
|
| 623 |
+
<button class="chart-btn">Daily</button>
|
| 624 |
+
</div>
|
| 625 |
+
</div>
|
| 626 |
+
<div class="chart-container" id="revenueChart">
|
| 627 |
+
<!-- Chart will be rendered here by JavaScript -->
|
| 628 |
+
<canvas id="revenueChartCanvas"></canvas>
|
| 629 |
+
</div>
|
| 630 |
+
</div>
|
| 631 |
+
|
| 632 |
+
<div class="chart-card">
|
| 633 |
+
<div class="chart-header">
|
| 634 |
+
<h3 class="chart-title">Sales by Category</h3>
|
| 635 |
+
<div class="chart-controls">
|
| 636 |
+
<button class="chart-btn active">This Year</button>
|
| 637 |
+
<button class="chart-btn">Last Year</button>
|
| 638 |
+
</div>
|
| 639 |
+
</div>
|
| 640 |
+
<div class="chart-container" id="salesChart">
|
| 641 |
+
<!-- Chart will be rendered here by JavaScript -->
|
| 642 |
+
<canvas id="salesChartCanvas"></canvas>
|
| 643 |
+
</div>
|
| 644 |
+
</div>
|
| 645 |
+
</section>
|
| 646 |
+
|
| 647 |
+
<!-- Quick Actions -->
|
| 648 |
+
<section class="quick-actions">
|
| 649 |
+
<div class="action-card">
|
| 650 |
+
<div class="action-icon">
|
| 651 |
+
<i class="fas fa-plus-circle"></i>
|
| 652 |
+
</div>
|
| 653 |
+
<div class="action-title">New Order</div>
|
| 654 |
+
</div>
|
| 655 |
+
<div class="action-card">
|
| 656 |
+
<div class="action-icon">
|
| 657 |
+
<i class="fas fa-file-alt"></i>
|
| 658 |
+
</div>
|
| 659 |
+
<div class="action-title">Create Invoice</div>
|
| 660 |
+
</div>
|
| 661 |
+
<div class="action-card">
|
| 662 |
+
<div class="action-icon">
|
| 663 |
+
<i class="fas fa-user-plus"></i>
|
| 664 |
+
</div>
|
| 665 |
+
<div class="action-title">Add Customer</div>
|
| 666 |
+
</div>
|
| 667 |
+
<div class="action-card">
|
| 668 |
+
<div class="action-icon">
|
| 669 |
+
<i class="fas fa-box-open"></i>
|
| 670 |
+
</div>
|
| 671 |
+
<div class="action-title">Add Product</div>
|
| 672 |
+
</div>
|
| 673 |
+
<div class="action-card">
|
| 674 |
+
<div class="action-icon">
|
| 675 |
+
<i class="fas fa-chart-bar"></i>
|
| 676 |
+
</div>
|
| 677 |
+
<div class="action-title">View Reports</div>
|
| 678 |
+
</div>
|
| 679 |
+
</section>
|
| 680 |
+
|
| 681 |
+
<!-- Recent Transactions -->
|
| 682 |
+
<section class="recent-transactions">
|
| 683 |
+
<div class="transactions-header">
|
| 684 |
+
<h3 class="transactions-title">Recent Transactions</h3>
|
| 685 |
+
<a href="#" class="view-all">View All</a>
|
| 686 |
+
</div>
|
| 687 |
+
<div class="table-responsive">
|
| 688 |
+
<table>
|
| 689 |
+
<thead>
|
| 690 |
+
<tr>
|
| 691 |
+
<th>ID</th>
|
| 692 |
+
<th>Customer</th>
|
| 693 |
+
<th>Date</th>
|
| 694 |
+
<th>Amount</th>
|
| 695 |
+
<th>Status</th>
|
| 696 |
+
<th>Action</th>
|
| 697 |
+
</tr>
|
| 698 |
+
</thead>
|
| 699 |
+
<tbody>
|
| 700 |
+
<tr>
|
| 701 |
+
<td>#1001</td>
|
| 702 |
+
<td>Acme Corp</td>
|
| 703 |
+
<td>2023-05-15</td>
|
| 704 |
+
<td>$1,250.00</td>
|
| 705 |
+
<td><span class="status status-completed">Completed</span></td>
|
| 706 |
+
<td><button class="chart-btn"><i class="fas fa-eye"></i></button></td>
|
| 707 |
+
</tr>
|
| 708 |
+
<tr>
|
| 709 |
+
<td>#1002</td>
|
| 710 |
+
<td>Globex Inc</td>
|
| 711 |
+
<td>2023-05-14</td>
|
| 712 |
+
<td>$890.50</td>
|
| 713 |
+
<td><span class="status status-pending">Pending</span></td>
|
| 714 |
+
<td><button class="chart-btn"><i class="fas fa-eye"></i></button></td>
|
| 715 |
+
</tr>
|
| 716 |
+
<tr>
|
| 717 |
+
<td>#1003</td>
|
| 718 |
+
<td>Soylent Corp</td>
|
| 719 |
+
<td>2023-05-13</td>
|
| 720 |
+
<td>$2,340.75</td>
|
| 721 |
+
<td><span class="status status-completed">Completed</span></td>
|
| 722 |
+
<td><button class="chart-btn"><i class="fas fa-eye"></i></button></td>
|
| 723 |
+
</tr>
|
| 724 |
+
<tr>
|
| 725 |
+
<td>#1004</td>
|
| 726 |
+
<td>Initech</td>
|
| 727 |
+
<td>2023-05-12</td>
|
| 728 |
+
<td>$450.00</td>
|
| 729 |
+
<td><span class="status status-cancelled">Cancelled</span></td>
|
| 730 |
+
<td><button class="chart-btn"><i class="fas fa-eye"></i></button></td>
|
| 731 |
+
</tr>
|
| 732 |
+
<tr>
|
| 733 |
+
<td>#1005</td>
|
| 734 |
+
<td>Umbrella Corp</td>
|
| 735 |
+
<td>2023-05-11</td>
|
| 736 |
+
<td>$1,820.30</td>
|
| 737 |
+
<td><span class="status status-completed">Completed</span></td>
|
| 738 |
+
<td><button class="chart-btn"><i class="fas fa-eye"></i></button></td>
|
| 739 |
+
</tr>
|
| 740 |
+
</tbody>
|
| 741 |
+
</table>
|
| 742 |
+
</div>
|
| 743 |
+
</section>
|
| 744 |
+
</main>
|
| 745 |
+
</div>
|
| 746 |
+
|
| 747 |
+
<!-- AnyCoder Branding -->
|
| 748 |
+
<div class="anycoder-brand">
|
| 749 |
+
<a href="https://huggingface.co/spaces/akhaliq/anycoder">Built with anycoder</a>
|
| 750 |
+
</div>
|
| 751 |
+
|
| 752 |
+
<!-- Chart.js Library -->
|
| 753 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
| 754 |
+
|
| 755 |
+
<script>
|
| 756 |
+
// Chart.js Implementation
|
| 757 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 758 |
+
// Revenue Chart
|
| 759 |
+
const revenueCtx = document.getElementById('revenueChartCanvas').getContext('2d');
|
| 760 |
+
const revenueChart = new Chart(revenueCtx, {
|
| 761 |
+
type: 'line',
|
| 762 |
+
data: {
|
| 763 |
+
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
| 764 |
+
datasets: [{
|
| 765 |
+
label: 'Revenue',
|
| 766 |
+
data: [30000, 35000, 40000, 45000, 50000, 55000, 60000, 65000, 70000, 75000, 80000, 85000],
|
| 767 |
+
borderColor: 'rgba(52, 152, 219, 1)',
|
| 768 |
+
backgroundColor: 'rgba(52, 152, 219, 0.1)',
|
| 769 |
+
tension: 0.4,
|
| 770 |
+
fill: true
|
| 771 |
+
}]
|
| 772 |
+
},
|
| 773 |
+
options: {
|
| 774 |
+
responsive: true,
|
| 775 |
+
maintainAspectRatio: false,
|
| 776 |
+
plugins: {
|
| 777 |
+
legend: {
|
| 778 |
+
display: false
|
| 779 |
+
}
|
| 780 |
+
},
|
| 781 |
+
scales: {
|
| 782 |
+
y: {
|
| 783 |
+
beginAtZero: true,
|
| 784 |
+
ticks: {
|
| 785 |
+
callback: function(value) {
|
| 786 |
+
return '$' + value.toLocaleString();
|
| 787 |
+
}
|
| 788 |
+
}
|
| 789 |
+
}
|
| 790 |
+
}
|
| 791 |
+
}
|
| 792 |
+
});
|
| 793 |
+
|
| 794 |
+
// Sales by Category Chart
|
| 795 |
+
const salesCtx = document.getElementById('salesChartCanvas').getContext('2d');
|
| 796 |
+
const salesChart = new Chart(salesCtx, {
|
| 797 |
+
type: 'doughnut',
|
| 798 |
+
data: {
|
| 799 |
+
labels: ['Electronics', 'Clothing', 'Home & Garden', 'Sports', 'Other'],
|
| 800 |
+
datasets: [{
|
| 801 |
+
data: [45, 25, 15, 10, 5],
|
| 802 |
+
backgroundColor: [
|
| 803 |
+
'rgba(52, 152, 219, 0.8)',
|
| 804 |
+
'rgba(46, 204, 113, 0.8)',
|
| 805 |
+
'rgba(155, 89, 182, 0.8)',
|
| 806 |
+
'rgba(241, 196, 15, 0.8)',
|
| 807 |
+
'rgba(231, 76, 60, 0.8)'
|
| 808 |
+
],
|
| 809 |
+
borderWidth: 1
|
| 810 |
+
}]
|
| 811 |
+
},
|
| 812 |
+
options: {
|
| 813 |
+
responsive: true,
|
| 814 |
+
maintainAspectRatio: false,
|
| 815 |
+
plugins: {
|
| 816 |
+
legend: {
|
| 817 |
+
position: 'right'
|
| 818 |
+
}
|
| 819 |
+
}
|
| 820 |
+
}
|
| 821 |
+
});
|
| 822 |
+
|
| 823 |
+
// Chart controls functionality
|
| 824 |
+
document.querySelectorAll('.chart-btn').forEach(btn => {
|
| 825 |
+
btn.addEventListener('click', function() {
|
| 826 |
+
// Remove active class from siblings
|
| 827 |
+
this.parentElement.querySelectorAll('.chart-btn').forEach(sibling => {
|
| 828 |
+
sibling.classList.remove('active');
|
| 829 |
+
});
|
| 830 |
+
// Add active class to clicked button
|
| 831 |
+
this.classList.add('active');
|
| 832 |
+
});
|
| 833 |
+
});
|
| 834 |
+
|
| 835 |
+
// Quick action cards functionality
|
| 836 |
+
document.querySelectorAll('.action-card').forEach(card => {
|
| 837 |
+
card.addEventListener('click', function() {
|
| 838 |
+
const action = this.querySelector('.action-title').textContent;
|
| 839 |
+
alert(`Action: ${action}\nThis is a demo - functionality would be implemented in a full ERP system.`);
|
| 840 |
+
});
|
| 841 |
+
});
|
| 842 |
+
|
| 843 |
+
// Table row click functionality
|
| 844 |
+
document.querySelectorAll('table tbody tr').forEach(row => {
|
| 845 |
+
row.addEventListener('click', function() {
|
| 846 |
+
const orderId = this.querySelector('td:first-child').textContent;
|
| 847 |
+
alert(`Viewing details for order ${orderId}\nThis is a demo - full order details would be shown.`);
|
| 848 |
+
});
|
| 849 |
+
});
|
| 850 |
+
});
|
| 851 |
+
</script>
|
| 852 |
+
</body>
|
| 853 |
+
</html>
|