Spaces:
Running
Running
File size: 3,787 Bytes
9c5ada7 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Dashboard | MediFlow 360°</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="components/sidebar.js"></script>
<script src="components/user-modal.js"></script>
<script src="components/test-category-modal.js"></script>
</head>
<body class="bg-gray-50">
<custom-sidebar active="admin"></custom-sidebar>
<div class="ml-64 p-8">
<div class="flex justify-between items-center mb-8">
<h1 class="text-2xl font-bold">Admin Dashboard</h1>
<button id="logoutBtn" class="btn-danger">Logout</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
<div class="dashboard-card">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-medium">Users</h3>
<button id="addUserBtn" class="btn-primary">Add User</button>
</div>
<div class="overflow-x-auto">
<table class="w-full" id="usersTable">
<thead>
<tr class="text-left border-b">
<th class="pb-2">Name</th>
<th class="pb-2">Role</th>
<th class="pb-2">Email</th>
<th class="pb-2">Actions</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
<div class="dashboard-card">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-medium">Test Categories</h3>
<button id="addTestCategoryBtn" class="btn-primary">Add Category</button>
</div>
<div class="overflow-x-auto">
<table class="w-full" id="testCategoriesTable">
<thead>
<tr class="text-left border-b">
<th class="pb-2">Name</th>
<th class="pb-2">Price</th>
<th class="pb-2">Actions</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
<div class="dashboard-card">
<h3 class="text-lg font-medium mb-4">Patient Records</h3>
<div class="overflow-x-auto">
<table class="w-full" id="patientRecordsTable">
<thead>
<tr class="text-left border-b">
<th class="pb-2">Patient</th>
<th class="pb-2">Age</th>
<th class="pb-2">Gender</th>
<th class="pb-2">Tests</th>
<th class="pb-2">Status</th>
<th class="pb-2">View</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
<user-modal></user-modal>
<test-category-modal></test-category-modal>
<script src="script.js"></script>
<script>
feather.replace();
document.getElementById('logoutBtn').addEventListener('click', logout);
</script>
</body>
</html> |