File size: 38,795 Bytes
686b797
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Admin Portal - Analytics</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#4F46E5',
                        secondary: '#10B981',
                        dark: '#1F2937',
                        light: '#F9FAFB'
                    }
                }
            }
        }
    </script>
    <style>
        .sidebar {
            transition: all 0.3s ease;
        }
        .report-card {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .report-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        }
        .tab-content {
            display: none;
        }
        .tab-content.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .data-table {
            width: 100%;
            overflow-x: auto;
        }
        .dropdown-content {
            display: none;
            position: absolute;
            min-width: 200px;
            z-index: 1;
        }
        .dropdown:hover .dropdown-content {
            display: block;
        }
    </style>
</head>
<body class="bg-gray-50 font-sans">
    <div class="flex h-screen">
        <!-- Sidebar -->
        <div class="sidebar bg-white w-64 shadow-lg flex flex-col">
            <div class="p-4 border-b border-gray-200">
                <h1 class="text-xl font-bold text-primary">Admin Portal</h1>
            </div>
            <nav class="flex-1 overflow-y-auto">
                <ul class="p-2">
                    <li class="mb-1">
                        <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded">
                            <i class="fas fa-tachometer-alt mr-3"></i>
                            <span>Dashboard</span>
                        </a>
                    </li>
                    <li class="mb-1">
                        <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded">
                            <i class="fas fa-store mr-3"></i>
                            <span>Merchants</span>
                        </a>
                    </li>
                    <li class="mb-1">
                        <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded">
                            <i class="fas fa-wallet mr-3"></i>
                            <span>Wallet</span>
                        </a>
                    </li>
                    <li class="mb-1">
                        <div class="dropdown relative">
                            <button class="flex items-center w-full p-2 text-gray-600 hover:bg-gray-100 rounded">
                                <i class="fas fa-chart-bar mr-3"></i>
                                <span>Reports</span>
                                <i class="fas fa-chevron-down ml-auto text-xs"></i>
                            </button>
                            <div class="dropdown-content bg-white shadow-lg rounded mt-1 py-1">
                                <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Transaction Reports</a>
                                <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Audit Logs</a>
                                <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100 bg-primary-100 text-primary font-medium">Analytics</a>
                            </div>
                        </div>
                    </li>
                    <li class="mb-1">
                        <div class="dropdown relative">
                            <button class="flex items-center w-full p-2 text-gray-600 hover:bg-gray-100 rounded">
                                <i class="fas fa-plug mr-3"></i>
                                <span>APIs</span>
                                <i class="fas fa-chevron-down ml-auto text-xs"></i>
                            </button>
                            <div class="dropdown-content bg-white shadow-lg rounded mt-1 py-1">
                                <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">API Status</a>
                                <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">API Documentation</a>
                            </div>
                        </div>
                    </li>
                    <li class="mb-1">
                        <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded">
                            <i class="fas fa-cog mr-3"></i>
                            <span>Settings</span>
                        </a>
                    </li>
                </ul>
            </nav>
            <div class="p-4 border-t border-gray-200">
                <div class="flex items-center">
                    <div class="w-10 h-10 rounded-full bg-primary flex items-center justify-center text-white">
                        <i class="fas fa-user"></i>
                    </div>
                    <div class="ml-3">
                        <p class="text-sm font-medium">Admin User</p>
                        <p class="text-xs text-gray-500">Super Admin</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- Main Content -->
        <div class="flex-1 overflow-y-auto">
            <header class="bg-white shadow-sm p-4">
                <div class="flex justify-between items-center">
                    <h2 class="text-xl font-semibold text-gray-800">Analytics Dashboard</h2>
                    <div class="flex items-center space-x-4">
                        <div class="relative">
                            <input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
                            <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                        </div>
                        <button class="p-2 text-gray-500 hover:text-gray-700">
                            <i class="fas fa-bell"></i>
                        </button>
                    </div>
                </div>
            </header>

            <main class="p-6">
                <!-- Report Type Tabs -->
                <div class="bg-white rounded-lg shadow mb-6">
                    <div class="border-b border-gray-200">
                        <nav class="flex -mb-px">
                            <button onclick="switchTab('endpoint')" class="tab-button py-4 px-6 border-b-2 font-medium text-sm active border-primary text-primary">
                                Endpoint Reports
                            </button>
                            <button onclick="switchTab('checks')" class="tab-button py-4 px-6 border-b-2 font-medium text-sm border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300">
                                Checks Summary
                            </button>
                            <button onclick="switchTab('customer')" class="tab-button py-4 px-6 border-b-2 font-medium text-sm border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300">
                                Customer Reports
                            </button>
                            <button onclick="switchTab('country')" class="tab-button py-4 px-6 border-b-2 font-medium text-sm border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300">
                                Country Reports
                            </button>
                            <button onclick="switchTab('tat')" class="tab-button py-4 px-6 border-b-2 font-medium text-sm border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300">
                                TAT Metrics
                            </button>
                            <button onclick="switchTab('rework')" class="tab-button py-4 px-6 border-b-2 font-medium text-sm border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300">
                                Rework Reports
                            </button>
                        </nav>
                    </div>
                </div>

                <!-- Endpoint Reports Tab -->
                <div id="endpoint" class="tab-content active">
                    <div class="bg-white rounded-lg shadow p-6 mb-6">
                        <div class="flex justify-between items-center mb-6">
                            <h3 class="text-lg font-semibold">Endpoint Reports</h3>
                            <div class="flex space-x-3">
                                <div class="relative">
                                    <select class="block appearance-none bg-gray-100 border border-gray-200 text-gray-700 py-2 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-primary">
                                        <option>Select Endpoint</option>
                                        <option>ID Verification</option>
                                        <option>Company Search</option>
                                        <option>NGO Search</option>
                                        <option>Trust Search</option>
                                        <option>Vehicle Search</option>
                                    </select>
                                    <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
                                        <i class="fas fa-chevron-down"></i>
                                    </div>
                                </div>
                                <button class="bg-primary hover:bg-primary-dark text-white py-2 px-4 rounded flex items-center">
                                    <i class="fas fa-filter mr-2"></i> Filter
                                </button>
                                <div class="flex space-x-2">
                                    <button class="bg-green-500 hover:bg-green-600 text-white py-2 px-4 rounded flex items-center">
                                        <i class="fas fa-file-excel mr-2"></i> Excel
                                    </button>
                                    <button class="bg-red-500 hover:bg-red-600 text-white py-2 px-4 rounded flex items-center">
                                        <i class="fas fa-file-pdf mr-2"></i> PDF
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <div class="overflow-x-auto data-table">
                            <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">Date</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Data Source</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Check 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">Merchant</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">User</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Transaction</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Response Time</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-15 14:30</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">IPRS</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">ID Verification</td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Safaricom Ltd</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">john.doe@safaricom.co.ke</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Debit</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3 seconds</td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-15 14:25</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">KRA</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Company Search</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">In Progress</span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Equity Bank</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">jane.smith@equitybank.co.ke</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Credit</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1 minute</td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-15 14:20</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">NTSA</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Vehicle Search</td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Invalid</span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Uber Kenya</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">mike.j@uber.co.ke</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Refund</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5 seconds</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        
                        <div class="flex justify-between items-center mt-4">
                            <div class="text-sm text-gray-500">
                                Showing <span class="font-medium">1</span> to <span class="font-medium">10</span> of <span class="font-medium">97</span> results
                            </div>
                            <div class="flex space-x-2">
                                <button class="px-3 py-1 border rounded text-gray-700 bg-white hover:bg-gray-50">
                                    Previous
                                </button>
                                <button class="px-3 py-1 border rounded bg-primary text-white hover:bg-primary-dark">
                                    1
                                </button>
                                <button class="px-3 py-1 border rounded text-gray-700 bg-white hover:bg-gray-50">
                                    2
                                </button>
                                <button class="px-3 py-1 border rounded text-gray-700 bg-white hover:bg-gray-50">
                                    3
                                </button>
                                <button class="px-3 py-1 border rounded text-gray-700 bg-white hover:bg-gray-50">
                                    Next
                                </button>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Checks Summary Reports Tab -->
                <div id="checks" class="tab-content">
                    <div class="bg-white rounded-lg shadow p-6 mb-6">
                        <div class="flex justify-between items-center mb-6">
                            <h3 class="text-lg font-semibold">Checks Summary Reports</h3>
                            <div class="flex space-x-3">
                                <div class="flex items-center space-x-2">
                                    <span class="text-sm text-gray-600">From:</span>
                                    <input type="date" class="border rounded px-3 py-1">
                                </div>
                                <div class="flex items-center space-x-2">
                                    <span class="text-sm text-gray-600">To:</span>
                                    <input type="date" class="border rounded px-3 py-1">
                                </div>
                                <button class="bg-primary hover:bg-primary-dark text-white py-2 px-4 rounded flex items-center">
                                    <i class="fas fa-filter mr-2"></i> Apply
                                </button>
                                <div class="flex space-x-2">
                                    <button class="bg-green-500 hover:bg-green-600 text-white py-2 px-4 rounded flex items-center">
                                        <i class="fas fa-file-excel mr-2"></i> Excel
                                    </button>
                                    <button class="bg-red-500 hover:bg-red-600 text-white py-2 px-4 rounded flex items-center">
                                        <i class="fas fa-file-pdf mr-2"></i> PDF
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-6">
                            <div class="report-card bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
                                <div class="flex justify-between items-start">
                                    <div>
                                        <p class="text-sm font-medium text-gray-500">ID with Image</p>
                                        <p class="text-2xl font-semibold mt-1">40,000</p>
                                    </div>
                                    <div class="p-2 rounded-full bg-blue-50 text-blue-500">
                                        <i class="fas fa-id-card"></i>
                                    </div>
                                </div>
                                <div class="mt-4">
                                    <div class="h-2 bg-gray-200 rounded-full">
                                        <div class="h-2 bg-blue-500 rounded-full" style="width: 70%"></div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="report-card bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
                                <div class="flex justify-between items-start">
                                    <div>
                                        <p class="text-sm font-medium text-gray-500">Company Search</p>
                                        <p class="text-2xl font-semibold mt-1">80,000</p>
                                    </div>
                                    <div class="p-2 rounded-full bg-green-50 text-green-500">
                                        <i class="fas fa-building"></i>
                                    </div>
                                </div>
                                <div class="mt-4">
                                    <div class="h-2 bg-gray-200 rounded-full">
                                        <div class="h-2 bg-green-500 rounded-full" style="width: 85%"></div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="report-card bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
                                <div class="flex justify-between items-start">
                                    <div>
                                        <p class="text-sm font-medium text-gray-500">Vehicle Search</p>
                                        <p class="text-2xl font-semibold mt-1">25,000</p>
                                    </div>
                                    <div class="p-2 rounded-full bg-purple-50 text-purple-500">
                                        <i class="fas fa-car"></i>
                                    </div>
                                </div>
                                <div class="mt-4">
                                    <div class="h-2 bg-gray-200 rounded-full">
                                        <div class="h-2 bg-purple-500 rounded-full" style="width: 50%"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="overflow-x-auto data-table">
                            <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">Endpoint</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Total Checks</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Percentage</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Trend</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">ID Verification</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">40,000</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">35%</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            <i class="fas fa-arrow-up text-green-500 mr-1"></i> 12%
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Company Search</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">80,000</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">45%</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            <i class="fas fa-arrow-up text-green-500 mr-1"></i> 8%
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Vehicle Search</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">25,000</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15%</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            <i class="fas fa-arrow-down text-red-500 mr-1"></i> 5%
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">NGO Search</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12,000</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">
                                            <i class="fas fa-arrow-up text-green-500 mr-1"></i> 2%
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>

                <!-- Customer Reports Tab -->
                <div id="customer" class="tab-content">
                    <div class="bg-white rounded-lg shadow p-6 mb-6">
                        <div class="flex justify-between items-center mb-6">
                            <h3 class="text-lg font-semibold">Customer Reports</h3>
                            <div class="flex space-x-3">
                                <div class="relative">
                                    <select class="block appearance-none bg-gray-100 border border-gray-200 text-gray-700 py-2 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-primary">
                                        <option>All Customers</option>
                                        <option>Safaricom Ltd</option>
                                        <option>Equity Bank</option>
                                        <option>Uber Kenya</option>
                                        <option>KCB Bank</option>
                                    </select>
                                    <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
                                        <i class="fas fa-chevron-down"></i>
                                    </div>
                                </div>
                                <button class="bg-primary hover:bg-primary-dark text-white py-2 px-4 rounded flex items-center">
                                    <i class="fas fa-filter mr-2"></i> Filter
                                </button>
                                <div class="flex space-x-2">
                                    <button class="bg-green-500 hover:bg-green-600 text-white py-2 px-4 rounded flex items-center">
                                        <i class="fas fa-file-excel mr-2"></i> Excel
                                    </button>
                                    <button class="bg-red-500 hover:bg-red-600 text-white py-2 px-4 rounded flex items-center">
                                        <i class="fas fa-file-pdf mr-2"></i> PDF
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
                            <div class="report-card bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
                                <h4 class="text-md font-medium mb-4">Total Requests by Customer</h4>
                                <div class="space-y-4">
                                    <div>
                                        <div class="flex justify-between text-sm mb-1">
                                            <span>Safaricom Ltd</span>
                                            <span>32,000</span>
                                        </div>
                                        <div class="h-2 bg-gray-200 rounded-full">
                                            <div class="h-2 bg-blue-500 rounded-full" style="width: 70%"></div>
                                        </div>
                                    </div>
                                    <div>
                                        <div class="flex justify-between text-sm mb-1">
                                            <span>Equity Bank</span>
                                            <span>28,500</span>
                                        </div>
                                        <div class="h-2 bg-gray-200 rounded-full">
                                            <div class="h-2 bg-green-500 rounded-full" style="width: 62%"></div>
                                        </div>
                                    </div>
                                    <div>
                                        <div class="flex justify-between text-sm mb-1">
                                            <span>Uber Kenya</span>
                                            <span>15,200</span>
                                        </div>
                                        <div class="h-2 bg-gray-200 rounded-full">
                                            <div class="h-2 bg-purple-500 rounded-full" style="width: 33%"></div>
                                        </div>
                                    </div>
                                    <div>
                                        <div class="flex justify-between text-sm mb-1">
                                            <span>KCB Bank</span>
                                            <span>12,800</span>
                                        </div>
                                        <div class="h-2 bg-gray-200 rounded-full">
                                            <div class="h-2 bg-yellow-500 rounded-full" style="width: 28%"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="report-card bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
                                <h4 class="text-md font-medium mb-4">Revenue Generated by Customer</h4>
                                <div class="space-y-4">
                                    <div>
                                        <div class="flex justify-between text-sm mb-1">
                                            <span>Safaricom Ltd</span>
                                            <span>KES 1,280,000</span>
                                        </div>
                                        <div class="h-2 bg-gray-200 rounded-full">
                                            <div class="h-2 bg-blue-500 rounded-full" style="width: 75%"></div>
                                        </div>
                                    </div>
                                    <div>
                                        <div class="flex justify-between text-sm mb-1">
                                            <span>Equity Bank</span>
                                            <span>KES 1,140,000</span>
                                        </div>
                                        <div class="h-2 bg-gray-200 rounded-full">
                                            <div class="h-2 bg-green-500 rounded-full" style="width: 65%"></div>
                                        </div>
                                    </div>
                                    <div>
                                        <div class="flex justify-between text-sm mb-1">
                                            <span>Uber Kenya</span>
                                            <span>KES 608,000</span>
                                        </div>
                                        <div class="h-2 bg-gray-200 rounded-full">
                                            <div class="h-2 bg-purple-500 rounded-full" style="width: 35%"></div>
                                        </div>
                                    </div>
                                    <div>
                                        <div class="flex justify-between text-sm mb-1">
                                            <span>KCB Bank</span>
                                            <span>KES 512,000</span>
                                        </div>
                                        <div class="h-2 bg-gray-200 rounded-full">
                                            <div class="h-2 bg-yellow-500 rounded-full" style="width: 30%"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="overflow-x-auto data-table">
                            <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">Customer</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Total Requests</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Revenue Generated</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Avg. Response Time</th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Success Rate</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Safaricom Ltd</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">32,000</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">KES 1,280,000</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">4.2s</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">98%</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Equity Bank</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">28,500</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">KES 1,140,000</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3.8s</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">97%</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Uber Kenya</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15,200</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">KES 608,000</td>
                                        <td class="px-6 py-4 whites
</html>