Spaces:
Running
Running
File size: 38,297 Bytes
9c207b1 | 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 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Worker Management</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
:root {
--primary: #6366f1;
--primary-dark: #4f46e5;
}
.sidebar {
transition: all 0.3s ease;
}
@media (max-width: 768px) {
.sidebar {
transform: translateX(-100%);
position: absolute;
z-index: 50;
height: 100vh;
}
.sidebar.active {
transform: translateX(0);
}
}
.chart-container {
height: 250px;
}
/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: #f1f1f1;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: #c7d2fe;
border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
background: var(--primary);
}
.ai-worker-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-white w-64 flex-shrink-0 border-r border-gray-200">
<div class="p-4 flex items-center justify-between border-b border-gray-200">
<div class="flex items-center space-x-2">
<div class="w-10 h-10 rounded-lg bg-indigo-500 flex items-center justify-center">
<i class="fas fa-robot text-white text-xl"></i>
</div>
<h1 class="text-xl font-bold text-indigo-600">AI Workforce</h1>
</div>
<button id="closeSidebar" class="lg:hidden text-gray-500">
<i class="fas fa-times"></i>
</button>
</div>
<nav class="p-4 space-y-1">
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg bg-indigo-50 text-indigo-700">
<i class="fas fa-tachometer-alt text-indigo-600"></i>
<span>Dashboard</span>
</a>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fas fa-robot text-gray-500"></i>
<span>AI Workers</span>
</a>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fas fa-users text-gray-500"></i>
<span>Clients</span>
</a>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fas fa-chart-line text-gray-500"></i>
<span>Analytics</span>
</a>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fas fa-cog text-gray-500"></i>
<span>Settings</span>
</a>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fas fa-question-circle text-gray-500"></i>
<span>Help & Support</span>
</a>
</nav>
<div class="absolute bottom-0 left-0 right-0 p-4 border-t border-gray-200">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center">
<i class="fas fa-user text-indigo-600"></i>
</div>
<div>
<p class="font-medium">Admin User</p>
<p class="text-xs text-gray-500">admin@aiworkforce.com</p>
</div>
</div>
<button class="mt-4 w-full py-2 px-4 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 text-sm flex items-center justify-center space-x-2">
<i class="fas fa-sign-out-alt"></i>
<span>Logout</span>
</button>
</div>
</div>
<!-- Main content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Header -->
<header class="bg-white shadow-sm z-10">
<div class="px-6 py-4 flex items-center justify-between">
<div class="flex items-center space-x-4">
<button id="toggleSidebar" class="lg:hidden text-gray-500">
<i class="fas fa-bars text-xl"></i>
</button>
<h2 class="text-xl font-semibold text-gray-800">Dashboard</h2>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<i class="fas fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
<input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
</div>
<button class="relative p-2 text-gray-500 hover:bg-gray-100 rounded-full">
<i class="fas fa-bell"></i>
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
</button>
</div>
</div>
</header>
<!-- Main content area -->
<main class="flex-1 overflow-y-auto custom-scrollbar p-6 bg-gray-50">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Active AI Workers</p>
<h3 class="text-2xl font-bold mt-1">147</h3>
<p class="text-xs text-green-500 mt-1"><i class="fas fa-arrow-up mr-1"></i> 12% from last month</p>
</div>
<div class="w-12 h-12 rounded-full bg-indigo-50 flex items-center justify-center">
<i class="fas fa-robot text-indigo-500 text-xl"></i>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Active Clients</p>
<h3 class="text-2xl font-bold mt-1">24</h3>
<p class="text-xs text-green-500 mt-1"><i class="fas fa-arrow-up mr-1"></i> 8% from last month</p>
</div>
<div class="w-12 h-12 rounded-full bg-green-50 flex items-center justify-center">
<i class="fas fa-users text-green-500 text-xl"></i>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Tasks Completed</p>
<h3 class="text-2xl font-bold mt-1">1,892</h3>
<p class="text-xs text-red-500 mt-1"><i class="fas fa-arrow-down mr-1"></i> 4% from last month</p>
</div>
<div class="w-12 h-12 rounded-full bg-blue-50 flex items-center justify-center">
<i class="fas fa-tasks text-blue-500 text-xl"></i>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Revenue</p>
<h3 class="text-2xl font-bold mt-1">$8,745</h3>
<p class="text-xs text-green-500 mt-1"><i class="fas fa-arrow-up mr-1"></i> 22% from last month</p>
</div>
<div class="w-12 h-12 rounded-full bg-purple-50 flex items-center justify-center">
<i class="fas fa-dollar-sign text-purple-500 text-xl"></i>
</div>
</div>
</div>
</div>
<!-- Charts and AI Workers -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
<!-- Performance Chart -->
<div class="bg-white rounded-xl shadow-sm p-6 lg:col-span-2">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg">Worker Performance Analytics</h3>
<select class="border border-gray-300 rounded-lg px-3 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option>Last 7 days</option>
<option>Last Month</option>
<option>Last Quarter</option>
</select>
</div>
<div class="chart-container">
<canvas id="performanceChart"></canvas>
</div>
</div>
<!-- Recent Activity -->
<div class="bg-white rounded-xl shadow-sm p-6 overflow-hidden">
<h3 class="font-semibold text-lg mb-4">Recent Activity</h3>
<div class="space-y-4 overflow-y-auto custom-scrollbar" style="max-height: 300px;">
<div class="flex items-start space-x-3">
<div class="flex-shrink-0 w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center">
<i class="fas fa-robot text-indigo-600"></i>
</div>
<div>
<p class="text-sm font-medium">New AI worker deployed</p>
<p class="text-xs text-gray-500">Customer Support Bot #142 for TechCorp</p>
<p class="text-xs text-gray-400 mt-1">10 minutes ago</p>
</div>
</div>
<div class="flex items-start space-x-3">
<div class="flex-shrink-0 w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center">
<i class="fas fa-tasks text-blue-600"></i>
</div>
<div>
<p class="text-sm font-medium">Task completed</p>
<p class="text-xs text-gray-500">Data analysis for FinBank completed</p>
<p class="text-xs text-gray-400 mt-1">1 hour ago</p>
</div>
</div>
<div class="flex items-start space-x-3">
<div class="flex-shrink-0 w-10 h-10 rounded-full bg-green-100 flex items-center justify-center">
<i class="fas fa-user-plus text-green-600"></i>
</div>
<div>
<p class="text-sm font-medium">New client</p>
<p class="text-xs text-gray-500">HealthPlus signed up for 3 AI workers</p>
<p class="text-xs text-gray-400 mt-1">3 hours ago</p>
</div>
</div>
<div class="flex items-start space-x-3">
<div class="flex-shrink-0 w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center">
<i class="fas fa-exclamation-triangle text-yellow-600"></i>
</div>
<div>
<p class="text-sm font-medium">Worker issue detected</p>
<p class="text-xs text-gray-500">Sales Bot #32 for RetailCo needs attention</p>
<p class="text-xs text-gray-400 mt-1">5 hours ago</p>
</div>
</div>
</div>
</div>
</div>
<!-- AI Workers Section -->
<div class="mb-6">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg">AI Workers by Client</h3>
<button class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-lg text-sm flex items-center space-x-2">
<i class="fas fa-plus"></i>
<span>Add New Worker</span>
</button>
</div>
<div class="bg-white rounded-xl shadow-sm overflow-hidden">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 p-6">
<!-- AI Worker Cards -->
<div class="ai-worker-card border border-gray-200 rounded-xl p-5 transition-all duration-300 hover:border-indigo-300">
<div class="flex items-start justify-between mb-4">
<div>
<h4 class="font-semibold">Customer Support Bot</h4>
<p class="text-sm text-gray-500">TechCorp Inc.</p>
</div>
<div class="w-10 h-10 rounded-lg bg-indigo-100 flex items-center justify-center">
<i class="fas fa-headset text-indigo-600"></i>
</div>
</div>
<div class="flex items-center justify-between text-xs mb-3">
<span class="px-2 py-1 bg-green-100 text-green-800 rounded-full">Active</span>
<span>Version 2.3.1</span>
</div>
<div class="flex items-center justify-between text-sm mb-4">
<div>
<p class="text-gray-500">Tasks Completed</p>
<p class="font-medium">124</p>
</div>
<div>
<p class="text-gray-500">Uptime</p>
<p class="font-medium">99.7%</p>
</div>
</div>
<div class="w-full bg-gray-200 rounded-full h-1.5 mb-3">
<div class="bg-indigo-600 h-1.5 rounded-full" style="width: 85%"></div>
</div>
<div class="flex justify-between text-xs text-gray-500 mb-3">
<span>CPU Usage</span>
<span>85%</span>
</div>
<div class="flex space-x-2">
<button class="flex-1 py-2 px-3 bg-indigo-50 text-indigo-700 rounded-lg text-sm hover:bg-indigo-100">
<i class="fas fa-cog mr-1"></i> Configure
</button>
<button class="flex-1 py-2 px-3 bg-gray-100 text-gray-700 rounded-lg text-sm hover:bg-gray-200">
<i class="fas fa-chart-line mr-1"></i> Stats
</button>
</div>
</div>
<div class="ai-worker-card border border-gray-200 rounded-xl p-5 transition-all duration-300 hover:border-indigo-300">
<div class="flex items-start justify-between mb-4">
<div>
<h4 class="font-semibold">Sales Analyzer</h4>
<p class="text-sm text-gray-500">RetailCo LLC</p>
</div>
<div class="w-10 h-10 rounded-lg bg-purple-100 flex items-center justify-center">
<i class="fas fa-chart-pie text-purple-600"></i>
</div>
</div>
<div class="flex items-center justify-between text-xs mb-3">
<span class="px-2 py-1 bg-yellow-100 text-yellow-800 rounded-full">Maintenance</span>
<span>Version 1.9.5</span>
</div>
<div class="flex items-center justify-between text-sm mb-4">
<div>
<p class="text-gray-500">Tasks Completed</p>
<p class="font-medium">312</p>
</div>
<div>
<p class="text-gray-500">Uptime</p>
<p class="font-medium">97.2%</p>
</div>
</div>
<div class="w-full bg-gray-200 rounded-full h-1.5 mb-3">
<div class="bg-indigo-600 h-1.5 rounded-full" style="width: 65%"></div>
</div>
<div class="flex justify-between text-xs text-gray-500 mb-3">
<span>CPU Usage</span>
<span>65%</span>
</div>
<div class="flex space-x-2">
<button class="flex-1 py-2 px-3 bg-indigo-50 text-indigo-700 rounded-lg text-sm hover:bg-indigo-100">
<i class="fas fa-cog mr-1"></i> Configure
</button>
<button class="flex-1 py-2 px-3 bg-gray-100 text-gray-700 rounded-lg text-sm hover:bg-gray-200">
<i class="fas fa-chart-line mr-1"></i> Stats
</button>
</div>
</div>
<div class="ai-worker-card border border-gray-200 rounded-xl p-5 transition-all duration-300 hover:border-indigo-300">
<div class="flex items-start justify-between mb-4">
<div>
<h4 class="font-semibold">Data Processor</h4>
<p class="text-sm text-gray-500">FinBank Ltd.</p>
</div>
<div class="w-10 h-10 rounded-lg bg-blue-100 flex items-center justify-center">
<i class="fas fa-database text-blue-600"></i>
</div>
</div>
<div class="flex items-center justify-between text-xs mb-3">
<span class="px-2 py-1 bg-green-100 text-green-800 rounded-full">Active</span>
<span>Version 3.1.0</span>
</div>
<div class="flex items-center justify-between text-sm mb-4">
<div>
<p class="text-gray-500">Tasks Completed</p>
<p class="font-medium">478</p>
</div>
<div>
<p class="text-gray-500">Uptime</p>
<p class="font-medium">99.9%</p>
</div>
</div>
<div class="w-full bg-gray-200 rounded-full h-1.5 mb-3">
<div class="bg-indigo-600 h-1.5 rounded-full" style="width: 72%"></div>
</div>
<div class="flex justify-between text-xs text-gray-500 mb-3">
<span>CPU Usage</span>
<span>72%</span>
</div>
<div class="flex space-x-2">
<button class="flex-1 py-2 px-3 bg-indigo-50 text-indigo-700 rounded-lg text-sm hover:bg-indigo-100">
<i class="fas fa-cog mr-1"></i> Configure
</button>
<button class="flex-1 py-2 px-3 bg-gray-100 text-gray-700 rounded-lg text-sm hover:bg-gray-200">
<i class="fas fa-chart-line mr-1"></i> Stats
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Clients Table -->
<div>
<h3 class="font-semibold text-lg mb-4">Client Overview</h3>
<div class="bg-white rounded-xl shadow-sm overflow-hidden">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Client</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Active Workers</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tasks</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Plan</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</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 rounded-full bg-purple-100 flex items-center justify-center">
<i class="fas fa-building text-purple-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">TechCorp Inc.</div>
<div class="text-sm text-gray-500">contact@techcorp.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">8</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">324</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-indigo-100 text-indigo-800">Enterprise</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-indigo-600 hover:text-indigo-900 mr-3">Manage</button>
<button class="text-gray-600 hover:text-gray-900">Billing</button>
</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 rounded-full bg-blue-100 flex items-center justify-center">
<i class="fas fa-store text-blue-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">RetailCo LLC</div>
<div class="text-sm text-gray-500">admin@retailco.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">5</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">187</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-purple-100 text-purple-800">Professional</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-indigo-600 hover:text-indigo-900 mr-3">Manage</button>
<button class="text-gray-600 hover:text-gray-900">Billing</button>
</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 rounded-full bg-green-100 flex items-center justify-center">
<i class="fas fa-university text-green-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">FinBank Ltd.</div>
<div class="text-sm text-gray-500">support@finbank.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">6</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">412</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-indigo-100 text-indigo-800">Enterprise</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-indigo-600 hover:text-indigo-900 mr-3">Manage</button>
<button class="text-gray-600 hover:text-gray-900">Billing</button>
</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 rounded-full bg-yellow-100 flex items-center justify-center">
<i class="fas fa-heartbeat text-yellow-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">HealthPlus</div>
<div class="text-sm text-gray-500">info@healthplus.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">3</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">76</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800">Basic</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-indigo-600 hover:text-indigo-900 mr-3">Manage</button>
<button class="text-gray-600 hover:text-gray-900">Billing</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</main>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
// Toggle sidebar on mobile
document.getElementById('toggleSidebar').addEventListener('click', function() {
document.querySelector('.sidebar').classList.toggle('active');
});
document.getElementById('closeSidebar').addEventListener('click', function() {
document.querySelector('.sidebar').classList.remove('active');
});
// Initialize chart
const ctx = document.getElementById('performanceChart').getContext('2d');
const performanceChart = new Chart(ctx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'],
datasets: [
{
label: 'Tasks Completed',
data: [120, 190, 170, 220, 180, 250, 300],
borderColor: '#6366f1',
backgroundColor: 'rgba(99, 102, 241, 0.1)',
tension: 0.3,
fill: true
},
{
label: 'AI Workers Deployed',
data: [30, 40, 45, 50, 55, 60, 65],
borderColor: '#10b981',
backgroundColor: 'rgba(16, 185, 129, 0.1)',
tension: 0.3,
fill: true
}
]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'top',
}
},
scales: {
y: {
beginAtZero: true
}
}
}
});
// Simulate some data updates
setInterval(() => {
// Get current data
let tasksData = performanceChart.data.datasets[0].data;
let workersData = performanceChart.data.datasets[1].data;
// Remove first element and add new random element
tasksData.shift();
tasksData.push(Math.floor(Math.random() * 100) + 200);
workersData.shift();
workersData.push(Math.floor(Math.random() * 10) + 60);
// Update chart
performanceChart.update();
}, 3000);
</script>
<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=ron2419/oppsys-test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |