File size: 44,008 Bytes
8c5f3c2 33d985e | 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 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MediTrack - Medical Products CRM</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<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>
<script src="https://cdn.jsdelivr.net/npm/sortablejs@1.14.0/Sortable.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
<style>
.sidebar {
transition: all 0.3s;
}
.sidebar-collapsed {
width: 70px;
}
.sidebar-expanded {
width: 250px;
}
.main-content {
transition: margin-left 0.3s;
}
.action-item:hover {
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.partner-card:hover {
transform: scale(1.02);
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.highlight-warning {
animation: pulse-warning 2s infinite;
}
@keyframes pulse-warning {
0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.highlight-danger {
animation: pulse-danger 2s infinite;
}
@keyframes pulse-danger {
0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div id="sidebar" class="sidebar sidebar-expanded bg-indigo-800 text-white flex flex-col">
<div class="p-4 flex items-center justify-between border-b border-indigo-700">
<h1 class="text-xl font-bold whitespace-nowrap">MediTrack</h1>
<button id="toggleSidebar" class="text-white focus:outline-none">
<i data-feather="chevron-left"></i>
</button>
</div>
<nav class="flex-1 overflow-y-auto">
<ul class="py-2">
<li>
<a href="#" class="flex items-center px-4 py-3 text-white bg-indigo-900">
<i data-feather="home" class="mr-3"></i>
<span class="sidebar-text">Dashboard</span>
</a>
</li>
<li>
<a href="#partners" class="flex items-center px-4 py-3 text-white hover:bg-indigo-700">
<i data-feather="users" class="mr-3"></i>
<span class="sidebar-text">Partners</span>
</a>
</li>
<li>
<a href="#projects" class="flex items-center px-4 py-3 text-white hover:bg-indigo-700">
<i data-feather="briefcase" class="mr-3"></i>
<span class="sidebar-text">Projects</span>
</a>
</li>
<li>
<a href="#smart-task" class="flex items-center px-4 py-3 text-white hover:bg-indigo-700">
<i data-feather="message-square" class="mr-3"></i>
<span class="sidebar-text">Smart Task</span>
</a>
</li>
<li>
<a href="#calendar" class="flex items-center px-4 py-3 text-white hover:bg-indigo-700">
<i data-feather="calendar" class="mr-3"></i>
<span class="sidebar-text">Calendar</span>
</a>
</li>
<li>
<a href="#portfolio" class="flex items-center px-4 py-3 text-white hover:bg-indigo-700">
<i data-feather="package" class="mr-3"></i>
<span class="sidebar-text">Product Portfolio</span>
</a>
</li>
</ul>
</nav>
<div class="p-4 border-t border-indigo-700">
<div class="flex items-center">
<img src="http://static.photos/people/200x200/1" alt="User" class="w-8 h-8 rounded-full">
<div class="ml-3 sidebar-text">
<p class="text-sm font-medium">John Doe</p>
<p class="text-xs text-indigo-300">Admin</p>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="main-content flex-1 overflow-y-auto">
<!-- Top Navigation -->
<header class="bg-white shadow-sm">
<div class="px-4 py-4 flex justify-between items-center">
<h2 class="text-xl font-semibold text-gray-800">Dashboard</h2>
<div class="flex items-center space-x-4">
<div class="relative">
<input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
<i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i>
</div>
<button class="p-2 text-gray-600 hover:text-indigo-600">
<i data-feather="bell"></i>
</button>
</div>
</div>
</header>
<!-- Dashboard Content -->
<main class="p-6">
<!-- Today's Actions -->
<div class="mb-8">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold text-gray-800">Today's Actions</h3>
<button class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 flex items-center">
<i data-feather="plus" class="mr-2"></i> Add Action
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
<!-- Action Item 1 -->
<div class="bg-white rounded-lg shadow p-4 action-item border-l-4 border-indigo-500">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium text-gray-800">Follow-up with PharmaCorp</h4>
<p class="text-sm text-gray-600">Discuss product licensing terms</p>
</div>
<span class="bg-indigo-100 text-indigo-800 text-xs px-2 py-1 rounded">Today</span>
</div>
<div class="mt-3 flex justify-between items-center">
<span class="text-xs text-gray-500">Project: Product X Launch</span>
<div class="flex space-x-2">
<button class="p-1 text-green-500 hover:text-green-700">
<i data-feather="check-circle"></i>
</button>
<button class="p-1 text-blue-500 hover:text-blue-700">
<i data-feather="edit"></i>
</button>
<button class="p-1 text-red-500 hover:text-red-700">
<i data-feather="trash-2"></i>
</button>
</div>
</div>
</div>
<!-- Action Item 2 -->
<div class="bg-white rounded-lg shadow p-4 action-item border-l-4 border-red-500">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium text-gray-800">Send documents to HealthPlus</h4>
<p class="text-sm text-gray-600">Product specifications and pricing</p>
</div>
<span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded">Yesterday</span>
</div>
<div class="mt-3 flex justify-between items-center">
<span class="text-xs text-gray-500">Project: Market Expansion</span>
<div class="flex space-x-2">
<button class="p-1 text-green-500 hover:text-green-700">
<i data-feather="check-circle"></i>
</button>
<button class="p-1 text-blue-500 hover:text-blue-700">
<i data-feather="edit"></i>
</button>
<button class="p-1 text-red-500 hover:text-red-700">
<i data-feather="trash-2"></i>
</button>
</div>
</div>
</div>
<!-- Action Item 3 -->
<div class="bg-white rounded-lg shadow p-4 action-item border-l-4 border-yellow-500 highlight-warning">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium text-gray-800">Review forecast with MedLife</h4>
<p class="text-sm text-gray-600">Missing forecast data</p>
</div>
<span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded">Today</span>
</div>
<div class="mt-3 flex justify-between items-center">
<span class="text-xs text-gray-500">Project: Annual Contract</span>
<div class="flex space-x-2">
<button class="p-1 text-green-500 hover:text-green-700">
<i data-feather="check-circle"></i>
</button>
<button class="p-1 text-blue-500 hover:text-blue-700">
<i data-feather="edit"></i>
</button>
<button class="p-1 text-red-500 hover:text-red-700">
<i data-feather="trash-2"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Projects Overview -->
<div class="mb-8">
<h3 class="text-lg font-semibold text-gray-800 mb-4">Projects Overview</h3>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
<div class="bg-white rounded-lg shadow p-4">
<div class="flex justify-between">
<div>
<p class="text-sm text-gray-500">Total Projects</p>
<h4 class="text-2xl font-bold text-gray-800">24</h4>
</div>
<div class="bg-indigo-100 p-3 rounded-full">
<i data-feather="briefcase" class="text-indigo-600"></i>
</div>
</div>
<div class="mt-2">
<div class="h-2 bg-gray-200 rounded-full">
<div class="h-2 bg-indigo-600 rounded-full" style="width: 75%"></div>
</div>
<p class="text-xs text-gray-500 mt-1">15 active projects</p>
</div>
</div>
<div class="bg-white rounded-lg shadow p-4">
<div class="flex justify-between">
<div>
<p class="text-sm text-gray-500">Pending Actions</p>
<h4 class="text-2xl font-bold text-gray-800">18</h4>
</div>
<div class="bg-yellow-100 p-3 rounded-full">
<i data-feather="alert-circle" class="text-yellow-600"></i>
</div>
</div>
<div class="mt-2">
<div class="h-2 bg-gray-200 rounded-full">
<div class="h-2 bg-yellow-500 rounded-full" style="width: 30%"></div>
</div>
<p class="text-xs text-gray-500 mt-1">5 overdue</p>
</div>
</div>
<div class="bg-white rounded-lg shadow p-4">
<div class="flex justify-between">
<div>
<p class="text-sm text-gray-500">Partners</p>
<h4 class="text-2xl font-bold text-gray-800">42</h4>
</div>
<div class="bg-green-100 p-3 rounded-full">
<i data-feather="users" class="text-green-600"></i>
</div>
</div>
<div class="mt-2">
<div class="h-2 bg-gray-200 rounded-full">
<div class="h-2 bg-green-500 rounded-full" style="width: 60%"></div>
</div>
<p class="text-xs text-gray-500 mt-1">25 active partners</p>
</div>
</div>
<div class="bg-white rounded-lg shadow p-4">
<div class="flex justify-between">
<div>
<p class="text-sm text-gray-500">Products</p>
<h4 class="text-2xl font-bold text-gray-800">156</h4>
</div>
<div class="bg-purple-100 p-3 rounded-full">
<i data-feather="package" class="text-purple-600"></i>
</div>
</div>
<div class="mt-2">
<div class="h-2 bg-gray-200 rounded-full">
<div class="h-2 bg-purple-500 rounded-full" style="width: 85%"></div>
</div>
<p class="text-xs text-gray-500 mt-1">132 approved</p>
</div>
</div>
</div>
</div>
<!-- Recent Partners -->
<div class="mb-8">
<h3 class="text-lg font-semibold text-gray-800 mb-4">Recent Partners</h3>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
<!-- Partner 1 -->
<div class="bg-white rounded-lg shadow overflow-hidden partner-card">
<div class="p-4">
<div class="flex items-center">
<img src="http://static.photos/office/200x200/1" alt="Partner Logo" class="w-12 h-12 rounded-full object-cover">
<div class="ml-4">
<h4 class="font-medium text-gray-800">PharmaCorp</h4>
<p class="text-sm text-gray-600">Germany</p>
</div>
</div>
<div class="mt-4">
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-500">Projects:</span>
<span class="font-medium">3</span>
</div>
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-500">Forecast Y1:</span>
<span class="font-medium">€1.2M</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-500">Business Model:</span>
<span class="font-medium text-indigo-600">Out-licensing</span>
</div>
</div>
</div>
<div class="bg-gray-50 px-4 py-3 flex justify-between items-center">
<span class="text-xs text-gray-500">Last contact: 2 days ago</span>
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
View Details
</button>
</div>
</div>
<!-- Partner 2 -->
<div class="bg-white rounded-lg shadow overflow-hidden partner-card highlight-warning">
<div class="p-4">
<div class="flex items-center">
<img src="http://static.photos/office/200x200/2" alt="Partner Logo" class="w-12 h-12 rounded-full object-cover">
<div class="ml-4">
<h4 class="font-medium text-gray-800">HealthPlus</h4>
<p class="text-sm text-gray-600">France</p>
</div>
</div>
<div class="mt-4">
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-500">Projects:</span>
<span class="font-medium">2</span>
</div>
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-500">Forecast Y1:</span>
<span class="font-medium text-red-500">Missing</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-500">Business Model:</span>
<span class="font-medium text-indigo-600">Distribution</span>
</div>
</div>
</div>
<div class="bg-gray-50 px-4 py-3 flex justify-between items-center">
<span class="text-xs text-gray-500">Last contact: 1 week ago</span>
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
View Details
</button>
</div>
</div>
<!-- Partner 3 -->
<div class="bg-white rounded-lg shadow overflow-hidden partner-card highlight-danger">
<div class="p-4">
<div class="flex items-center">
<img src="http://static.photos/office/200x200/3" alt="Partner Logo" class="w-12 h-12 rounded-full object-cover">
<div class="ml-4">
<h4 class="font-medium text-gray-800">MedLife</h4>
<p class="text-sm text-gray-600">Spain</p>
</div>
</div>
<div class="mt-4">
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-500">Projects:</span>
<span class="font-medium">1</span>
</div>
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-500">Forecast Y1:</span>
<span class="font-medium">€750K</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-500">Business Model:</span>
<span class="font-medium text-red-500">Missing</span>
</div>
</div>
</div>
<div class="bg-gray-50 px-4 py-3 flex justify-between items-center">
<span class="text-xs text-gray-500">Last contact: 3 weeks ago</span>
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
View Details
</button>
</div>
</div>
</div>
</div>
<!-- Product Portfolio Highlights -->
<div>
<h3 class="text-lg font-semibold text-gray-800 mb-4">Product Portfolio Highlights</h3>
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="p-4 border-b">
<div class="flex justify-between items-center">
<div class="flex space-x-4">
<button class="px-4 py-2 bg-indigo-600 text-white rounded-lg">All</button>
<button class="px-4 py-2 bg-white border rounded-lg hover:bg-gray-50">Approved</button>
<button class="px-4 py-2 bg-white border rounded-lg hover:bg-gray-50">Pending</button>
</div>
<button class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 flex items-center">
<i data-feather="upload" class="mr-2"></i> Import from Excel
</button>
</div>
</div>
<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">Brand Name</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Active Substance</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Pharmaceutical Form</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">RX/OTC</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-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="http://static.photos/medical/200x200/1" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">MediFast</div>
<div class="text-sm text-gray-500">Class: Analgesic</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Ibuprofen</div>
<div class="text-sm text-gray-500">ATC: M01AE01</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="text-sm text-gray-900">Tablet</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">OTC</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-indigo-100 text-indigo-800">Approved</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">Edit</button>
<button class="text-gray-600 hover:text-gray-900">View</button>
</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="http://static.photos/medical/200x200/2" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">CardioSafe</div>
<div class="text-sm text-gray-500">Class: Cardiovascular</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Atorvastatin</div>
<div class="text-sm text-gray-500">ATC: C10AA05</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="text-sm text-gray-900">Capsule</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-red-100 text-red-800">RX</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">Edit</button>
<button class="text-gray-600 hover:text-gray-900">View</button>
</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="http://static.photos/medical/200x200/3" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Respira</div>
<div class="text-sm text-gray-500">Class: Respiratory</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Salbutamol</div>
<div class="text-sm text-gray-500">ATC: R03AC02</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="text-sm text-gray-900">Inhaler</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-red-100 text-red-800">RX</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-indigo-100 text-indigo-800">Approved</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">Edit</button>
<button class="text-gray-600 hover:text-gray-900">View</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="bg-gray-50 px-6 py-3 flex items-center justify-between border-t border-gray-200">
<div class="flex-1 flex justify-between sm:hidden">
<a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"> Previous </a>
<a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"> Next </a>
</div>
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
<div>
<p class="text-sm text-gray-700"> Showing <span class="font-medium">1</span> to <span class="font-medium">3</span> of <span class="font-medium">156</span> results </p>
</div>
<div>
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"> <span class="sr-only">Previous</span> <i data-feather="chevron-left" class="h-5 w-5"></i> </a>
<a href="#" aria-current="page" class="z-10 bg-indigo-50 border-indigo-500 text-indigo-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 1 </a>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 2 </a>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 3 </a>
<span class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700"> ... </span>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 8 </a>
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"> <span class="sr-only">Next</span> <i data-feather="chevron-right" class="h-5 w-5"></i> </a>
</nav>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<!-- Add Action Modal -->
<div id="actionModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-lg shadow-xl w-full max-w-md">
<div class="p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold text-gray-800">Add New Action</h3>
<button onclick="closeModal('actionModal')" class="text-gray-500 hover:text-gray-700">
<i data-feather="x"></i>
</button>
</div>
<form>
<div class="mb-4">
<label class="block text-gray-700 text-sm font-medium mb-2" for="action-title">Action Title</label>
<input id="action-title" type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="mb-4">
<label class="block text-gray-700 text-sm font-medium mb-2" for="action-project">Project</label>
<select id="action-project" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option value="">Select Project</option>
<option value="1">Product X Launch</option>
<option value="2">Market Expansion</option>
<option value="3">Annual Contract</option>
</select>
</div>
<div class="mb-4">
<label class="block text-gray-700 text-sm font-medium mb-2" for="action-date">Date & Time</label>
<input id="action-date" type="datetime-local" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="mb-4">
<label class="block text-gray-700 text-sm font-medium mb-2" for="action-notes">Notes</label>
<textarea id="action-notes" rows="3" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500"></textarea>
</div>
<div class="flex justify-end space-x-3">
<button type="button" onclick="closeModal('actionModal')" class="px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50">Cancel</button>
<button type="submit" class="px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700">Save Action</button>
</div>
</form>
</div>
</div>
</div>
<!-- Smart Task Modal -->
<div id="smartTaskModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-lg shadow-xl w-full max-w-2xl">
<div class="p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold text-gray-800">Smart Task</h3>
<button onclick="closeModal('smartTaskModal')" class="text-gray-500 hover:text-gray-700">
<i data-feather="x"></i>
</button>
</div>
<div class="mb-6">
<p class="text-gray-600 mb-2">Hey, what are you up to? Write a short summary of a project/partner you discussed.</p>
<textarea id="smart-task-input" rows="4" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" placeholder="E.g., Discussed pricing with PharmaCorp for Product X launch in Germany..."></textarea>
</div>
<div class="bg-gray-50 p-4 rounded-lg mb-6">
<h4 class="font-medium text-gray-800 mb-2">Detected Information:</h4>
<div class="grid grid-cols-2 gap-4">
<div>
<p class="text-sm text-gray-600">Partner:</p>
<p class="font-medium">PharmaCorp</p>
</div>
<div>
<p class="text-sm text-gray-600">Project:</p>
<p class="font-medium">Product X Launch</p>
</div>
<div>
<p class="text-sm text-gray-600">Products:</p>
<p class="font-medium">MediFast, CardioSafe</p>
</div>
<div>
<p class="text-sm text-gray-600">Action Items:</p>
<p class="font-medium">Follow-up on pricing</p>
</div>
</div>
</div>
<div class="flex justify-between">
<button class="px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 flex items-center">
<i data-feather="plus" class="mr-2"></i> Create New Project
</button>
<div class="flex space-x-3">
<button onclick="closeModal('smartTaskModal')" class="px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50">Cancel</button>
<button class="px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700">Save Task</button>
</div>
</div>
</div>
</div>
</div>
<script>
// Initialize AOS
AOS.init();
// Initialize Feather Icons
feather.replace();
// Toggle sidebar
document.getElementById('toggleSidebar').addEventListener('click', function() {
const sidebar = document.getElementById('sidebar');
const sidebarTexts = document.querySelectorAll('.sidebar-text');
sidebar.classList.toggle('sidebar-collapsed');
sidebar.classList.toggle('sidebar-expanded');
sidebarTexts.forEach(text => {
text.classList.toggle('hidden');
});
// Change icon based on state
const icon = this.querySelector('svg');
if (sidebar.classList.contains('sidebar-collapsed')) {
icon.setAttribute('data-feather', 'chevron-right');
} else {
icon.setAttribute('data-feather', 'chevron-left');
}
feather.replace();
});
// Modal functions
function openModal(modalId) {
document.getElementById(modalId).classList.remove('hidden');
}
function closeModal(modalId) {
document.getElementById(modalId).classList.add('hidden');
}
// Initialize date pickers
flatpickr("#action-date", {
enableTime: true,
dateFormat: "Y-m-d H:i",
});
</script>
</body>
</html>
|