https://mgx.dev/chat/3bf8fb2f4e8741fc85fad457effd3686 - Follow Up Deployment
Browse files- index.html +196 -7
index.html
CHANGED
|
@@ -22,6 +22,23 @@
|
|
| 22 |
}
|
| 23 |
}
|
| 24 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
</script>
|
| 26 |
<style>
|
| 27 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
@@ -162,27 +179,27 @@
|
|
| 162 |
|
| 163 |
<!-- Navigation -->
|
| 164 |
<nav class="px-2 md:px-4">
|
| 165 |
-
<a href="
|
| 166 |
<i class="fas fa-tachometer-alt text-lg"></i>
|
| 167 |
<span class="ml-4 hidden md:block">Dashboard</span>
|
| 168 |
</a>
|
| 169 |
-
<a href="
|
| 170 |
<i class="fas fa-tasks text-lg"></i>
|
| 171 |
<span class="ml-4 hidden md:block">Tasks</span>
|
| 172 |
</a>
|
| 173 |
-
<a href="
|
| 174 |
<i class="fas fa-hard-hat text-lg"></i>
|
| 175 |
<span class="ml-4 hidden md:block">Machines</span>
|
| 176 |
</a>
|
| 177 |
-
<a href="
|
| 178 |
<i class="fas fa-warehouse text-lg"></i>
|
| 179 |
<span class="ml-4 hidden md:block">Inventory</span>
|
| 180 |
</a>
|
| 181 |
-
<a href="
|
| 182 |
<i class="fas fa-chart-line text-lg"></i>
|
| 183 |
<span class="ml-4 hidden md:block">Analytics</span>
|
| 184 |
</a>
|
| 185 |
-
<a href="
|
| 186 |
<i class="fas fa-users-cog text-lg"></i>
|
| 187 |
<span class="ml-4 hidden md:block">Admin</span>
|
| 188 |
</a>
|
|
@@ -856,6 +873,178 @@
|
|
| 856 |
</div>
|
| 857 |
</div>
|
| 858 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 859 |
</main>
|
| 860 |
</div>
|
| 861 |
|
|
@@ -1038,7 +1227,7 @@
|
|
| 1038 |
</div>
|
| 1039 |
<label class="relative inline-flex items-center cursor-pointer">
|
| 1040 |
<input type="checkbox" class="sr-only peer" checked>
|
| 1041 |
-
<div class="
|
| 1042 |
</label>
|
| 1043 |
</div>
|
| 1044 |
</div>
|
|
|
|
| 22 |
}
|
| 23 |
}
|
| 24 |
}
|
| 25 |
+
|
| 26 |
+
// Section navigation
|
| 27 |
+
const pages = document.querySelectorAll('.dashboard-page');
|
| 28 |
+
const navBtns = document.querySelectorAll('.nav-link');
|
| 29 |
+
|
| 30 |
+
function showSection(id){
|
| 31 |
+
pages.forEach(p => p.classList.add('hidden'));
|
| 32 |
+
document.getElementById(id)?.classList.remove('hidden');
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
navBtns.forEach(btn => {
|
| 36 |
+
btn.addEventListener('click', e => {
|
| 37 |
+
e.preventDefault();
|
| 38 |
+
const section = btn.dataset.section;
|
| 39 |
+
showSection(section + 'Section');
|
| 40 |
+
});
|
| 41 |
+
});
|
| 42 |
</script>
|
| 43 |
<style>
|
| 44 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
|
|
| 179 |
|
| 180 |
<!-- Navigation -->
|
| 181 |
<nav class="px-2 md:px-4">
|
| 182 |
+
<a href="#" class="nav-link flex items-center py-3 px-4 rounded-xl bg-primary-100 dark:bg-gray-700 text-primary dark:text-white mb-2" data-section="dashboard">
|
| 183 |
<i class="fas fa-tachometer-alt text-lg"></i>
|
| 184 |
<span class="ml-4 hidden md:block">Dashboard</span>
|
| 185 |
</a>
|
| 186 |
+
<a href="javascript:void(0)" class="nav-link flex items-center py-3 px-4 rounded-xl text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 mb-2" data-section="tasks">
|
| 187 |
<i class="fas fa-tasks text-lg"></i>
|
| 188 |
<span class="ml-4 hidden md:block">Tasks</span>
|
| 189 |
</a>
|
| 190 |
+
<a href="javascript:void(0)" class="nav-link flex items-center py-3 px-4 rounded-xl text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 mb-2" data-section="machines">
|
| 191 |
<i class="fas fa-hard-hat text-lg"></i>
|
| 192 |
<span class="ml-4 hidden md:block">Machines</span>
|
| 193 |
</a>
|
| 194 |
+
<a href="javascript:void(0)" class="nav-link flex items-center py-3 px-4 rounded-xl text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 mb-2" data-section="inventory">
|
| 195 |
<i class="fas fa-warehouse text-lg"></i>
|
| 196 |
<span class="ml-4 hidden md:block">Inventory</span>
|
| 197 |
</a>
|
| 198 |
+
<a href="javascript:void(0)" class="nav-link flex items-center py-3 px-4 rounded-xl text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 mb-2" data-section="analytics">
|
| 199 |
<i class="fas fa-chart-line text-lg"></i>
|
| 200 |
<span class="ml-4 hidden md:block">Analytics</span>
|
| 201 |
</a>
|
| 202 |
+
<a href="javascript:void(0)" class="nav-link flex items-center py-3 px-4 rounded-xl text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-700 mb-2" data-section="admin">
|
| 203 |
<i class="fas fa-users-cog text-lg"></i>
|
| 204 |
<span class="ml-4 hidden md:block">Admin</span>
|
| 205 |
</a>
|
|
|
|
| 873 |
</div>
|
| 874 |
</div>
|
| 875 |
</div>
|
| 876 |
+
<!-- ================== SECTIONS ================== -->
|
| 877 |
+
<!-- Machines Section -->
|
| 878 |
+
<section id="machinesSection" class="dashboard-page hidden">
|
| 879 |
+
<div class="flex justify-between items-center mb-6">
|
| 880 |
+
<h1 class="text-2xl md:text-3xl font-bold dark:text-white">Machines</h1>
|
| 881 |
+
<button id="addMachineBtn" class="flex items-center bg-primary text-white px-4 py-2 rounded-lg hover:bg-primary-600 transition">
|
| 882 |
+
<i class="fas fa-plus mr-2"></i> Add Machine
|
| 883 |
+
</button>
|
| 884 |
+
</div>
|
| 885 |
+
|
| 886 |
+
<!-- quick stats -->
|
| 887 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
|
| 888 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 889 |
+
<h3 class="text-gray-500 dark:text-gray-400 mb-1">Total Machines</h3>
|
| 890 |
+
<p class="text-3xl font-bold dark:text-white">42</p>
|
| 891 |
+
</div>
|
| 892 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 893 |
+
<h3 class="text-gray-500 dark:text-gray-400 mb-1">Operational</h3>
|
| 894 |
+
<p class="text-3xl font-bold dark:text-white">38</p>
|
| 895 |
+
</div>
|
| 896 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 897 |
+
<h3 class="text-gray-500 dark:text-gray-400 mb-1">Under Maintenance</h3>
|
| 898 |
+
<p class="text-3xl font-bold dark:text-white">4</p>
|
| 899 |
+
</div>
|
| 900 |
+
</div>
|
| 901 |
+
|
| 902 |
+
<!-- placeholder for table or cards -->
|
| 903 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 904 |
+
<p class="text-center text-gray-500 dark:text-gray-400 py-10">Machine list / table will be rendered here.</p>
|
| 905 |
+
</div>
|
| 906 |
+
</section>
|
| 907 |
+
|
| 908 |
+
<!-- Tasks Section -->
|
| 909 |
+
<section id="tasksSection" class="dashboard-page hidden">
|
| 910 |
+
<div class="flex justify-between items-center mb-6">
|
| 911 |
+
<h1 class="text-2xl md:text-3xl font-bold dark:text-white">Tasks</h1>
|
| 912 |
+
<button class="flex items-center bg-primary text-white px-4 py-2 rounded-lg hover:bg-primary-600 transition">
|
| 913 |
+
<i class="fas fa-plus mr-2"></i> New Task
|
| 914 |
+
</button>
|
| 915 |
+
</div>
|
| 916 |
+
|
| 917 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
|
| 918 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 919 |
+
<h3 class="text-gray-500 dark:text-gray-400 mb-1">Pending</h3>
|
| 920 |
+
<p class="text-3xl font-bold dark:text-white">24</p>
|
| 921 |
+
</div>
|
| 922 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 923 |
+
<h3 class="text-gray-500 dark:text-gray-400 mb-1">In Progress</h3>
|
| 924 |
+
<p class="text-3xl font-bold dark:text-white">67</p>
|
| 925 |
+
</div>
|
| 926 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 927 |
+
<h3 class="text-gray-500 dark:text-gray-400 mb-1">Completed Today</h3>
|
| 928 |
+
<p class="text-3xl font-bold dark:text-white">13</p>
|
| 929 |
+
</div>
|
| 930 |
+
</div>
|
| 931 |
+
|
| 932 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 933 |
+
<div class="overflow-x-auto">
|
| 934 |
+
<table class="w-full text-sm">
|
| 935 |
+
<thead>
|
| 936 |
+
<tr class="border-b dark:border-gray-700">
|
| 937 |
+
<th class="text-left py-3 px-2 font-medium dark:text-gray-300">Task ID</th>
|
| 938 |
+
<th class="text-left py-3 px-2 font-medium dark:text-gray-300">Description</th>
|
| 939 |
+
<th class="text-left py-3 px-2 font-medium dark:text-gray-300">Assigned To</th>
|
| 940 |
+
<th class="text-left py-3 px-2 font-medium dark:text-gray-300">Priority</th>
|
| 941 |
+
<th class="text-left py-3 px-2 font-medium dark:text-gray-300">Status</th>
|
| 942 |
+
<th class="text-left py-3 px-2 font-medium dark:text-gray-300">Due Date</th>
|
| 943 |
+
<th class="text-left py-3 px-2 font-medium dark:text-gray-300">Actions</th>
|
| 944 |
+
</tr>
|
| 945 |
+
</thead>
|
| 946 |
+
<tbody class="divide-y dark:divide-gray-700">
|
| 947 |
+
<tr><td class="py-3 px-2 text-gray-900 dark:text-gray-100">#TSK-001</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Hydraulic system inspection</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Sarah Williams</td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300">High</span></td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-300">In Progress</span></td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">2024-01-15</td><td class="py-3 px-2"><button class="text-primary hover:underline text-xs">View</button></td></tr>
|
| 948 |
+
<tr><td class="py-3 px-2 text-gray-900 dark:text-gray-100">#TSK-002</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Engine oil change - MD24</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Michael Chen</td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300">Medium</span></td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300">Pending</span></td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">2024-01-16</td><td class="py-3 px-2"><button class="text-primary hover:underline text-xs">View</button></td></tr>
|
| 949 |
+
<tr><td class="py-3 px-2 text-gray-900 dark:text-gray-100">#TSK-003</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Belt replacement on B18</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Alex Johnson</td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300">Low</span></td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300">Completed</span></td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">2024-01-12</td><td class="py-3 px-2"><button class="text-primary hover:underline text-xs">View</button></td></tr>
|
| 950 |
+
<tr><td class="py-3 px-2 text-gray-900 dark:text-gray-100">#TSK-004</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Coolant flush for HD35</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Sarah Williams</td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300">Medium</span></td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300">Pending</span></td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">2024-01-17</td><td class="py-3 px-2"><button class="text-primary hover:underline text-xs">View</button></td></tr>
|
| 951 |
+
<tr><td class="py-3 px-2 text-gray-900 dark:text-gray-100">#TSK-005</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Replace air filter on B18</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Michael Chen</td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300">Low</span></td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300">Pending</span></td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">2024-01-18</td><td class="py-3 px-2"><button class="text-primary hover:underline text-xs">View</button></td></tr>
|
| 952 |
+
<tr><td class="py-3 px-2 text-gray-900 dark:text-gray-100">#TSK-006</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Track tension adjustment</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Alex Johnson</td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300">Medium</span></td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-300">In Progress</span></td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">2024-01-19</td><td class="py-3 px-2"><button class="text-primary hover:underline text-xs">View</button></td></tr>
|
| 953 |
+
<tr><td class="py-3 px-2 text-gray-900 dark:text-gray-100">#TSK-007</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Brake pad inspection MD24</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Sarah Williams</td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300">High</span></td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300">Pending</span></td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">2024-01-20</td><td class="py-3 px-2"><button class="text-primary hover:underline text-xs">View</button></td></tr>
|
| 954 |
+
<tr><td class="py-3 px-2 text-gray-900 dark:text-gray-100">#TSK-008</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Hydraulic hose replacement</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Michael Chen</td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300">High</span></td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-300">In Progress</span></td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">2024-01-21</td><td class="py-3 px-2"><button class="text-primary hover:underline text-xs">View</button></td></tr>
|
| 955 |
+
<tr><td class="py-3 px-2 text-gray-900 dark:text-gray-100">#TSK-009</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Battery replacement HD35</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Alex Johnson</td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300">Medium</span></td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300">Pending</span></td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">2024-01-22</td><td class="py-3 px-2"><button class="text-primary hover:underline text-xs">View</button></td></tr>
|
| 956 |
+
<tr><td class="py-3 px-2 text-gray-900 dark:text-gray-100">#TSK-010</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Fuel filter change B18</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Sarah Williams</td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300">Low</span></td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300">Pending</span></td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">2024-01-23</td><td class="py-3 px-2"><button class="text-primary hover:underline text-xs">View</button></td></tr>
|
| 957 |
+
<tr><td class="py-3 px-2 text-gray-900 dark:text-gray-100">#TSK-011</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Transmission fluid check</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Michael Chen</td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300">Medium</span></td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300">Pending</span></td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">2024-01-24</td><td class="py-3 px-2"><button class="text-primary hover:underline text-xs">View</button></td></tr>
|
| 958 |
+
<tr><td class="py-3 px-2 text-gray-900 dark:text-gray-100">#TSK-012</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Loader arm pins greasing</td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">Alex Johnson</td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300">Low</span></td><td class="py-3 px-2"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300">Completed</span></td><td class="py-3 px-2 text-gray-900 dark:text-gray-100">2024-01-11</td><td class="py-3 px-2"><button class="text-primary hover:underline text-xs">View</button></td></tr>
|
| 959 |
+
</tbody>
|
| 960 |
+
</table>
|
| 961 |
+
</div>
|
| 962 |
+
</div>
|
| 963 |
+
</section>
|
| 964 |
+
|
| 965 |
+
<!-- Inventory Section -->
|
| 966 |
+
<section id="inventorySection" class="dashboard-page hidden">
|
| 967 |
+
<div class="flex justify-between items-center mb-6">
|
| 968 |
+
<h1 class="text-2xl md:text-3xl font-bold dark:text-white">Inventory</h1>
|
| 969 |
+
<button class="flex items-center bg-primary text-white px-4 py-2 rounded-lg hover:bg-primary-600 transition">
|
| 970 |
+
<i class="fas fa-plus mr-2"></i> Add Item
|
| 971 |
+
</button>
|
| 972 |
+
</div>
|
| 973 |
+
|
| 974 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
|
| 975 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 976 |
+
<h3 class="text-gray-500 dark:text-gray-400 mb-1">Total Items</h3>
|
| 977 |
+
<p class="text-3xl font-bold dark:text-white">1,245</p>
|
| 978 |
+
</div>
|
| 979 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 980 |
+
<h3 class="text-gray-500 dark:text-gray-400 mb-1">Low Stock Items</h3>
|
| 981 |
+
<p class="text-3xl font-bold dark:text-white">37</p>
|
| 982 |
+
</div>
|
| 983 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 984 |
+
<h3 class="text-gray-500 dark:text-gray-400 mb-1">Value ($)</h3>
|
| 985 |
+
<p class="text-3xl font-bold dark:text-white">$ 432 k</p>
|
| 986 |
+
</div>
|
| 987 |
+
</div>
|
| 988 |
+
|
| 989 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 990 |
+
<p class="text-center text-gray-500 dark:text-gray-400 py-10">Inventory table / search will be rendered here.</p>
|
| 991 |
+
</div>
|
| 992 |
+
</section>
|
| 993 |
+
|
| 994 |
+
<!-- Analytics Section -->
|
| 995 |
+
<section id="analyticsSection" class="dashboard-page hidden">
|
| 996 |
+
<div class="flex justify-between items-center mb-6">
|
| 997 |
+
<h1 class="text-2xl md:text-3xl font-bold dark:text-white">Analytics</h1>
|
| 998 |
+
<button class="flex items-center bg-primary text-white px-4 py-2 rounded-lg hover:bg-primary-600 transition">
|
| 999 |
+
<i class="fas fa-download mr-2"></i> Export Report
|
| 1000 |
+
</button>
|
| 1001 |
+
</div>
|
| 1002 |
+
|
| 1003 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
|
| 1004 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 1005 |
+
<h3 class="text-lg font-semibold dark:text-white mb-4">Utilization Over Time</h3>
|
| 1006 |
+
<div class="h-64 bg-gray-100 dark:bg-gray-700 rounded-lg flex items-center justify-center">
|
| 1007 |
+
<span class="text-gray-500 dark:text-gray-400">Chart placeholder</span>
|
| 1008 |
+
</div>
|
| 1009 |
+
</div>
|
| 1010 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 1011 |
+
<h3 class="text-lg font-semibold dark:text-white mb-4">Maintenance Cost Trends</h3>
|
| 1012 |
+
<div class="h-64 bg-gray-100 dark:bg-gray-700 rounded-lg flex items-center justify-center">
|
| 1013 |
+
<span class="text-gray-500 dark:text-gray-400">Chart placeholder</span>
|
| 1014 |
+
</div>
|
| 1015 |
+
</div>
|
| 1016 |
+
</div>
|
| 1017 |
+
</section>
|
| 1018 |
+
|
| 1019 |
+
<!-- Admin Section -->
|
| 1020 |
+
<section id="adminSection" class="dashboard-page hidden">
|
| 1021 |
+
<div class="flex justify-between items-center mb-6">
|
| 1022 |
+
<h1 class="text-2xl md:text-3xl font-bold dark:text-white">Admin</h1>
|
| 1023 |
+
<button class="flex items-center bg-primary text-white px-4 py-2 rounded-lg hover:bg-primary-600 transition">
|
| 1024 |
+
<i class="fas fa-user-plus mr-2"></i> Invite User
|
| 1025 |
+
</button>
|
| 1026 |
+
</div>
|
| 1027 |
+
|
| 1028 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
|
| 1029 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 1030 |
+
<h3 class="text-gray-500 dark:text-gray-400 mb-1">Users</h3>
|
| 1031 |
+
<p class="text-3xl font-bold dark:text-white">18</p>
|
| 1032 |
+
</div>
|
| 1033 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 1034 |
+
<h3 class="text-gray-500 dark:text-gray-400 mb-1">Active Sessions</h3>
|
| 1035 |
+
<p class="text-3xl font-bold dark:text-white">7</p>
|
| 1036 |
+
</div>
|
| 1037 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 1038 |
+
<h3 class="text-gray-500 dark:text-gray-400 mb-1">Pending Invites</h3>
|
| 1039 |
+
<p class="text-3xl font-bold dark:text-white">2</p>
|
| 1040 |
+
</div>
|
| 1041 |
+
</div>
|
| 1042 |
+
|
| 1043 |
+
<div class="card dark:bg-gray-800 bg-white p-6">
|
| 1044 |
+
<p class="text-center text-gray-500 dark:text-gray-400 py-10">User management table will be rendered here.</p>
|
| 1045 |
+
</div>
|
| 1046 |
+
</section>
|
| 1047 |
+
|
| 1048 |
</main>
|
| 1049 |
</div>
|
| 1050 |
|
|
|
|
| 1227 |
</div>
|
| 1228 |
<label class="relative inline-flex items-center cursor-pointer">
|
| 1229 |
<input type="checkbox" class="sr-only peer" checked>
|
| 1230 |
+
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"></div>
|
| 1231 |
</label>
|
| 1232 |
</div>
|
| 1233 |
</div>
|