Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>MediCare Pro - Doctor's Dashboard</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> | |
| /* Custom scrollbar */ | |
| ::-webkit-scrollbar { | |
| width: 8px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: #f1f1f1; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: #888; | |
| border-radius: 4px; | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: #555; | |
| } | |
| /* Animation for notifications */ | |
| @keyframes slideIn { | |
| from { transform: translateX(100%); } | |
| to { transform: translateX(0); } | |
| } | |
| .notification-slide { | |
| animation: slideIn 0.3s ease-out; | |
| } | |
| /* Pulse animation for urgent items */ | |
| @keyframes pulse { | |
| 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } | |
| 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } | |
| 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } | |
| } | |
| .pulse-urgent { | |
| animation: pulse 2s infinite; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100 font-sans"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div class="hidden md:flex md:flex-shrink-0"> | |
| <div class="flex flex-col w-64 bg-gradient-to-b from-blue-900 to-blue-800"> | |
| <div class="flex items-center h-16 px-4 border-b border-blue-700"> | |
| <div class="flex items-center"> | |
| <i class="fas fa-heartbeat text-white text-2xl mr-2"></i> | |
| <span class="text-white font-bold text-xl">MediCare Pro</span> | |
| </div> | |
| </div> | |
| <div class="flex flex-col flex-grow overflow-y-auto"> | |
| <div class="px-4 py-6"> | |
| <div class="flex items-center px-4 py-3 bg-blue-700 rounded-lg"> | |
| <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/65.jpg" alt="Doctor"> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-white">Dr. Sarah Johnson</p> | |
| <p class="text-xs font-medium text-blue-200">Cardiologist</p> | |
| </div> | |
| </div> | |
| </div> | |
| <nav class="flex-1 px-2 space-y-1"> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-white bg-blue-700 rounded-lg"> | |
| <i class="fas fa-tachometer-alt mr-3"></i> | |
| Dashboard | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:text-white hover:bg-blue-700 rounded-lg"> | |
| <i class="fas fa-calendar-check mr-3"></i> | |
| Appointments | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:text-white hover:bg-blue-700 rounded-lg"> | |
| <i class="fas fa-procedures mr-3"></i> | |
| Patients | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:text-white hover:bg-blue-700 rounded-lg"> | |
| <i class="fas fa-file-medical mr-3"></i> | |
| Medical Records | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:text-white hover:bg-blue-700 rounded-lg"> | |
| <i class="fas fa-prescription mr-3"></i> | |
| Prescriptions | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:text-white hover:bg-blue-700 rounded-lg"> | |
| <i class="fas fa-chart-line mr-3"></i> | |
| Analytics | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:text-white hover:bg-blue-700 rounded-lg"> | |
| <i class="fas fa-comment-medical mr-3"></i> | |
| Telemedicine | |
| </a> | |
| <div class="px-4 pt-4"> | |
| <p class="text-xs font-semibold text-blue-400 uppercase tracking-wider">Settings</p> | |
| </div> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:text-white hover:bg-blue-700 rounded-lg"> | |
| <i class="fas fa-cog mr-3"></i> | |
| Account Settings | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:text-white hover:bg-blue-700 rounded-lg"> | |
| <i class="fas fa-sign-out-alt mr-3"></i> | |
| Logout | |
| </a> | |
| </nav> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Mobile sidebar --> | |
| <div class="md:hidden fixed inset-0 z-40" id="mobile-sidebar" style="display: none;"> | |
| <div class="fixed inset-0 bg-gray-600 bg-opacity-75" id="sidebar-backdrop"></div> | |
| <div class="relative flex flex-col w-72 max-w-xs h-full bg-gradient-to-b from-blue-900 to-blue-800"> | |
| <div class="flex items-center h-16 px-4 border-b border-blue-700"> | |
| <div class="flex items-center"> | |
| <i class="fas fa-heartbeat text-white text-2xl mr-2"></i> | |
| <span class="text-white font-bold text-xl">MediCare Pro</span> | |
| </div> | |
| <button class="ml-auto p-1 rounded-md text-blue-200 hover:text-white focus:outline-none" id="close-sidebar"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="flex-1 overflow-y-auto"> | |
| <div class="px-4 py-6"> | |
| <div class="flex items-center px-4 py-3 bg-blue-700 rounded-lg"> | |
| <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/65.jpg" alt="Doctor"> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-white">Dr. Sarah Johnson</p> | |
| <p class="text-xs font-medium text-blue-200">Cardiologist</p> | |
| </div> | |
| </div> | |
| </div> | |
| <nav class="px-2 space-y-1"> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-white bg-blue-700 rounded-lg"> | |
| <i class="fas fa-tachometer-alt mr-3"></i> | |
| Dashboard | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:text-white hover:bg-blue-700 rounded-lg"> | |
| <i class="fas fa-calendar-check mr-3"></i> | |
| Appointments | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:text-white hover:bg-blue-700 rounded-lg"> | |
| <i class="fas fa-procedures mr-3"></i> | |
| Patients | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:text-white hover:bg-blue-700 rounded-lg"> | |
| <i class="fas fa-file-medical mr-3"></i> | |
| Medical Records | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:text-white hover:bg-blue-700 rounded-lg"> | |
| <i class="fas fa-prescription mr-3"></i> | |
| Prescriptions | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:text-white hover:bg-blue-700 rounded-lg"> | |
| <i class="fas fa-chart-line mr-3"></i> | |
| Analytics | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:text-white hover:bg-blue-700 rounded-lg"> | |
| <i class="fas fa-comment-medical mr-3"></i> | |
| Telemedicine | |
| </a> | |
| <div class="px-4 pt-4"> | |
| <p class="text-xs font-semibold text-blue-400 uppercase tracking-wider">Settings</p> | |
| </div> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:text-white hover:bg-blue-700 rounded-lg"> | |
| <i class="fas fa-cog mr-3"></i> | |
| Account Settings | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-blue-200 hover:text-white hover:bg-blue-700 rounded-lg"> | |
| <i class="fas fa-sign-out-alt mr-3"></i> | |
| Logout | |
| </a> | |
| </nav> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main content --> | |
| <div class="flex flex-col flex-1 overflow-hidden"> | |
| <!-- Top navigation --> | |
| <div class="flex items-center justify-between h-16 px-4 bg-white border-b border-gray-200"> | |
| <div class="flex items-center"> | |
| <button class="md:hidden text-gray-500 focus:outline-none" id="open-sidebar"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| <div class="relative ml-4 md:ml-0"> | |
| <div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"> | |
| <i class="fas fa-search text-gray-400"></i> | |
| </div> | |
| <input type="text" class="block w-full py-2 pl-10 pr-3 text-sm bg-gray-100 border border-transparent rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Search patients, records..."> | |
| </div> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button class="p-1 text-gray-400 rounded-full hover:text-gray-500 focus:outline-none"> | |
| <i class="fas fa-bell"></i> | |
| <span class="sr-only">View notifications</span> | |
| </button> | |
| <button class="p-1 text-gray-400 rounded-full hover:text-gray-500 focus:outline-none"> | |
| <i class="fas fa-envelope"></i> | |
| <span class="sr-only">View messages</span> | |
| </button> | |
| <div class="relative"> | |
| <button class="flex items-center text-sm text-gray-800 rounded-full focus:outline-none" id="user-menu"> | |
| <img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/women/65.jpg" alt="Doctor"> | |
| <span class="ml-2 hidden md:inline">Dr. Johnson</span> | |
| <i class="fas fa-chevron-down ml-1 text-gray-500 text-xs"></i> | |
| </button> | |
| <!-- Dropdown menu --> | |
| <div class="hidden absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50" id="user-dropdown"> | |
| <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Your Profile</a> | |
| <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a> | |
| <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Sign out</a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main content area --> | |
| <div class="flex-1 overflow-auto p-4"> | |
| <!-- Welcome banner --> | |
| <div class="bg-gradient-to-r from-blue-600 to-blue-800 rounded-xl shadow-md p-6 mb-6 text-white"> | |
| <div class="flex flex-col md:flex-row md:items-center md:justify-between"> | |
| <div> | |
| <h1 class="text-2xl font-bold">Welcome back, Dr. Johnson</h1> | |
| <p class="mt-2 opacity-90">You have 5 appointments today and 3 pending prescriptions to review.</p> | |
| </div> | |
| <button class="mt-4 md:mt-0 bg-white text-blue-600 hover:bg-blue-50 px-4 py-2 rounded-lg font-medium transition duration-150 ease-in-out"> | |
| View Schedule | |
| </button> | |
| </div> | |
| </div> | |
| <!-- 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 p-6"> | |
| <div class="flex items-center"> | |
| <div class="p-3 rounded-full bg-blue-100 text-blue-600"> | |
| <i class="fas fa-calendar-check text-lg"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-500">Today's Appointments</p> | |
| <p class="text-2xl font-semibold text-gray-800">12</p> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <span class="text-green-600 text-sm font-medium">+2 from yesterday</span> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow p-6"> | |
| <div class="flex items-center"> | |
| <div class="p-3 rounded-full bg-green-100 text-green-600"> | |
| <i class="fas fa-user-injured text-lg"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-500">Active Patients</p> | |
| <p class="text-2xl font-semibold text-gray-800">248</p> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <span class="text-green-600 text-sm font-medium">+5 this week</span> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow p-6"> | |
| <div class="flex items-center"> | |
| <div class="p-3 rounded-full bg-purple-100 text-purple-600"> | |
| <i class="fas fa-file-prescription text-lg"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-500">Prescriptions</p> | |
| <p class="text-2xl font-semibold text-gray-800">7</p> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <span class="text-red-600 text-sm font-medium">3 pending review</span> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow p-6"> | |
| <div class="flex items-center"> | |
| <div class="p-3 rounded-full bg-yellow-100 text-yellow-600"> | |
| <i class="fas fa-clock text-lg"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm font-medium text-gray-500">Avg. Wait Time</p> | |
| <p class="text-2xl font-semibold text-gray-800">8 min</p> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <span class="text-green-600 text-sm font-medium">-2 min from last week</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main content grid --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6"> | |
| <!-- Upcoming Appointments --> | |
| <div class="lg:col-span-2 bg-white rounded-xl shadow overflow-hidden"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <div class="flex items-center justify-between"> | |
| <h2 class="text-lg font-semibold text-gray-800">Today's Appointments</h2> | |
| <button class="text-blue-600 hover:text-blue-800 text-sm font-medium">View All</button> | |
| </div> | |
| </div> | |
| <div class="overflow-y-auto" style="max-height: 500px;"> | |
| <div class="divide-y divide-gray-200"> | |
| <!-- Appointment item --> | |
| <div class="p-4 hover:bg-gray-50 transition duration-150 ease-in-out"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0"> | |
| <div class="p-2 rounded-full bg-blue-100 text-blue-600"> | |
| <i class="fas fa-calendar-day"></i> | |
| </div> | |
| </div> | |
| <div class="ml-4 flex-1"> | |
| <div class="flex items-center justify-between"> | |
| <h3 class="text-sm font-medium text-gray-900">Michael Brown</h3> | |
| <span class="text-xs font-medium bg-blue-100 text-blue-800 px-2 py-1 rounded-full">New Patient</span> | |
| </div> | |
| <p class="text-sm text-gray-500">Follow-up for hypertension</p> | |
| <div class="mt-1 flex items-center text-sm text-gray-500"> | |
| <i class="far fa-clock mr-1.5"></i> | |
| <span>9:30 AM - 10:00 AM</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Appointment item --> | |
| <div class="p-4 hover:bg-gray-50 transition duration-150 ease-in-out"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0"> | |
| <div class="p-2 rounded-full bg-green-100 text-green-600"> | |
| <i class="fas fa-calendar-day"></i> | |
| </div> | |
| </div> | |
| <div class="ml-4 flex-1"> | |
| <div class="flex items-center justify-between"> | |
| <h3 class="text-sm font-medium text-gray-900">Emily Wilson</h3> | |
| <span class="text-xs font-medium bg-green-100 text-green-800 px-2 py-1 rounded-full">Routine</span> | |
| </div> | |
| <p class="text-sm text-gray-500">Annual physical examination</p> | |
| <div class="mt-1 flex items-center text-sm text-gray-500"> | |
| <i class="far fa-clock mr-1.5"></i> | |
| <span>10:15 AM - 10:45 AM</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Appointment item (urgent) --> | |
| <div class="p-4 hover:bg-gray-50 transition duration-150 ease-in-out pulse-urgent"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0"> | |
| <div class="p-2 rounded-full bg-red-100 text-red-600"> | |
| <i class="fas fa-calendar-day"></i> | |
| </div> | |
| </div> | |
| <div class="ml-4 flex-1"> | |
| <div class="flex items-center justify-between"> | |
| <h3 class="text-sm font-medium text-gray-900">Robert Taylor</h3> | |
| <span class="text-xs font-medium bg-red-100 text-red-800 px-2 py-1 rounded-full">Urgent</span> | |
| </div> | |
| <p class="text-sm text-gray-500">Chest pain evaluation</p> | |
| <div class="mt-1 flex items-center text-sm text-gray-500"> | |
| <i class="far fa-clock mr-1.5"></i> | |
| <span>11:00 AM - 11:30 AM</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Appointment item --> | |
| <div class="p-4 hover:bg-gray-50 transition duration-150 ease-in-out"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0"> | |
| <div class="p-2 rounded-full bg-purple-100 text-purple-600"> | |
| <i class="fas fa-calendar-day"></i> | |
| </div> | |
| </div> | |
| <div class="ml-4 flex-1"> | |
| <div class="flex items-center justify-between"> | |
| <h3 class="text-sm font-medium text-gray-900">Jennifer Lee</h3> | |
| <span class="text-xs font-medium bg-purple-100 text-purple-800 px-2 py-1 rounded-full">Follow-up</span> | |
| </div> | |
| <p class="text-sm text-gray-500">Diabetes management</p> | |
| <div class="mt-1 flex items-center text-sm text-gray-500"> | |
| <i class="far fa-clock mr-1.5"></i> | |
| <span>1:30 PM - 2:00 PM</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Appointment item --> | |
| <div class="p-4 hover:bg-gray-50 transition duration-150 ease-in-out"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0"> | |
| <div class="p-2 rounded-full bg-yellow-100 text-yellow-600"> | |
| <i class="fas fa-calendar-day"></i> | |
| </div> | |
| </div> | |
| <div class="ml-4 flex-1"> | |
| <div class="flex items-center justify-between"> | |
| <h3 class="text-sm font-medium text-gray-900">David Miller</h3> | |
| <span class="text-xs font-medium bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full">Consultation</span> | |
| </div> | |
| <p class="text-sm text-gray-500">Cardiology consultation</p> | |
| <div class="mt-1 flex items-center text-sm text-gray-500"> | |
| <i class="far fa-clock mr-1.5"></i> | |
| <span>2:15 PM - 3:00 PM</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Quick Actions & Recent Patients --> | |
| <div class="space-y-6"> | |
| <!-- Quick Actions --> | |
| <div class="bg-white rounded-xl shadow overflow-hidden"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h2 class="text-lg font-semibold text-gray-800">Quick Actions</h2> | |
| </div> | |
| <div class="p-4 grid grid-cols-2 gap-4"> | |
| <button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:bg-blue-50 hover:border-blue-200 transition duration-150 ease-in-out"> | |
| <div class="p-3 rounded-full bg-blue-100 text-blue-600 mb-2"> | |
| <i class="fas fa-user-plus"></i> | |
| </div> | |
| <span class="text-sm font-medium text-gray-700">New Patient</span> | |
| </button> | |
| <button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:bg-green-50 hover:border-green-200 transition duration-150 ease-in-out"> | |
| <div class="p-3 rounded-full bg-green-100 text-green-600 mb-2"> | |
| <i class="fas fa-prescription-bottle-alt"></i> | |
| </div> | |
| <span class="text-sm font-medium text-gray-700">New Prescription</span> | |
| </button> | |
| <button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:bg-purple-50 hover:border-purple-200 transition duration-150 ease-in-out"> | |
| <div class="p-3 rounded-full bg-purple-100 text-purple-600 mb-2"> | |
| <i class="fas fa-file-medical"></i> | |
| </div> | |
| <span class="text-sm font-medium text-gray-700">Add Record</span> | |
| </button> | |
| <button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:bg-yellow-50 hover:border-yellow-200 transition duration-150 ease-in-out"> | |
| <div class="p-3 rounded-full bg-yellow-100 text-yellow-600 mb-2"> | |
| <i class="fas fa-video"></i> | |
| </div> | |
| <span class="text-sm font-medium text-gray-700">Start Telemedicine</span> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Recent Patients --> | |
| <div class="bg-white rounded-xl shadow overflow-hidden"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <div class="flex items-center justify-between"> | |
| <h2 class="text-lg font-semibold text-gray-800">Recent Patients</h2> | |
| <button class="text-blue-600 hover:text-blue-800 text-sm font-medium">View All</button> | |
| </div> | |
| </div> | |
| <div class="divide-y divide-gray-200"> | |
| <!-- Patient item --> | |
| <div class="p-4 hover:bg-gray-50 transition duration-150 ease-in-out"> | |
| <div class="flex items-center"> | |
| <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt="Patient"> | |
| <div class="ml-4"> | |
| <h3 class="text-sm font-medium text-gray-900">James Wilson</h3> | |
| <div class="flex items-center text-xs text-gray-500 mt-1"> | |
| <span>Last visit: 2 days ago</span> | |
| <span class="mx-1">•</span> | |
| <span class="text-blue-600">Hypertension</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Patient item --> | |
| <div class="p-4 hover:bg-gray-50 transition duration-150 ease-in-out"> | |
| <div class="flex items-center"> | |
| <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="Patient"> | |
| <div class="ml-4"> | |
| <h3 class="text-sm font-medium text-gray-900">Lisa Thompson</h3> | |
| <div class="flex items-center text-xs text-gray-500 mt-1"> | |
| <span>Last visit: 1 week ago</span> | |
| <span class="mx-1">•</span> | |
| <span class="text-green-600">Diabetes</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Patient item --> | |
| <div class="p-4 hover:bg-gray-50 transition duration-150 ease-in-out"> | |
| <div class="flex items-center"> | |
| <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/75.jpg" alt="Patient"> | |
| <div class="ml-4"> | |
| <h3 class="text-sm font-medium text-gray-900">Mark Davis</h3> | |
| <div class="flex items-center text-xs text-gray-500 mt-1"> | |
| <span>Last visit: 3 weeks ago</span> | |
| <span class="mx-1">•</span> | |
| <span class="text-purple-600">Asthma</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Patient item --> | |
| <div class="p-4 hover:bg-gray-50 transition duration-150 ease-in-out"> | |
| <div class="flex items-center"> | |
| <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/68.jpg" alt="Patient"> | |
| <div class="ml-4"> | |
| <h3 class="text-sm font-medium text-gray-900">Sarah Miller</h3> | |
| <div class="flex items-center text-xs text-gray-500 mt-1"> | |
| <span>Last visit: 1 month ago</span> | |
| <span class="mx-1">•</span> | |
| <span class="text-red-600">High Cholesterol</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Charts and additional info --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mt-6"> | |
| <!-- Patient Visits Chart --> | |
| <div class="bg-white rounded-xl shadow p-6"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <h2 class="text-lg font-semibold text-gray-800">Patient Visits (Last 7 Days)</h2> | |
| <div class="relative"> | |
| <select class="appearance-none bg-gray-100 border border-gray-300 text-gray-700 py-1 px-3 pr-8 rounded-md leading-tight focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm"> | |
| <option>This Week</option> | |
| <option>Last Week</option> | |
| <option>This Month</option> | |
| </select> | |
| <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"> | |
| <i class="fas fa-chevron-down text-xs"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="h-64"> | |
| <canvas id="visitsChart"></canvas> | |
| </div> | |
| </div> | |
| <!-- Prescriptions Status --> | |
| <div class="bg-white rounded-xl shadow p-6"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <h2 class="text-lg font-semibold text-gray-800">Prescriptions Status</h2> | |
| <button class="text-blue-600 hover:text-blue-800 text-sm font-medium">View All</button> | |
| </div> | |
| <div class="space-y-4"> | |
| <!-- Prescription item --> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600"> | |
| <i class="fas fa-pills"></i> | |
| </div> | |
| <div class="ml-4 flex-1"> | |
| <div class="flex items-center justify-between"> | |
| <h3 class="text-sm font-medium text-gray-900">Atorvastatin 20mg</h3> | |
| <span class="text-xs font-medium bg-green-100 text-green-800 px-2 py-1 rounded-full">Completed</span> | |
| </div> | |
| <p class="text-sm text-gray-500 mt-1">For: James Wilson - High cholesterol</p> | |
| <div class="mt-1 flex items-center text-xs text-gray-500"> | |
| <i class="far fa-calendar-alt mr-1.5"></i> | |
| <span>Issued: May 15, 2023</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Prescription item --> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 h-10 w-10 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600"> | |
| <i class="fas fa-pills"></i> | |
| </div> | |
| <div class="ml-4 flex-1"> | |
| <div class="flex items-center justify-between"> | |
| <h3 class="text-sm font-medium text-gray-900">Metformin 500mg</h3> | |
| <span class="text-xs font-medium bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full">Pending</span> | |
| </div> | |
| <p class="text-sm text-gray-500 mt-1">For: Lisa Thompson - Type 2 Diabetes</p> | |
| <div class="mt-1 flex items-center text-xs text-gray-500"> | |
| <i class="far fa-calendar-alt mr-1.5"></i> | |
| <span>Issued: May 18, 2023</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Prescription item --> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 h-10 w-10 rounded-full bg-red-100 flex items-center justify-center text-red-600"> | |
| <i class="fas fa-pills"></i> | |
| </div> | |
| <div class="ml-4 flex-1"> | |
| <div class="flex items-center justify-between"> | |
| <h3 class="text-sm font-medium text-gray-900">Lisinopril 10mg</h3> | |
| <span class="text-xs font-medium bg-red-100 text-red-800 px-2 py-1 rounded-full">Overdue</span> | |
| </div> | |
| <p class="text-sm text-gray-500 mt-1">For: Robert Taylor - Hypertension</p> | |
| <div class="mt-1 flex items-center text-xs text-gray-500"> | |
| <i class="far fa-calendar-alt mr-1.5"></i> | |
| <span>Issued: May 10, 2023</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Notification panel --> | |
| <div class="fixed inset-0 flex items-end justify-end px-4 py-6 pointer-events-none z-50" id="notification-panel"> | |
| <!-- Notification example (would be dynamically added) --> | |
| <!-- | |
| <div class="max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto notification-slide mb-2"> | |
| <div class="rounded-lg shadow-xs overflow-hidden"> | |
| <div class="p-4"> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0"> | |
| <i class="fas fa-check-circle text-green-400"></i> | |
| </div> | |
| <div class="ml-3 w-0 flex-1 pt-0.5"> | |
| <p class="text-sm font-medium text-gray-900">Appointment confirmed</p> | |
| <p class="mt-1 text-sm text-gray-500">Michael Brown at 9:30 AM today</p> | |
| </div> | |
| <div class="ml-4 flex-shrink-0 flex"> | |
| <button class="inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| --> | |
| </div> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <script> | |
| // Mobile sidebar toggle | |
| document.getElementById('open-sidebar').addEventListener('click', function() { | |
| document.getElementById('mobile-sidebar').style.display = 'flex'; | |
| }); | |
| document.getElementById('close-sidebar').addEventListener('click', function() { | |
| document.getElementById('mobile-sidebar').style.display = 'none'; | |
| }); | |
| document.getElementById('sidebar-backdrop').addEventListener('click', function() { | |
| document.getElementById('mobile-sidebar').style.display = 'none'; | |
| }); | |
| // User dropdown toggle | |
| document.getElementById('user-menu').addEventListener('click', function() { | |
| const dropdown = document.getElementById('user-dropdown'); | |
| if (dropdown.classList.contains('hidden')) { | |
| dropdown.classList.remove('hidden'); | |
| } else { | |
| dropdown.classList.add('hidden'); | |
| } | |
| }); | |
| // Close dropdown when clicking outside | |
| document.addEventListener('click', function(event) { | |
| const dropdown = document.getElementById('user-dropdown'); | |
| const userMenu = document.getElementById('user-menu'); | |
| if (!userMenu.contains(event.target) && !dropdown.contains(event.target)) { | |
| dropdown.classList.add('hidden'); | |
| } | |
| }); | |
| // Sample notification | |
| function showNotification(title, message, type = 'info') { | |
| const icons = { | |
| 'success': 'fas fa-check-circle text-green-400', | |
| 'error': 'fas fa-exclamation-circle text-red-400', | |
| 'warning': 'fas fa-exclamation-triangle text-yellow-400', | |
| 'info': 'fas fa-info-circle text-blue-400' | |
| }; | |
| const notification = document.createElement('div'); | |
| notification.className = 'max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto notification-slide mb-2'; | |
| notification.innerHTML = ` | |
| <div class="rounded-lg shadow-xs overflow-hidden"> | |
| <div class="p-4"> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0"> | |
| <i class="${icons[type]}"></i> | |
| </div> | |
| <div class="ml-3 w-0 flex-1 pt-0.5"> | |
| <p class="text-sm font-medium text-gray-900">${title}</p> | |
| <p class="mt-1 text-sm text-gray-500">${message}</p> | |
| </div> | |
| <div class="ml-4 flex-shrink-0 flex"> | |
| <button class="inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150 close-notification"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| `; | |
| document.getElementById('notification-panel').appendChild(notification); | |
| // Auto remove after 5 seconds | |
| setTimeout(() => { | |
| notification.remove(); | |
| }, 5000); | |
| // Close button | |
| notification.querySelector('.close-notification').addEventListener('click', function() { | |
| notification.remove(); | |
| }); | |
| } | |
| // Sample notifications - would be triggered by actual events in a real app | |
| setTimeout(() => { | |
| showNotification('New Message', 'You have a new message from patient Lisa Thompson', 'info'); | |
| }, 1000); | |
| setTimeout(() => { | |
| showNotification('Appointment Reminder', 'Your next appointment starts in 15 minutes', 'warning'); | |
| }, 3000); | |
| // Initialize charts | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Patient Visits Chart | |
| const visitsCtx = document.getElementById('visitsChart').getContext('2d'); | |
| const visitsChart = new Chart(visitsCtx, { | |
| type: 'bar', | |
| data: { | |
| labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], | |
| datasets: [{ | |
| label: 'Patient Visits', | |
| data: [12, 19, 8, 15, 22, 5, 3], | |
| backgroundColor: '#3B82F6', | |
| borderColor: '#3B82F6', | |
| borderWidth: 1 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| scales: { | |
| y: { | |
| beginAtZero: true, | |
| grid: { | |
| drawBorder: false | |
| } | |
| }, | |
| x: { | |
| grid: { | |
| display: false | |
| } | |
| } | |
| }, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| } | |
| } | |
| }); | |
| }); | |
| </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=thors1/doctor-admin" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |