File size: 17,242 Bytes
970e080
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7717be6
970e080
 
7717be6
970e080
 
7717be6
970e080
 
7717be6
970e080
 
7717be6
970e080
 
52ce0b0
970e080
 
7717be6
970e080
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TimeWizard - Admin Dashboard</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <style>
        .dashboard-bg {
            background-color: #F8FAFC;
        }
        .admin-card {
            transition: all 0.3s ease;
        }
        .admin-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .sidebar-link.active {
            border-left: 4px solid #4F46E5;
            background-color: rgba(79, 70, 229, 0.1);
        }
    </style>
</head>
<body class="font-sans antialiased">
    <!-- Admin Dashboard -->
    <div class="min-h-screen flex">
        <!-- Sidebar -->
        <div class="w-64 bg-white shadow-md">
            <div class="p-6 flex items-center space-x-3">
                <div class="w-10 h-10 bg-primary rounded-full flex items-center justify-center">
                    <i data-feather="user" class="text-white w-5 h-5"></i>
                </div>
                <div>
                    <p class="font-medium text-dark">Admin User</p>
                    <p class="text-xs text-gray-500">Administrator</p>
                </div>
            </div>
            
            <nav class="mt-8 px-4 space-y-1">
                <a href="admin-dashboard.html" class="sidebar-link active flex items-center px-4 py-3 text-sm font-medium text-dark rounded-lg">
                    <i data-feather="home" class="mr-3 text-primary"></i> Dashboard
                </a>
                <a href="employees.html" class="sidebar-link flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:text-dark rounded-lg">
                    <i data-feather="users" class="mr-3"></i> Employees
                </a>
                <a href="admin-time-tracking.html" class="sidebar-link flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:text-dark rounded-lg">
                    <i data-feather="clock" class="mr-3"></i> Time Tracking
                </a>
                <a href="admin-vacation.html" class="sidebar-link flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:text-dark rounded-lg">
                    <i data-feather="calendar" class="mr-3"></i> Vacation
                </a>
                <a href="admin-reports.html" class="sidebar-link flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:text-dark rounded-lg">
                    <i data-feather="pie-chart" class="mr-3"></i> Reports
                </a>
<a href="admin-settings.html" class="sidebar-link flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:text-dark rounded-lg">
                    <i data-feather="settings" class="mr-3"></i> Settings
                </a>
