add a page where daily attendance is monitored for each employee, and where a csv file can be uploaded daily. daily attendance is connected to leave situations and permissions also.
Browse files- dailyattendance.html +734 -0
- employeemanagement.html +2 -2
- importemployees.html +2 -2
- index.html +2 -2
dailyattendance.html
ADDED
|
@@ -0,0 +1,734 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>OrbitHRIS | Daily Attendance</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script>
|
| 10 |
+
tailwind.config = {
|
| 11 |
+
theme: {
|
| 12 |
+
extend: {
|
| 13 |
+
colors: {
|
| 14 |
+
primary: '#6366f1',
|
| 15 |
+
secondary: '#8b5cf6',
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
</script>
|
| 21 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 22 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 23 |
+
<script src="https://cdn.jsdelivr.net/npm/papaparse@5.3.0/papaparse.min.js"></script>
|
| 24 |
+
<style>
|
| 25 |
+
.nav-item.active {
|
| 26 |
+
border-left: 4px solid #6366f1;
|
| 27 |
+
background-color: rgba(99, 102, 241, 0.1);
|
| 28 |
+
}
|
| 29 |
+
.smooth-transition {
|
| 30 |
+
transition: all 0.3s ease;
|
| 31 |
+
}
|
| 32 |
+
.card-hover:hover {
|
| 33 |
+
transform: translateY(-5px);
|
| 34 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 35 |
+
}
|
| 36 |
+
#drop-area {
|
| 37 |
+
border: 2px dashed #6366f1;
|
| 38 |
+
border-radius: 0.5rem;
|
| 39 |
+
padding: 2rem;
|
| 40 |
+
text-align: center;
|
| 41 |
+
transition: background 0.3s;
|
| 42 |
+
}
|
| 43 |
+
#drop-area.highlight {
|
| 44 |
+
background-color: rgba(99, 102, 241, 0.1);
|
| 45 |
+
}
|
| 46 |
+
.attendance-status-present {
|
| 47 |
+
background-color: #dcfce7;
|
| 48 |
+
color: #166534;
|
| 49 |
+
}
|
| 50 |
+
.attendance-status-absent {
|
| 51 |
+
background-color: #fee2e2;
|
| 52 |
+
color: #991b1b;
|
| 53 |
+
}
|
| 54 |
+
.attendance-status-late {
|
| 55 |
+
background-color: #fef9c3;
|
| 56 |
+
color: #92400e;
|
| 57 |
+
}
|
| 58 |
+
.attendance-status-leave {
|
| 59 |
+
background-color: #dbeafe;
|
| 60 |
+
color: #1e40af;
|
| 61 |
+
}
|
| 62 |
+
</style>
|
| 63 |
+
</head>
|
| 64 |
+
<body class="bg-gray-50">
|
| 65 |
+
<div class="flex h-screen overflow-hidden">
|
| 66 |
+
<!-- Sidebar -->
|
| 67 |
+
<div class="hidden md:flex md:flex-shrink-0">
|
| 68 |
+
<div class="flex flex-col w-64 bg-white border-r border-gray-200">
|
| 69 |
+
<div class="flex items-center justify-center h-16 px-4 bg-primary-500">
|
| 70 |
+
<div class="flex items-center">
|
| 71 |
+
<i data-feather="globe" class="text-white mr-2"></i>
|
| 72 |
+
<span class="text-white font-bold text-xl">OrbitHRIS</span>
|
| 73 |
+
</div>
|
| 74 |
+
</div>
|
| 75 |
+
<div class="flex flex-col flex-grow px-4 py-4 overflow-y-auto">
|
| 76 |
+
<div class="space-y-1">
|
| 77 |
+
<a href="index.html" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50">
|
| 78 |
+
<i data-feather="home" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 79 |
+
Dashboard
|
| 80 |
+
</a>
|
| 81 |
+
<a href="employeemanagement.html" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50">
|
| 82 |
+
<i data-feather="users" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 83 |
+
Employee Management
|
| 84 |
+
</a>
|
| 85 |
+
<a href="dailyattendance.html" class="nav-item active flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-900">
|
| 86 |
+
<i data-feather="clock" class="mr-3 h-5 w-5 text-primary-500"></i>
|
| 87 |
+
Attendance
|
| 88 |
+
</a>
|
| 89 |
+
<a href="#" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50">
|
| 90 |
+
<i data-feather="dollar-sign" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 91 |
+
Payroll
|
| 92 |
+
</a>
|
| 93 |
+
<a href="#" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50">
|
| 94 |
+
<i data-feather="bar-chart-2" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 95 |
+
Performance
|
| 96 |
+
</a>
|
| 97 |
+
<a href="importemployees.html" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50">
|
| 98 |
+
<i data-feather="upload" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 99 |
+
Import Employees
|
| 100 |
+
</a>
|
| 101 |
+
</div>
|
| 102 |
+
<div class="mt-auto mb-4">
|
| 103 |
+
<div class="p-4 bg-gray-100 rounded-lg">
|
| 104 |
+
<h4 class="text-sm font-medium text-gray-900">System Storage</h4>
|
| 105 |
+
<div class="mt-2 w-full bg-gray-200 rounded-full h-2.5">
|
| 106 |
+
<div class="bg-primary-500 h-2.5 rounded-full" style="width: 65%"></div>
|
| 107 |
+
</div>
|
| 108 |
+
<p class="mt-1 text-xs text-gray-500">65% of 50GB used</p>
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
</div>
|
| 113 |
+
</div>
|
| 114 |
+
|
| 115 |
+
<!-- Main Content -->
|
| 116 |
+
<div class="flex flex-col flex-1 overflow-hidden">
|
| 117 |
+
<!-- Top Navigation -->
|
| 118 |
+
<div class="flex items-center justify-between h-16 px-4 bg-white border-b border-gray-200">
|
| 119 |
+
<div class="flex items-center">
|
| 120 |
+
<button class="md:hidden mr-2 text-gray-500">
|
| 121 |
+
<i data-feather="menu"></i>
|
| 122 |
+
</button>
|
| 123 |
+
<h1 class="text-lg font-medium text-gray-900">Daily Attendance</h1>
|
| 124 |
+
</div>
|
| 125 |
+
<div class="flex items-center space-x-4">
|
| 126 |
+
<div class="relative">
|
| 127 |
+
<select id="attendanceDate" class="block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm rounded-md">
|
| 128 |
+
<option>Today</option>
|
| 129 |
+
<option>Yesterday</option>
|
| 130 |
+
<option>Last 7 Days</option>
|
| 131 |
+
<option>This Month</option>
|
| 132 |
+
<option>Custom Date</option>
|
| 133 |
+
</select>
|
| 134 |
+
</div>
|
| 135 |
+
<button class="p-1 text-gray-500 hover:text-gray-700">
|
| 136 |
+
<i data-feather="bell"></i>
|
| 137 |
+
</button>
|
| 138 |
+
<div class="relative">
|
| 139 |
+
<button class="flex items-center space-x-2 focus:outline-none">
|
| 140 |
+
<div class="w-8 h-8 rounded-full bg-primary-100 flex items-center justify-center">
|
| 141 |
+
<i data-feather="user" class="text-primary-500"></i>
|
| 142 |
+
</div>
|
| 143 |
+
<span class="hidden md:inline text-sm font-medium">Admin</span>
|
| 144 |
+
<i data-feather="chevron-down" class="hidden md:inline h-4 w-4"></i>
|
| 145 |
+
</button>
|
| 146 |
+
</div>
|
| 147 |
+
</div>
|
| 148 |
+
</div>
|
| 149 |
+
|
| 150 |
+
<!-- Content -->
|
| 151 |
+
<div class="flex-1 overflow-y-auto p-6 bg-gray-50">
|
| 152 |
+
<!-- Header with Date and Upload Button -->
|
| 153 |
+
<div class="flex flex-col md:flex-row md:items-center md:justify-between mb-6 space-y-4 md:space-y-0">
|
| 154 |
+
<div>
|
| 155 |
+
<h2 class="text-2xl font-bold text-gray-900">Attendance Records</h2>
|
| 156 |
+
<p class="text-sm text-gray-500 mt-1" id="currentDateDisplay">Showing records for: <span class="font-medium">Today, June 10, 2023</span></p>
|
| 157 |
+
</div>
|
| 158 |
+
<div class="flex space-x-3">
|
| 159 |
+
<button id="uploadAttendanceBtn" class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary-500 hover:bg-primary-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500">
|
| 160 |
+
<i data-feather="upload" class="mr-2 h-4 w-4"></i>
|
| 161 |
+
Upload Daily CSV
|
| 162 |
+
</button>
|
| 163 |
+
<button class="inline-flex items-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500">
|
| 164 |
+
<i data-feather="download" class="mr-2 h-4 w-4"></i>
|
| 165 |
+
Export Data
|
| 166 |
+
</button>
|
| 167 |
+
</div>
|
| 168 |
+
</div>
|
| 169 |
+
|
| 170 |
+
<!-- Upload Modal (hidden by default) -->
|
| 171 |
+
<div id="uploadModal" class="hidden fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50">
|
| 172 |
+
<div class="relative top-20 mx-auto p-5 border w-96 shadow-lg rounded-md bg-white">
|
| 173 |
+
<div class="mt-3 text-center">
|
| 174 |
+
<div class="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-primary-100">
|
| 175 |
+
<i data-feather="upload-cloud" class="text-primary-500"></i>
|
| 176 |
+
</div>
|
| 177 |
+
<h3 class="text-lg leading-6 font-medium text-gray-900 mt-3">Upload Daily Attendance</h3>
|
| 178 |
+
<div class="mt-4">
|
| 179 |
+
<div id="drop-area" class="mb-6">
|
| 180 |
+
<i data-feather="upload-cloud" class="mx-auto h-12 w-12 text-primary-500 mb-3"></i>
|
| 181 |
+
<h3 class="text-lg font-medium text-gray-900 mb-1">Drag & drop your CSV file here</h3>
|
| 182 |
+
<p class="text-sm text-gray-500 mb-4">or</p>
|
| 183 |
+
<label for="attendanceFileInput" class="cursor-pointer inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary-500 hover:bg-primary-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500">
|
| 184 |
+
<i data-feather="file" class="mr-2 h-4 w-4"></i>
|
| 185 |
+
Select File
|
| 186 |
+
</label>
|
| 187 |
+
<input type="file" id="attendanceFileInput" accept=".csv" class="hidden">
|
| 188 |
+
</div>
|
| 189 |
+
<div id="uploadProgress" class="hidden">
|
| 190 |
+
<div class="flex justify-between mb-1">
|
| 191 |
+
<span class="text-sm font-medium text-gray-700">Uploading...</span>
|
| 192 |
+
<span id="uploadPercent" class="text-sm font-medium text-gray-700">0%</span>
|
| 193 |
+
</div>
|
| 194 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 195 |
+
<div id="uploadBar" class="bg-primary-500 h-2.5 rounded-full" style="width: 0%"></div>
|
| 196 |
+
</div>
|
| 197 |
+
</div>
|
| 198 |
+
</div>
|
| 199 |
+
<div class="items-center px-4 py-3">
|
| 200 |
+
<button id="cancelUpload" class="px-4 py-2 bg-gray-200 text-gray-800 text-base font-medium rounded-md shadow-sm hover:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-gray-300 mr-4">
|
| 201 |
+
Cancel
|
| 202 |
+
</button>
|
| 203 |
+
<button id="confirmUpload" disabled class="px-4 py-2 bg-primary-500 text-white text-base font-medium rounded-md shadow-sm hover:bg-primary-600 focus:outline-none focus:ring-2 focus:ring-primary-500">
|
| 204 |
+
Upload
|
| 205 |
+
</button>
|
| 206 |
+
</div>
|
| 207 |
+
</div>
|
| 208 |
+
</div>
|
| 209 |
+
</div>
|
| 210 |
+
|
| 211 |
+
<!-- Filters -->
|
| 212 |
+
<div class="bg-white rounded-lg shadow-sm p-4 mb-6">
|
| 213 |
+
<div class="flex flex-col md:flex-row md:items-center md:space-x-4 space-y-4 md:space-y-0">
|
| 214 |
+
<div>
|
| 215 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Department</label>
|
| 216 |
+
<select class="block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm rounded-md">
|
| 217 |
+
<option>All Departments</option>
|
| 218 |
+
<option>Sales</option>
|
| 219 |
+
<option>Marketing</option>
|
| 220 |
+
<option>Engineering</option>
|
| 221 |
+
<option>HR</option>
|
| 222 |
+
<option>Finance</option>
|
| 223 |
+
</select>
|
| 224 |
+
</div>
|
| 225 |
+
<div>
|
| 226 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Status</label>
|
| 227 |
+
<select id="statusFilter" class="block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm rounded-md">
|
| 228 |
+
<option>All Status</option>
|
| 229 |
+
<option>Present</option>
|
| 230 |
+
<option>Absent</option>
|
| 231 |
+
<option>Late</option>
|
| 232 |
+
<option>On Leave</option>
|
| 233 |
+
</select>
|
| 234 |
+
</div>
|
| 235 |
+
<div>
|
| 236 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Leave Type</label>
|
| 237 |
+
<select class="block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-primary-500 focus:border-primary-500 sm:text-sm rounded-md">
|
| 238 |
+
<option>All Types</option>
|
| 239 |
+
<option>Vacation</option>
|
| 240 |
+
<option>Sick Leave</option>
|
| 241 |
+
<option>Personal</option>
|
| 242 |
+
<option>Maternity/Paternity</option>
|
| 243 |
+
<option>Bereavement</option>
|
| 244 |
+
</select>
|
| 245 |
+
</div>
|
| 246 |
+
<div class="md:ml-auto flex items-end">
|
| 247 |
+
<button class="inline-flex items-center px-3 py-2 border border-gray-300 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500">
|
| 248 |
+
<i data-feather="filter" class="mr-2 h-4 w-4"></i>
|
| 249 |
+
Apply Filters
|
| 250 |
+
</button>
|
| 251 |
+
</div>
|
| 252 |
+
</div>
|
| 253 |
+
</div>
|
| 254 |
+
|
| 255 |
+
<!-- Attendance Summary -->
|
| 256 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-6">
|
| 257 |
+
<div class="bg-white rounded-lg shadow-sm p-6 smooth-transition card-hover">
|
| 258 |
+
<div class="flex items-center justify-between">
|
| 259 |
+
<div>
|
| 260 |
+
<p class="text-sm font-medium text-gray-500">Total Employees</p>
|
| 261 |
+
<h3 class="text-2xl font-bold text-gray-900 mt-1">1,248</h3>
|
| 262 |
+
</div>
|
| 263 |
+
<div class="p-3 rounded-full bg-gray-100 text-gray-500">
|
| 264 |
+
<i data-feather="users"></i>
|
| 265 |
+
</div>
|
| 266 |
+
</div>
|
| 267 |
+
</div>
|
| 268 |
+
<div class="bg-white rounded-lg shadow-sm p-6 smooth-transition card-hover">
|
| 269 |
+
<div class="flex items-center justify-between">
|
| 270 |
+
<div>
|
| 271 |
+
<p class="text-sm font-medium text-gray-500">Present Today</p>
|
| 272 |
+
<h3 class="text-2xl font-bold text-gray-900 mt-1">976</h3>
|
| 273 |
+
<p class="text-xs text-green-500 mt-1 flex items-center">
|
| 274 |
+
<i data-feather="trending-up" class="mr-1 h-3 w-3"></i>
|
| 275 |
+
78.2%
|
| 276 |
+
</p>
|
| 277 |
+
</div>
|
| 278 |
+
<div class="p-3 rounded-full bg-green-100 text-green-500">
|
| 279 |
+
<i data-feather="check-circle"></i>
|
| 280 |
+
</div>
|
| 281 |
+
</div>
|
| 282 |
+
</div>
|
| 283 |
+
<div class="bg-white rounded-lg shadow-sm p-6 smooth-transition card-hover">
|
| 284 |
+
<div class="flex items-center justify-between">
|
| 285 |
+
<div>
|
| 286 |
+
<p class="text-sm font-medium text-gray-500">On Leave</p>
|
| 287 |
+
<h3 class="text-2xl font-bold text-gray-900 mt-1">42</h3>
|
| 288 |
+
<p class="text-xs text-blue-500 mt-1 flex items-center">
|
| 289 |
+
<i data-feather="calendar" class="mr-1 h-3 w-3"></i>
|
| 290 |
+
3.4%
|
| 291 |
+
</p>
|
| 292 |
+
</div>
|
| 293 |
+
<div class="p-3 rounded-full bg-blue-100 text-blue-500">
|
| 294 |
+
<i data-feather="calendar"></i>
|
| 295 |
+
</div>
|
| 296 |
+
</div>
|
| 297 |
+
</div>
|
| 298 |
+
<div class="bg-white rounded-lg shadow-sm p-6 smooth-transition card-hover">
|
| 299 |
+
<div class="flex items-center justify-between">
|
| 300 |
+
<div>
|
| 301 |
+
<p class="text-sm font-medium text-gray-500">Absent</p>
|
| 302 |
+
<h3 class="text-2xl font-bold text-gray-900 mt-1">230</h3>
|
| 303 |
+
<p class="text-xs text-red-500 mt-1 flex items-center">
|
| 304 |
+
<i data-feather="trending-down" class="mr-1 h-3 w-3"></i>
|
| 305 |
+
18.4%
|
| 306 |
+
</p>
|
| 307 |
+
</div>
|
| 308 |
+
<div class="p-3 rounded-full bg-red-100 text-red-500">
|
| 309 |
+
<i data-feather="x-circle"></i>
|
| 310 |
+
</div>
|
| 311 |
+
</div>
|
| 312 |
+
</div>
|
| 313 |
+
</div>
|
| 314 |
+
|
| 315 |
+
<!-- Attendance Table -->
|
| 316 |
+
<div class="bg-white rounded-lg shadow-sm overflow-hidden">
|
| 317 |
+
<div class="overflow-x-auto">
|
| 318 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 319 |
+
<thead class="bg-gray-50">
|
| 320 |
+
<tr>
|
| 321 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
| 322 |
+
Employee
|
| 323 |
+
</th>
|
| 324 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
| 325 |
+
Department
|
| 326 |
+
</th>
|
| 327 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
| 328 |
+
Status
|
| 329 |
+
</th>
|
| 330 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
| 331 |
+
Check-In
|
| 332 |
+
</th>
|
| 333 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
| 334 |
+
Check-Out
|
| 335 |
+
</th>
|
| 336 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
| 337 |
+
Hours Worked
|
| 338 |
+
</th>
|
| 339 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
| 340 |
+
Leave Type
|
| 341 |
+
</th>
|
| 342 |
+
<th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">
|
| 343 |
+
Actions
|
| 344 |
+
</th>
|
| 345 |
+
</tr>
|
| 346 |
+
</thead>
|
| 347 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 348 |
+
<tr class="hover:bg-gray-50">
|
| 349 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 350 |
+
<div class="flex items-center">
|
| 351 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 352 |
+
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/1" alt="">
|
| 353 |
+
</div>
|
| 354 |
+
<div class="ml-4">
|
| 355 |
+
<div class="text-sm font-medium text-gray-900">Michael Chen</div>
|
| 356 |
+
<div class="text-sm text-gray-500">EMP-1001</div>
|
| 357 |
+
</div>
|
| 358 |
+
</div>
|
| 359 |
+
</td>
|
| 360 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 361 |
+
<div class="text-sm text-gray-900">Sales</div>
|
| 362 |
+
</td>
|
| 363 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 364 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full attendance-status-present">
|
| 365 |
+
Present
|
| 366 |
+
</span>
|
| 367 |
+
</td>
|
| 368 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 369 |
+
<div class="text-sm text-gray-900">08:45 AM</div>
|
| 370 |
+
</td>
|
| 371 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 372 |
+
<div class="text-sm text-gray-900">05:30 PM</div>
|
| 373 |
+
</td>
|
| 374 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 375 |
+
<div class="text-sm text-gray-900">8.75</div>
|
| 376 |
+
</td>
|
| 377 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 378 |
+
<div class="text-sm text-gray-500">-</div>
|
| 379 |
+
</td>
|
| 380 |
+
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
|
| 381 |
+
<button class="text-primary-500 hover:text-primary-700 mr-3">
|
| 382 |
+
<i data-feather="edit"></i>
|
| 383 |
+
</button>
|
| 384 |
+
<button class="text-gray-500 hover:text-gray-700">
|
| 385 |
+
<i data-feather="more-vertical"></i>
|
| 386 |
+
</button>
|
| 387 |
+
</td>
|
| 388 |
+
</tr>
|
| 389 |
+
<tr class="hover:bg-gray-50">
|
| 390 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 391 |
+
<div class="flex items-center">
|
| 392 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 393 |
+
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/2" alt="">
|
| 394 |
+
</div>
|
| 395 |
+
<div class="ml-4">
|
| 396 |
+
<div class="text-sm font-medium text-gray-900">Jessica Williams</div>
|
| 397 |
+
<div class="text-sm text-gray-500">EMP-1002</div>
|
| 398 |
+
</div>
|
| 399 |
+
</div>
|
| 400 |
+
</td>
|
| 401 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 402 |
+
<div class="text-sm text-gray-900">Marketing</div>
|
| 403 |
+
</td>
|
| 404 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 405 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full attendance-status-leave">
|
| 406 |
+
On Leave
|
| 407 |
+
</span>
|
| 408 |
+
</td>
|
| 409 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 410 |
+
<div class="text-sm text-gray-500">-</div>
|
| 411 |
+
</td>
|
| 412 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 413 |
+
<div class="text-sm text-gray-500">-</div>
|
| 414 |
+
</td>
|
| 415 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 416 |
+
<div class="text-sm text-gray-500">-</div>
|
| 417 |
+
</td>
|
| 418 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 419 |
+
<div class="text-sm text-gray-900">Vacation</div>
|
| 420 |
+
</td>
|
| 421 |
+
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
|
| 422 |
+
<button class="text-primary-500 hover:text-primary-700 mr-3">
|
| 423 |
+
<i data-feather="edit"></i>
|
| 424 |
+
</button>
|
| 425 |
+
<button class="text-gray-500 hover:text-gray-700">
|
| 426 |
+
<i data-feather="more-vertical"></i>
|
| 427 |
+
</button>
|
| 428 |
+
</td>
|
| 429 |
+
</tr>
|
| 430 |
+
<tr class="hover:bg-gray-50">
|
| 431 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 432 |
+
<div class="flex items-center">
|
| 433 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 434 |
+
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/3" alt="">
|
| 435 |
+
</div>
|
| 436 |
+
<div class="ml-4">
|
| 437 |
+
<div class="text-sm font-medium text-gray-900">David Kim</div>
|
| 438 |
+
<div class="text-sm text-gray-500">EMP-1003</div>
|
| 439 |
+
</div>
|
| 440 |
+
</div>
|
| 441 |
+
</td>
|
| 442 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 443 |
+
<div class="text-sm text-gray-900">Engineering</div>
|
| 444 |
+
</td>
|
| 445 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 446 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full attendance-status-late">
|
| 447 |
+
Late
|
| 448 |
+
</span>
|
| 449 |
+
</td>
|
| 450 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 451 |
+
<div class="text-sm text-gray-900">10:15 AM</div>
|
| 452 |
+
</td>
|
| 453 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 454 |
+
<div class="text-sm text-gray-900">06:45 PM</div>
|
| 455 |
+
</td>
|
| 456 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 457 |
+
<div class="text-sm text-gray-900">8.5</div>
|
| 458 |
+
</td>
|
| 459 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 460 |
+
<div class="text-sm text-gray-500">-</div>
|
| 461 |
+
</td>
|
| 462 |
+
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
|
| 463 |
+
<button class="text-primary-500 hover:text-primary-700 mr-3">
|
| 464 |
+
<i data-feather="edit"></i>
|
| 465 |
+
</button>
|
| 466 |
+
<button class="text-gray-500 hover:text-gray-700">
|
| 467 |
+
<i data-feather="more-vertical"></i>
|
| 468 |
+
</button>
|
| 469 |
+
</td>
|
| 470 |
+
</tr>
|
| 471 |
+
<tr class="hover:bg-gray-50">
|
| 472 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 473 |
+
<div class="flex items-center">
|
| 474 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 475 |
+
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/4" alt="">
|
| 476 |
+
</div>
|
| 477 |
+
<div class="ml-4">
|
| 478 |
+
<div class="text-sm font-medium text-gray-900">Emma Rodriguez</div>
|
| 479 |
+
<div class="text-sm text-gray-500">EMP-1004</div>
|
| 480 |
+
</div>
|
| 481 |
+
</div>
|
| 482 |
+
</td>
|
| 483 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 484 |
+
<div class="text-sm text-gray-900">HR</div>
|
| 485 |
+
</td>
|
| 486 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 487 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full attendance-status-present">
|
| 488 |
+
Present
|
| 489 |
+
</span>
|
| 490 |
+
</td>
|
| 491 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 492 |
+
<div class="text-sm text-gray-900">08:30 AM</div>
|
| 493 |
+
</td>
|
| 494 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 495 |
+
<div class="text-sm text-gray-900">05:15 PM</div>
|
| 496 |
+
</td>
|
| 497 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 498 |
+
<div class="text-sm text-gray-900">8.75</div>
|
| 499 |
+
</td>
|
| 500 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 501 |
+
<div class="text-sm text-gray-500">-</div>
|
| 502 |
+
</td>
|
| 503 |
+
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
|
| 504 |
+
<button class="text-primary-500 hover:text-primary-700 mr-3">
|
| 505 |
+
<i data-feather="edit"></i>
|
| 506 |
+
</button>
|
| 507 |
+
<button class="text-gray-500 hover:text-gray-700">
|
| 508 |
+
<i data-feather="more-vertical"></i>
|
| 509 |
+
</button>
|
| 510 |
+
</td>
|
| 511 |
+
</tr>
|
| 512 |
+
<tr class="hover:bg-gray-50">
|
| 513 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 514 |
+
<div class="flex items-center">
|
| 515 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 516 |
+
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/5" alt="">
|
| 517 |
+
</div>
|
| 518 |
+
<div class="ml-4">
|
| 519 |
+
<div class="text-sm font-medium text-gray-900">James Wilson</div>
|
| 520 |
+
<div class="text-sm text-gray-500">EMP-1005</div>
|
| 521 |
+
</div>
|
| 522 |
+
</div>
|
| 523 |
+
</td>
|
| 524 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 525 |
+
<div class="text-sm text-gray-900">Finance</div>
|
| 526 |
+
</td>
|
| 527 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 528 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full attendance-status-absent">
|
| 529 |
+
Absent
|
| 530 |
+
</span>
|
| 531 |
+
</td>
|
| 532 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 533 |
+
<div class="text-sm text-gray-500">-</div>
|
| 534 |
+
</td>
|
| 535 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 536 |
+
<div class="text-sm text-gray-500">-</div>
|
| 537 |
+
</td>
|
| 538 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 539 |
+
<div class="text-sm text-gray-500">-</div>
|
| 540 |
+
</td>
|
| 541 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 542 |
+
<div class="text-sm text-gray-500">-</div>
|
| 543 |
+
</td>
|
| 544 |
+
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
|
| 545 |
+
<button class="text-primary-500 hover:text-primary-700 mr-3">
|
| 546 |
+
<i data-feather="edit"></i>
|
| 547 |
+
</button>
|
| 548 |
+
<button class="text-gray-500 hover:text-gray-700">
|
| 549 |
+
<i data-feather="more-vertical"></i>
|
| 550 |
+
</button>
|
| 551 |
+
</td>
|
| 552 |
+
</tr>
|
| 553 |
+
</tbody>
|
| 554 |
+
</table>
|
| 555 |
+
</div>
|
| 556 |
+
<!-- Pagination -->
|
| 557 |
+
<div class="bg-white px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6">
|
| 558 |
+
<div class="flex-1 flex justify-between sm:hidden">
|
| 559 |
+
<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">
|
| 560 |
+
Previous
|
| 561 |
+
</a>
|
| 562 |
+
<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">
|
| 563 |
+
Next
|
| 564 |
+
</a>
|
| 565 |
+
</div>
|
| 566 |
+
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
|
| 567 |
+
<div>
|
| 568 |
+
<p class="text-sm text-gray-700">
|
| 569 |
+
Showing <span class="font-medium">1</span> to <span class="font-medium">5</span> of <span class="font-medium">1248</span> results
|
| 570 |
+
</p>
|
| 571 |
+
</div>
|
| 572 |
+
<div>
|
| 573 |
+
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
|
| 574 |
+
<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">
|
| 575 |
+
<span class="sr-only">Previous</span>
|
| 576 |
+
<i data-feather="chevron-left" class="h-5 w-5"></i>
|
| 577 |
+
</a>
|
| 578 |
+
<a href="#" aria-current="page" class="z-10 bg-primary-50 border-primary-500 text-primary-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium">
|
| 579 |
+
1
|
| 580 |
+
</a>
|
| 581 |
+
<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">
|
| 582 |
+
2
|
| 583 |
+
</a>
|
| 584 |
+
<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">
|
| 585 |
+
3
|
| 586 |
+
</a>
|
| 587 |
+
<span class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700">
|
| 588 |
+
...
|
| 589 |
+
</span>
|
| 590 |
+
<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">
|
| 591 |
+
8
|
| 592 |
+
</a>
|
| 593 |
+
<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">
|
| 594 |
+
<span class="sr-only">Next</span>
|
| 595 |
+
<i data-feather="chevron-right" class="h-5 w-5"></i>
|
| 596 |
+
</a>
|
| 597 |
+
</nav>
|
| 598 |
+
</div>
|
| 599 |
+
</div>
|
| 600 |
+
</div>
|
| 601 |
+
</div>
|
| 602 |
+
</div>
|
| 603 |
+
</div>
|
| 604 |
+
</div>
|
| 605 |
+
|
| 606 |
+
<script>
|
| 607 |
+
feather.replace();
|
| 608 |
+
|
| 609 |
+
// Date display
|
| 610 |
+
const today = new Date();
|
| 611 |
+
const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
|
| 612 |
+
document.getElementById('currentDateDisplay').innerHTML = `Showing records for: <span class="font-medium">${today.toLocaleDateString('en-US', options)}</span>`;
|
| 613 |
+
|
| 614 |
+
// Upload modal functionality
|
| 615 |
+
const uploadBtn = document.getElementById('uploadAttendanceBtn');
|
| 616 |
+
const uploadModal = document.getElementById('uploadModal');
|
| 617 |
+
const cancelUpload = document.getElementById('cancelUpload');
|
| 618 |
+
const confirmUpload = document.getElementById('confirmUpload');
|
| 619 |
+
const dropArea = document.getElementById('drop-area');
|
| 620 |
+
const fileInput = document.getElementById('attendanceFileInput');
|
| 621 |
+
const uploadProgress = document.getElementById('uploadProgress');
|
| 622 |
+
const uploadBar = document.getElementById('uploadBar');
|
| 623 |
+
const uploadPercent = document.getElementById('uploadPercent');
|
| 624 |
+
|
| 625 |
+
uploadBtn.addEventListener('click', () => {
|
| 626 |
+
uploadModal.classList.remove('hidden');
|
| 627 |
+
});
|
| 628 |
+
|
| 629 |
+
cancelUpload.addEventListener('click', () => {
|
| 630 |
+
uploadModal.classList.add('hidden');
|
| 631 |
+
uploadProgress.classList.add('hidden');
|
| 632 |
+
confirmUpload.disabled = true;
|
| 633 |
+
fileInput.value = '';
|
| 634 |
+
});
|
| 635 |
+
|
| 636 |
+
// File upload handling
|
| 637 |
+
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => {
|
| 638 |
+
dropArea.addEventListener(eventName, preventDefaults, false);
|
| 639 |
+
});
|
| 640 |
+
|
| 641 |
+
function preventDefaults(e) {
|
| 642 |
+
e.preventDefault();
|
| 643 |
+
e.stopPropagation();
|
| 644 |
+
}
|
| 645 |
+
|
| 646 |
+
['dragenter', 'dragover'].forEach(eventName => {
|
| 647 |
+
dropArea.addEventListener(eventName, highlight, false);
|
| 648 |
+
});
|
| 649 |
+
|
| 650 |
+
['dragleave', 'drop'].forEach(eventName => {
|
| 651 |
+
dropArea.addEventListener(eventName, unhighlight, false);
|
| 652 |
+
});
|
| 653 |
+
|
| 654 |
+
function highlight() {
|
| 655 |
+
dropArea.classList.add('highlight');
|
| 656 |
+
}
|
| 657 |
+
|
| 658 |
+
function unhighlight() {
|
| 659 |
+
dropArea.classList.remove('highlight');
|
| 660 |
+
}
|
| 661 |
+
|
| 662 |
+
dropArea.addEventListener('drop', handleDrop, false);
|
| 663 |
+
fileInput.addEventListener('change', handleFileSelect, false);
|
| 664 |
+
|
| 665 |
+
function handleDrop(e) {
|
| 666 |
+
const dt = e.dataTransfer;
|
| 667 |
+
const files = dt.files;
|
| 668 |
+
handleFiles(files);
|
| 669 |
+
}
|
| 670 |
+
|
| 671 |
+
function handleFileSelect(e) {
|
| 672 |
+
const files = e.target.files;
|
| 673 |
+
handleFiles(files);
|
| 674 |
+
}
|
| 675 |
+
|
| 676 |
+
function handleFiles(files) {
|
| 677 |
+
if (files.length && files[0].type === 'text/csv') {
|
| 678 |
+
confirmUpload.disabled = false;
|
| 679 |
+
} else {
|
| 680 |
+
alert('Please upload a valid CSV file');
|
| 681 |
+
}
|
| 682 |
+
}
|
| 683 |
+
|
| 684 |
+
confirmUpload.addEventListener('click', () => {
|
| 685 |
+
uploadProgress.classList.remove('hidden');
|
| 686 |
+
|
| 687 |
+
// Simulate upload progress
|
| 688 |
+
let progress = 0;
|
| 689 |
+
const interval = setInterval(() => {
|
| 690 |
+
progress += 10;
|
| 691 |
+
if (progress > 100) progress = 100;
|
| 692 |
+
|
| 693 |
+
uploadBar.style.width = `${progress}%`;
|
| 694 |
+
uploadPercent.textContent = `${progress}%`;
|
| 695 |
+
|
| 696 |
+
if (progress === 100) {
|
| 697 |
+
clearInterval(interval);
|
| 698 |
+
setTimeout(() => {
|
| 699 |
+
uploadModal.classList.add('hidden');
|
| 700 |
+
uploadProgress.classList.add('hidden');
|
| 701 |
+
confirmUpload.disabled = true;
|
| 702 |
+
fileInput.value = '';
|
| 703 |
+
uploadBar.style.width = '0%';
|
| 704 |
+
uploadPercent.textContent = '0%';
|
| 705 |
+
|
| 706 |
+
// Show success notification
|
| 707 |
+
alert('Attendance data uploaded successfully!');
|
| 708 |
+
// In a real app, you would refresh the table data here
|
| 709 |
+
}, 500);
|
| 710 |
+
}
|
| 711 |
+
}, 200);
|
| 712 |
+
});
|
| 713 |
+
|
| 714 |
+
// Filter functionality
|
| 715 |
+
document.getElementById('statusFilter').addEventListener('change', function() {
|
| 716 |
+
const status = this.value;
|
| 717 |
+
const rows = document.querySelectorAll('tbody tr');
|
| 718 |
+
|
| 719 |
+
rows.forEach(row => {
|
| 720 |
+
if (status === 'All Status') {
|
| 721 |
+
row.style.display = '';
|
| 722 |
+
} else {
|
| 723 |
+
const rowStatus = row.querySelector('td:nth-child(3) span').textContent.trim();
|
| 724 |
+
if (rowStatus.toLowerCase() === status.toLowerCase()) {
|
| 725 |
+
row.style.display = '';
|
| 726 |
+
} else {
|
| 727 |
+
row.style.display = 'none';
|
| 728 |
+
}
|
| 729 |
+
}
|
| 730 |
+
});
|
| 731 |
+
});
|
| 732 |
+
</script>
|
| 733 |
+
</body>
|
| 734 |
+
</html>
|
employeemanagement.html
CHANGED
|
@@ -55,11 +55,11 @@
|
|
| 55 |
<i data-feather="users" class="mr-3 h-5 w-5 text-primary-500"></i>
|
| 56 |
Employee Management
|
| 57 |
</a>
|
| 58 |
-
<a href="
|
| 59 |
<i data-feather="clock" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 60 |
Attendance
|
| 61 |
</a>
|
| 62 |
-
|
| 63 |
<i data-feather="dollar-sign" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 64 |
Payroll
|
| 65 |
</a>
|
|
|
|
| 55 |
<i data-feather="users" class="mr-3 h-5 w-5 text-primary-500"></i>
|
| 56 |
Employee Management
|
| 57 |
</a>
|
| 58 |
+
<a href="dailyattendance.html" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50">
|
| 59 |
<i data-feather="clock" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 60 |
Attendance
|
| 61 |
</a>
|
| 62 |
+
<a href="#" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50">
|
| 63 |
<i data-feather="dollar-sign" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 64 |
Payroll
|
| 65 |
</a>
|
importemployees.html
CHANGED
|
@@ -66,11 +66,11 @@
|
|
| 66 |
<i data-feather="users" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 67 |
Employee Management
|
| 68 |
</a>
|
| 69 |
-
<a href="
|
| 70 |
<i data-feather="clock" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 71 |
Attendance
|
| 72 |
</a>
|
| 73 |
-
|
| 74 |
<i data-feather="dollar-sign" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 75 |
Payroll
|
| 76 |
</a>
|
|
|
|
| 66 |
<i data-feather="users" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 67 |
Employee Management
|
| 68 |
</a>
|
| 69 |
+
<a href="dailyattendance.html" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50">
|
| 70 |
<i data-feather="clock" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 71 |
Attendance
|
| 72 |
</a>
|
| 73 |
+
<a href="#" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50">
|
| 74 |
<i data-feather="dollar-sign" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 75 |
Payroll
|
| 76 |
</a>
|
index.html
CHANGED
|
@@ -56,11 +56,11 @@
|
|
| 56 |
<i data-feather="users" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 57 |
Employee Management
|
| 58 |
</a>
|
| 59 |
-
<a href="
|
| 60 |
<i data-feather="clock" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 61 |
Attendance
|
| 62 |
</a>
|
| 63 |
-
|
| 64 |
<i data-feather="dollar-sign" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 65 |
Payroll
|
| 66 |
</a>
|
|
|
|
| 56 |
<i data-feather="users" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 57 |
Employee Management
|
| 58 |
</a>
|
| 59 |
+
<a href="dailyattendance.html" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50">
|
| 60 |
<i data-feather="clock" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 61 |
Attendance
|
| 62 |
</a>
|
| 63 |
+
<a href="#" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50">
|
| 64 |
<i data-feather="dollar-sign" class="mr-3 h-5 w-5 text-gray-400"></i>
|
| 65 |
Payroll
|
| 66 |
</a>
|