File size: 29,934 Bytes
8d23316
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>OrbitHRIS | Performance Evaluations</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
      tailwind.config = {
        theme: {
          extend: {
            colors: {
              primary: '#6366f1',
              secondary: '#8b5cf6',
            }
          }
        }
      }
    </script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <style>
      .nav-item.active {
        border-left: 4px solid #6366f1;
        background-color: rgba(99, 102, 241, 0.1);
      }
      .smooth-transition {
        transition: all 0.3s ease;
      }
      .card-hover: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);
      }
      .rating-excellent {
        background-color: #dcfce7;
        color: #166534;
      }
      .rating-good {
        background-color: #dbeafe;
        color: #1e40af;
      }
      .rating-average {
        background-color: #fef9c3;
        color: #92400e;
      }
      .rating-poor {
        background-color: #fee2e2;
        color: #991b1b;
      }
    </style>
</head>
<body class="bg-gray-50">
    <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-white border-r border-gray-200">
          <div class="flex items-center justify-center h-16 px-4 bg-primary-500">
            <div class="flex items-center">
              <i data-feather="globe" class="text-white mr-2"></i>
              <span class="text-white font-bold text-xl">OrbitHRIS</span>
            </div>
          </div>
          <div class="flex flex-col flex-grow px-4 py-4 overflow-y-auto">
            <div class="space-y-1">
              <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">
                <i data-feather="home" class="mr-3 h-5 w-5 text-gray-400"></i>
                Dashboard
              </a>
              <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">
                <i data-feather="users" class="mr-3 h-5 w-5 text-gray-400"></i>
                Employee Management
              </a>
              <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">
                <i data-feather="clock" class="mr-3 h-5 w-5 text-gray-400"></i>
                Attendance
              </a>
              <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">
                <i data-feather="dollar-sign" class="mr-3 h-5 w-5 text-gray-400"></i>
                Payroll
              </a>
              <a href="careermanagement.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">
                <i data-feather="bar-chart-2" class="mr-3 h-5 w-5 text-gray-400"></i>
                Career Management
              </a>
              <a href="evaluations.html" class="nav-item active flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-900">
                <i data-feather="clipboard" class="mr-3 h-5 w-5 text-primary-500"></i>
                Evaluations
              </a>
            </div>
            <div class="mt-auto mb-4">
              <div class="p-4 bg-gray-100 rounded-lg">
                <h4 class="text-sm font-medium text-gray-900">System Storage</h4>
                <div class="mt-2 w-full bg-gray-200 rounded-full h-2.5">
                  <div class="bg-primary-500 h-2.5 rounded-full" style="width: 65%"></div>
                </div>
                <p class="mt-1 text-xs text-gray-500">65% of 50GB used</p>
              </div>
            </div>
          </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 mr-2 text-gray-500">
              <i data-feather="menu"></i>
            </button>
            <h1 class="text-lg font-medium text-gray-900">Performance Evaluations</h1>
          </div>
          <div class="flex items-center space-x-4">
            <button class="p-1 text-gray-500 hover:text-gray-700">
              <i data-feather="bell"></i>
            </button>
            <div class="relative">
              <button class="flex items-center space-x-2 focus:outline-none">
                <div class="w-8 h-8 rounded-full bg-primary-100 flex items-center justify-center">
                  <i data-feather="user" class="text-primary-500"></i>
                </div>
                <span class="hidden md:inline text-sm font-medium">Admin</span>
                <i data-feather="chevron-down" class="hidden md:inline h-4 w-4"></i>
              </button>
            </div>
          </div>
        </div>

        <!-- Content -->
        <div class="flex-1 overflow-y-auto p-6 bg-gray-50">
          <!-- Evaluation Period Selector -->
          <div class="bg-white rounded-lg shadow-sm p-6 mb-6">
            <div class="flex flex-col md:flex-row md:items-center md:space-x-4 space-y-4 md:space-y-0">
              <div class="flex-1">
                <label class="block text-sm font-medium text-gray-700 mb-1">Evaluation Period</label>
                <select id="evaluationPeriod" 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">
                  <option value="monthly">Monthly Evaluation</option>
                  <option value="annual">Annual Evaluation</option>
                  <option value="quarterly">Quarterly Evaluation</option>
                </select>
              </div>
              <div>
                <label class="block text-sm font-medium text-gray-700 mb-1">Year</label>
                <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">
                  <option>2023</option>
                  <option>2022</option>
                  <option>2021</option>
                </select>
              </div>
              <div id="monthSelector" class="">
                <label class="block text-sm font-medium text-gray-700 mb-1">Month</label>
                <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">
                  <option>January</option>
                  <option>February</option>
                  <option>March</option>
                  <option>April</option>
                  <option>May</option>
                  <option>June</option>
                  <option>July</option>
                  <option>August</option>
                  <option>September</option>
                  <option>October</option>
                  <option>November</option>
                  <option>December</option>
                </select>
              </div>
              <div class="md:ml-auto flex items-end">
                <button 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">
                  <i data-feather="refresh-cw" class="mr-2 h-4 w-4"></i>
                  Generate Report
                </button>
              </div>
            </div>
          </div>

          <!-- Performance Overview -->
          <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
            <!-- Performance Distribution Chart -->
            <div class="lg:col-span-2 bg-white rounded-lg shadow-sm p-6 smooth-transition card-hover">
              <div class="flex items-center justify-between mb-4">
                <h2 class="text-lg font-medium text-gray-900">Performance Distribution</h2>
                <select class="text-sm border-gray-200 rounded-md focus:ring-primary-500 focus:border-primary-500">
                  <option>All Departments</option>
                  <option>Sales</option>
                  <option>Marketing</option>
                  <option>Engineering</option>
                  <option>HR</option>
                  <option>Finance</option>
                </select>
              </div>
              <div class="h-64">
                <canvas id="performanceChart"></canvas>
              </div>
            </div>
            
            <!-- KPI Completion Rate -->
            <div class="bg-white rounded-lg shadow-sm p-6 smooth-transition card-hover">
              <div class="flex items-center justify-between mb-4">
                <h2 class="text-lg font-medium text-gray-900">KPI Completion Rate</h2>
              </div>
              <div class="flex items-center justify-center h-48">
                <div class="relative w-40 h-40">
                  <canvas id="kpiCompletionChart"></canvas>
                  <div class="absolute inset-0 flex items-center justify-center">
                    <span class="text-2xl font-bold text-gray-900">78%</span>
                  </div>
                </div>
              </div>
              <div class="mt-4 text-center">
                <p class="text-sm text-gray-500">Average KPI completion rate across all employees</p>
              </div>
            </div>
          </div>

          <!-- Employee Evaluations -->
          <div class="bg-white rounded-lg shadow-sm overflow-hidden mb-6">
            <div class="flex items-center justify-between p-6 border-b border-gray-200">
              <h2 class="text-lg font-medium text-gray-900">Employee Evaluations</h2>
              <div class="flex space-x-3">
                <button 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">
                  <i data-feather="download" class="mr-2 h-4 w-4"></i>
                  Export
                </button>
                <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">
                  <i data-feather="printer" class="mr-2 h-4 w-4"></i>
                  Print
                </button>
              </div>
            </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">
                      Department
                    </th>
                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
                      KPI Completion
                    </th>
                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
                      Performance Rating
                    </th>
                    <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
                      Manager Review
                    </th>
                    <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">
                      Actions
                    </th>
                  </tr>
                </thead>
                <tbody class="bg-white divide-y divide-gray-200">
                  <tr class="hover:bg-gray-50">
                    <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-gray-900">Michael Chen</div>
                          <div class="text-sm text-gray-500">Sales Manager</div>
                        </div>
                      </div>
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap">
                      <div class="text-sm text-gray-900">Sales</div>
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap">
                      <div class="w-full bg-gray-200 rounded-full h-2.5">
                        <div class="bg-green-500 h-2.5 rounded-full" style="width: 92%"></div>
                      </div>
                      <div class="text-xs text-gray-500 mt-1">92% of KPIs completed</div>
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap">
                      <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full rating-excellent">
                        Excellent
                      </span>
                    </td>
                    <td class="px-6 py-4">
                      <div class="text-sm text-gray-900 line-clamp-2">Exceeded all sales targets and contributed significantly to team success.</div>
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                      <button class="text-primary-500 hover:text-primary-700 mr-3">
                        <i data-feather="eye"></i>
                      </button>
                      <button class="text-yellow-500 hover:text-yellow-700 mr-3">
                        <i data-feather="edit"></i>
                      </button>
                      <button class="text-gray-500 hover:text-gray-700">
                        <i data-feather="more-vertical"></i>
                      </button>
                    </td>
                  </tr>
                  <tr class="hover:bg-gray-50">
                    <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-gray-900">Jessica Williams</div>
                          <div class="text-sm text-gray-500">Marketing Director</div>
                        </div>
                      </div>
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap">
                      <div class="text-sm text-gray-900">Marketing</div>
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap">
                      <div class="w-full bg-gray-200 rounded-full h-2.5">
                        <div class="bg-blue-500 h-2.5 rounded-full" style="width: 85%"></div>
                      </div>
                      <div class="text-xs text-gray-500 mt-1">85% of KPIs completed</div>
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap">
                      <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full rating-good">
                        Good
                      </span>
                    </td>
                    <td class="px-6 py-4">
                      <div class="text-sm text-gray-900 line-clamp-2">Met most objectives and showed strong leadership in campaigns.</div>
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                      <button class="text-primary-500 hover:text-primary-700 mr-3">
                        <i data-feather="eye"></i>
                      </button>
                      <button class="text-yellow-500 hover:text-yellow-700 mr-3">
                        <i data-feather="edit"></i>
                      </button>
                      <button class="text-gray-500 hover:text-gray-700">
                        <i data-feather="more-vertical"></i>
                      </button>
                    </td>
                  </tr>
                  <tr class="hover:bg-gray-50">
                    <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-gray-900">David Kim</div>
                          <div class="text-sm text-gray-500">Senior Developer</div>
                        </div>
                      </div>
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap">
                      <div class="text-sm text-gray-900">Engineering</div>
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap">
                      <div class="w-full bg-gray-200 rounded-full h-2.5">
                        <div class="bg-yellow-500 h-2.5 rounded-full" style="width: 70%"></div>
                      </div>
                      <div class="text-xs text-gray-500 mt-1">70% of KPIs completed</div>
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap">
                      <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full rating-average">
                        Average
                      </span>
                    </td>
                    <td class="px-6 py-4">
                      <div class="text-sm text-gray-900 line-clamp-2">Technical skills are excellent but needs improvement in meeting deadlines.</div>
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                      <button class="text-primary-500 hover:text-primary-700 mr-3">
                        <i data-feather="eye"></i>
                      </button>
                      <button class="text-yellow-500 hover:text-yellow-700 mr-3">
                        <i data-feather="edit"></i>
                      </button>
                      <button class="text-gray-500 hover:text-gray-700">
                        <i data-feather="more-vertical"></i>
                      </button>
                    </td>
                  </tr>
                  <tr class="hover:bg-gray-50">
                    <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-gray-900">Emma Rodriguez</div>
                          <div class="text-sm text-gray-500">HR Manager</div>
                        </div>
                      </div>
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap">
                      <div class="text-sm text-gray-900">HR</div>
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap">
                      <div class="w-full bg-gray-200 rounded-full h-2.5">
                        <div class="bg-red-500 h-2.5 rounded-full" style="width: 55%"></div>
                      </div>
                      <div class="text-xs text-gray-500 mt-1">55% of KPIs completed</div>
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap">
                      <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full rating-poor">
                        Needs Improvement
                      </span>
                    </td>
                    <td class="px-6 py-4">
                      <div class="text-sm text-gray-900 line-clamp-2">Struggled with new HR software implementation, affecting performance metrics.</div>
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
                      <button class="text-primary-500 hover:text-primary-700 mr-3">
                        <i data="eye"></i>
                      </button>
                      <button class="text-yellow-500 hover:text-yellow-700 mr-3">
                        <i data="edit"></i>
                      </button>
                      <button class="text-gray-500 hover:text-gray-700">
                        <i data="more-vertical"></i>
                      </button>
                    </td>
                  </tr>
                </tbody>
              </table>
            </div>
            <!-- Pagination -->
            <div class="bg-white px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6">
              <div class="flex-1 flex justify-between sm:hidden">
                <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">
                  Previous
                </a>
                <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">
                  Next
                </a>
              </div>
              <div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
                <div>
                  <p class="text-sm text-gray-700">
                    Showing <span class="font-medium">1</span> to <span class="font-medium">4</span> of <span class="font-medium">1248</span> results
                  </p>
                </div>
                <div>
                  <nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
                    <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">
                      <span class="sr-only">Previous</span>
                      <i data-feather="chevron-left" class="h-5 w-5"></i>
                    </a>
                    <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">
                      1
                    </a>
                    <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">
                      2
                    </a>
                    <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">
                      3
                    </a>
                    <span class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700">
                      ...
                    </span>
                    <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">
                      8
                    </a>
                    <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">
                      <span class="sr-only">Next</span>
                      <i data-feather="chevron-right" class="h-5 w-5"></i>
                    </a>
                  </nav>
                </div>
              </div>
            </div>
          </div>

          <!-- Evaluation Summary -->
          <div class="bg-white rounded-lg shadow-sm p-6">
            <h2 class="text-lg font-medium text-gray-900 mb-4">Evaluation Summary</h2>
            <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
              <div class="bg-gray-50 p-6 rounded-md">
                <h3 class="text-md font-medium text-gray-900 mb-3">Performance Rating Distribution</h3>
                <div class="h-64">
                  <canvas id="ratingDistributionChart"></canvas>
                </div>
              </div>
              <div class="bg-gray-50 p-6 rounded-md">
                <h3 class="text-md font-medium text-gray-900 mb-3">Department Comparison</h3>
                <div class="h-64">
                  <canvas id="departmentComparisonChart"></canvas>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <script>
      feather.replace();

      // Toggle month selector based on evaluation period
      document.getElementById('evaluationPeriod').addEventListener('change', function() {
        const monthSelector = document.getElementById('monthSelector');
        if (this.value === 'monthly') {
          monthSelector.classList.remove('hidden');
        } else {
          monthSelector.classList.add('hidden');
        }
      });

      // Performance Distribution Chart
      const performanceCtx = document.getElementById('performanceChart').getContext('2d');
      const performanceChart = new Chart(performanceCtx, {
        type: 'bar',
        data: {
          labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
          datasets: [{
            label: 'Average Performance Score',
            data: [78, 82, 85, 80, 83, 86, 84, 87, 85, 88, 90, 92],
            backgroundColor: '#6366f1',
            borderWidth: 0
          }]
        },
        options: {
          responsive: true,
          maintainAspectRatio: false,
          plugins: {
            legend: {
              display: false
            }
          },
          scales: {
            y: {
              beginAtZero: false,
              min: 70,
              max: 100
            }
          }
        }
      });

      // KPI Completion Chart
      const kpiCompletionCtx = document.getElementById('kpiCompletionChart').getContext('2d');
      const kpiCompletionChart = new Chart(kpiCompletionCtx, {
        type: 'doughnut',
        data: {
          labels: ['Completed', 'Pending'],
          datasets: [{
            data: [78, 22],
            backgroundColor: ['#10b981', '#e5e7eb'],
            borderWidth: 0
          }]
        },
        options: {
          responsive: true,
          cutout: '70%',
          plugins: {
            legend: {
              display: false
            }
          }
        }
      });

      // Rating Distribution Chart
      const ratingDistributionCtx = document.getElementById('ratingDistributionChart').getContext('2d');
      const ratingDistributionChart = new Chart(ratingDistributionCtx, {
        type: 'pie',
        data: {
          labels: ['Excellent', 'Good', 'Average', 'Needs Improvement'],
          datasets: [{
            data: [25, 45, 20, 10],
            backgroundColor: ['#166534', '#1e40af', '#92400e', '#991b1b'],
            borderWidth: 0
          }]
        },
        options: {
          responsive: true,
          plugins: {
            legend: {
              position: 'right',
            }
          }
        }
      });

      // Department Comparison Chart
      const departmentComparisonCtx = document.getElementById('departmentComparisonChart').getContext('2d');
      const departmentComparisonChart = new Chart(departmentComparisonCtx, {
        type: 'radar',
        data: {
          labels: ['Sales', 'Marketing', 'Engineering', 'HR', 'Finance'],
          datasets: [
            {
              label: 'KPI Completion',
              data: [92, 85, 70, 55, 80],
              backgroundColor: 'rgba(99, 102, 241, 0.2)',
              borderColor: '#6366f1',
              borderWidth: 2
            },
            {
              label: 'Performance Rating',
              data: [88, 82, 75, 65, 78],
              backgroundColor: 'rgba(139, 92, 246, 0.2)',
              borderColor: '#8b5cf6',
              borderWidth: 2
            }
          ]
        },
        options: {
          responsive: true,
          scales: {
            r: {
              angleLines: {
                display: true
              },
              suggestedMin: 50,
              suggestedMax: 100
            }
          }
        }
      });
    </script>
</body>
</html>