</nav>
        </div>
        
        <!-- Main Content -->
        <div class="flex-1 dashboard-bg p-8">
            <div class="flex justify-between items-center mb-8">
                <h1 class="text-2xl font-bold text-dark">Admin Dashboard</h1>
                <div class="flex items-center space-x-4">
                    <button class="p-2 rounded-full bg-white shadow hover:bg-gray-50">
                        <i data-feather="bell"></i>
                    </button>
                    <button class="p-2 rounded-full bg-white shadow hover:bg-gray-50">
                        <i data-feather="help-circle"></i>
                    </button>
                </div>
            </div>
            
            <!-- Stats Cards -->
            <div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
                <div class="bg-white rounded-xl shadow-md p-6 admin-card">
                    <div class="flex items-center">
                        <div class="bg-primary bg-opacity-10 p-3 rounded-full mr-4">
                            <i data-feather="users" class="text-primary w-6 h-6"></i>
                        </div>
                        <div>
                            <p class="text-sm text-gray-500">Total Employees</p>
                            <p class="text-2xl font-bold text-dark">42</p>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-xl shadow-md p-6 admin-card">
                    <div class="flex items-center">
                        <div class="bg-green-500 bg-opacity-10 p-3 rounded-full mr-4">
                            <i data-feather="check-circle" class="text-green-500 w-6 h-6"></i>
                        </div>
                        <div>
                            <p class="text-sm text-gray-500">Active Today</p>
                            <p class="text-2xl font-bold text-dark">38</p>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-xl shadow-md p-6 admin-card">
                    <div class="flex items-center">
                        <div class="bg-yellow-500 bg-opacity-10 p-3 rounded-full mr-4">
                            <i data-feather="clock" class="text-yellow-500 w-6 h-6"></i>
                        </div>
                        <div>
                            <p class="text-sm text-gray-500">Pending Requests</p>
                            <p class="text-2xl font-bold text-dark">7</p>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-xl shadow-md p-6 admin-card">
                    <div class="flex items-center">
                        <div class="bg-red-500 bg-opacity-10 p-3 rounded-full mr-4">
                            <i data-feather="alert-circle" class="text-red-500 w-6 h-6"></i>
                        </div>
                        <div>
                            <p class="text-sm text-gray-500">Late Arrivals</p>
                            <p class="text-2xl font-bold text-dark">3</p>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Pending Vacation Requests -->
            <div class="bg-white rounded-xl shadow-md p-6 mb-8">
                <div class="flex items-center justify-between mb-6">
                    <h2 class="text-lg font-medium text-dark">Pending Vacation Requests</h2>
                    <button class="text-sm text-primary font-medium hover:text-primary-dark">View All</button>
                </div>
                
                <div class="overflow-x-auto">
                    <table class="min-w-full divide-y divide-gray-200">
                        <thead class="bg-gray-50">
                            <tr>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Employee</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date Range</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Days</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
                            </tr>
                        </thead>
                        <tbody class="bg-white divide-y divide-gray-200">
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <div class="flex-shrink-0 h-10 w-10">
                                            <img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/1" alt="">
                                        </div>
                                        <div class="ml-4">
                                            <div class="text-sm font-medium text-dark">John Smith</div>
                                            <div class="text-sm text-gray-500">Marketing</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 20 - Jun 24</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Paid Leave</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                    <button class="text-green-600 hover:text-green-900 mr-3">Approve</button>
                                    <button class="text-red-600 hover:text-red-900">Deny</button>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <div class="flex-shrink-0 h-10 w-10">
                                            <img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/2" alt="">
                                        </div>
                                        <div class="ml-4">
                                            <div class="text-sm font-medium text-dark">Sarah Johnson</div>
                                            <div class="text-sm text-gray-500">Development</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jul 10 - Jul 14</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Vacation</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                    <button class="text-green-600 hover:text-green-900 mr-3">Approve</button>
                                    <button class="text-red-600 hover:text-red-900">Deny</button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            
            <!-- Recent Time Corrections -->
            <div class="bg-white rounded-xl shadow-md p-6">
                <div class="flex items-center justify-between mb-6">
                    <h2 class="text-lg font-medium text-dark">Recent Time Corrections</h2>
                    <button class="text-sm text-primary font-medium hover:text-primary-dark">View All</button>
                </div>
                
                <div class="overflow-x-auto">
                    <table class="min-w-full divide-y divide-gray-200">
                        <thead class="bg-gray-50">
                            <tr>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Employee</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Original Time</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Requested Change</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
                            </tr>
                        </thead>
                        <tbody class="bg-white divide-y divide-gray-200">
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <div class="flex-shrink-0 h-10 w-10">
                                            <img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/3" alt="">
                                        </div>
                                        <div class="ml-4">
                                            <div class="text-sm font-medium text-dark">Michael Brown</div>
                                            <div class="text-sm text-gray-500">Sales</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 12</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">9:30 AM - 5:30 PM</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">9:00 AM - 5:30 PM</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                    <button class="text-green-600 hover:text-green-900 mr-3">Approve</button>
                                    <button class="text-red-600 hover:text-red-900">Deny</button>
                                </td>
                            </tr>
                            <tr>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <div class="flex-shrink-0 h-10 w-10">
                                            <img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/4" alt="">
                                        </div>
                                        <div class="ml-4">
                                            <div class="text-sm font-medium text-dark">Emily Davis</div>
                                            <div class="text-sm text-gray-500">HR</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 13</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1:00 PM - 1:45 PM (Break)</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1:00 PM - 1:30 PM (Break)</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                    <button class="text-green-600 hover:text-green-900 mr-3">Approve</button>
                                    <button class="text-red-600 hover:text-red-900">Deny</button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>

    <script>
        feather.replace();
    </script>
</body>
</html>