MaritaMutemi commited on
Commit
686b797
Β·
verified Β·
1 Parent(s): 874fec2

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +575 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Admin
3
- emoji: πŸ”₯
4
- colorFrom: indigo
5
- colorTo: green
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: admin
3
+ emoji: 🐳
4
+ colorFrom: yellow
5
+ colorTo: pink
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,575 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Admin Portal - Analytics</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <script>
10
+ tailwind.config = {
11
+ theme: {
12
+ extend: {
13
+ colors: {
14
+ primary: '#4F46E5',
15
+ secondary: '#10B981',
16
+ dark: '#1F2937',
17
+ light: '#F9FAFB'
18
+ }
19
+ }
20
+ }
21
+ }
22
+ </script>
23
+ <style>
24
+ .sidebar {
25
+ transition: all 0.3s ease;
26
+ }
27
+ .report-card {
28
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
29
+ }
30
+ .report-card:hover {
31
+ transform: translateY(-2px);
32
+ box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
33
+ }
34
+ .tab-content {
35
+ display: none;
36
+ }
37
+ .tab-content.active {
38
+ display: block;
39
+ animation: fadeIn 0.3s ease;
40
+ }
41
+ @keyframes fadeIn {
42
+ from { opacity: 0; }
43
+ to { opacity: 1; }
44
+ }
45
+ .data-table {
46
+ width: 100%;
47
+ overflow-x: auto;
48
+ }
49
+ .dropdown-content {
50
+ display: none;
51
+ position: absolute;
52
+ min-width: 200px;
53
+ z-index: 1;
54
+ }
55
+ .dropdown:hover .dropdown-content {
56
+ display: block;
57
+ }
58
+ </style>
59
+ </head>
60
+ <body class="bg-gray-50 font-sans">
61
+ <div class="flex h-screen">
62
+ <!-- Sidebar -->
63
+ <div class="sidebar bg-white w-64 shadow-lg flex flex-col">
64
+ <div class="p-4 border-b border-gray-200">
65
+ <h1 class="text-xl font-bold text-primary">Admin Portal</h1>
66
+ </div>
67
+ <nav class="flex-1 overflow-y-auto">
68
+ <ul class="p-2">
69
+ <li class="mb-1">
70
+ <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded">
71
+ <i class="fas fa-tachometer-alt mr-3"></i>
72
+ <span>Dashboard</span>
73
+ </a>
74
+ </li>
75
+ <li class="mb-1">
76
+ <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded">
77
+ <i class="fas fa-store mr-3"></i>
78
+ <span>Merchants</span>
79
+ </a>
80
+ </li>
81
+ <li class="mb-1">
82
+ <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded">
83
+ <i class="fas fa-wallet mr-3"></i>
84
+ <span>Wallet</span>
85
+ </a>
86
+ </li>
87
+ <li class="mb-1">
88
+ <div class="dropdown relative">
89
+ <button class="flex items-center w-full p-2 text-gray-600 hover:bg-gray-100 rounded">
90
+ <i class="fas fa-chart-bar mr-3"></i>
91
+ <span>Reports</span>
92
+ <i class="fas fa-chevron-down ml-auto text-xs"></i>
93
+ </button>
94
+ <div class="dropdown-content bg-white shadow-lg rounded mt-1 py-1">
95
+ <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Transaction Reports</a>
96
+ <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Audit Logs</a>
97
+ <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100 bg-primary-100 text-primary font-medium">Analytics</a>
98
+ </div>
99
+ </div>
100
+ </li>
101
+ <li class="mb-1">
102
+ <div class="dropdown relative">
103
+ <button class="flex items-center w-full p-2 text-gray-600 hover:bg-gray-100 rounded">
104
+ <i class="fas fa-plug mr-3"></i>
105
+ <span>APIs</span>
106
+ <i class="fas fa-chevron-down ml-auto text-xs"></i>
107
+ </button>
108
+ <div class="dropdown-content bg-white shadow-lg rounded mt-1 py-1">
109
+ <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">API Status</a>
110
+ <a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">API Documentation</a>
111
+ </div>
112
+ </div>
113
+ </li>
114
+ <li class="mb-1">
115
+ <a href="#" class="flex items-center p-2 text-gray-600 hover:bg-gray-100 rounded">
116
+ <i class="fas fa-cog mr-3"></i>
117
+ <span>Settings</span>
118
+ </a>
119
+ </li>
120
+ </ul>
121
+ </nav>
122
+ <div class="p-4 border-t border-gray-200">
123
+ <div class="flex items-center">
124
+ <div class="w-10 h-10 rounded-full bg-primary flex items-center justify-center text-white">
125
+ <i class="fas fa-user"></i>
126
+ </div>
127
+ <div class="ml-3">
128
+ <p class="text-sm font-medium">Admin User</p>
129
+ <p class="text-xs text-gray-500">Super Admin</p>
130
+ </div>
131
+ </div>
132
+ </div>
133
+ </div>
134
+
135
+ <!-- Main Content -->
136
+ <div class="flex-1 overflow-y-auto">
137
+ <header class="bg-white shadow-sm p-4">
138
+ <div class="flex justify-between items-center">
139
+ <h2 class="text-xl font-semibold text-gray-800">Analytics Dashboard</h2>
140
+ <div class="flex items-center space-x-4">
141
+ <div class="relative">
142
+ <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">
143
+ <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
144
+ </div>
145
+ <button class="p-2 text-gray-500 hover:text-gray-700">
146
+ <i class="fas fa-bell"></i>
147
+ </button>
148
+ </div>
149
+ </div>
150
+ </header>
151
+
152
+ <main class="p-6">
153
+ <!-- Report Type Tabs -->
154
+ <div class="bg-white rounded-lg shadow mb-6">
155
+ <div class="border-b border-gray-200">
156
+ <nav class="flex -mb-px">
157
+ <button onclick="switchTab('endpoint')" class="tab-button py-4 px-6 border-b-2 font-medium text-sm active border-primary text-primary">
158
+ Endpoint Reports
159
+ </button>
160
+ <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">
161
+ Checks Summary
162
+ </button>
163
+ <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">
164
+ Customer Reports
165
+ </button>
166
+ <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">
167
+ Country Reports
168
+ </button>
169
+ <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">
170
+ TAT Metrics
171
+ </button>
172
+ <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">
173
+ Rework Reports
174
+ </button>
175
+ </nav>
176
+ </div>
177
+ </div>
178
+
179
+ <!-- Endpoint Reports Tab -->
180
+ <div id="endpoint" class="tab-content active">
181
+ <div class="bg-white rounded-lg shadow p-6 mb-6">
182
+ <div class="flex justify-between items-center mb-6">
183
+ <h3 class="text-lg font-semibold">Endpoint Reports</h3>
184
+ <div class="flex space-x-3">
185
+ <div class="relative">
186
+ <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">
187
+ <option>Select Endpoint</option>
188
+ <option>ID Verification</option>
189
+ <option>Company Search</option>
190
+ <option>NGO Search</option>
191
+ <option>Trust Search</option>
192
+ <option>Vehicle Search</option>
193
+ </select>
194
+ <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
195
+ <i class="fas fa-chevron-down"></i>
196
+ </div>
197
+ </div>
198
+ <button class="bg-primary hover:bg-primary-dark text-white py-2 px-4 rounded flex items-center">
199
+ <i class="fas fa-filter mr-2"></i> Filter
200
+ </button>
201
+ <div class="flex space-x-2">
202
+ <button class="bg-green-500 hover:bg-green-600 text-white py-2 px-4 rounded flex items-center">
203
+ <i class="fas fa-file-excel mr-2"></i> Excel
204
+ </button>
205
+ <button class="bg-red-500 hover:bg-red-600 text-white py-2 px-4 rounded flex items-center">
206
+ <i class="fas fa-file-pdf mr-2"></i> PDF
207
+ </button>
208
+ </div>
209
+ </div>
210
+ </div>
211
+
212
+ <div class="overflow-x-auto data-table">
213
+ <table class="min-w-full divide-y divide-gray-200">
214
+ <thead class="bg-gray-50">
215
+ <tr>
216
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
217
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Data Source</th>
218
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Check Type</th>
219
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
220
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Merchant</th>
221
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">User</th>
222
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Transaction</th>
223
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Response Time</th>
224
+ </tr>
225
+ </thead>
226
+ <tbody class="bg-white divide-y divide-gray-200">
227
+ <tr>
228
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-15 14:30</td>
229
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">IPRS</td>
230
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">ID Verification</td>
231
+ <td class="px-6 py-4 whitespace-nowrap">
232
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
233
+ </td>
234
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Safaricom Ltd</td>
235
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">john.doe@safaricom.co.ke</td>
236
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Debit</td>
237
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3 seconds</td>
238
+ </tr>
239
+ <tr>
240
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-15 14:25</td>
241
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">KRA</td>
242
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Company Search</td>
243
+ <td class="px-6 py-4 whitespace-nowrap">
244
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">In Progress</span>
245
+ </td>
246
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Equity Bank</td>
247
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">jane.smith@equitybank.co.ke</td>
248
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Credit</td>
249
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1 minute</td>
250
+ </tr>
251
+ <tr>
252
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-15 14:20</td>
253
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">NTSA</td>
254
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Vehicle Search</td>
255
+ <td class="px-6 py-4 whitespace-nowrap">
256
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Invalid</span>
257
+ </td>
258
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Uber Kenya</td>
259
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">mike.j@uber.co.ke</td>
260
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Refund</td>
261
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5 seconds</td>
262
+ </tr>
263
+ </tbody>
264
+ </table>
265
+ </div>
266
+
267
+ <div class="flex justify-between items-center mt-4">
268
+ <div class="text-sm text-gray-500">
269
+ Showing <span class="font-medium">1</span> to <span class="font-medium">10</span> of <span class="font-medium">97</span> results
270
+ </div>
271
+ <div class="flex space-x-2">
272
+ <button class="px-3 py-1 border rounded text-gray-700 bg-white hover:bg-gray-50">
273
+ Previous
274
+ </button>
275
+ <button class="px-3 py-1 border rounded bg-primary text-white hover:bg-primary-dark">
276
+ 1
277
+ </button>
278
+ <button class="px-3 py-1 border rounded text-gray-700 bg-white hover:bg-gray-50">
279
+ 2
280
+ </button>
281
+ <button class="px-3 py-1 border rounded text-gray-700 bg-white hover:bg-gray-50">
282
+ 3
283
+ </button>
284
+ <button class="px-3 py-1 border rounded text-gray-700 bg-white hover:bg-gray-50">
285
+ Next
286
+ </button>
287
+ </div>
288
+ </div>
289
+ </div>
290
+ </div>
291
+
292
+ <!-- Checks Summary Reports Tab -->
293
+ <div id="checks" class="tab-content">
294
+ <div class="bg-white rounded-lg shadow p-6 mb-6">
295
+ <div class="flex justify-between items-center mb-6">
296
+ <h3 class="text-lg font-semibold">Checks Summary Reports</h3>
297
+ <div class="flex space-x-3">
298
+ <div class="flex items-center space-x-2">
299
+ <span class="text-sm text-gray-600">From:</span>
300
+ <input type="date" class="border rounded px-3 py-1">
301
+ </div>
302
+ <div class="flex items-center space-x-2">
303
+ <span class="text-sm text-gray-600">To:</span>
304
+ <input type="date" class="border rounded px-3 py-1">
305
+ </div>
306
+ <button class="bg-primary hover:bg-primary-dark text-white py-2 px-4 rounded flex items-center">
307
+ <i class="fas fa-filter mr-2"></i> Apply
308
+ </button>
309
+ <div class="flex space-x-2">
310
+ <button class="bg-green-500 hover:bg-green-600 text-white py-2 px-4 rounded flex items-center">
311
+ <i class="fas fa-file-excel mr-2"></i> Excel
312
+ </button>
313
+ <button class="bg-red-500 hover:bg-red-600 text-white py-2 px-4 rounded flex items-center">
314
+ <i class="fas fa-file-pdf mr-2"></i> PDF
315
+ </button>
316
+ </div>
317
+ </div>
318
+ </div>
319
+
320
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-6">
321
+ <div class="report-card bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
322
+ <div class="flex justify-between items-start">
323
+ <div>
324
+ <p class="text-sm font-medium text-gray-500">ID with Image</p>
325
+ <p class="text-2xl font-semibold mt-1">40,000</p>
326
+ </div>
327
+ <div class="p-2 rounded-full bg-blue-50 text-blue-500">
328
+ <i class="fas fa-id-card"></i>
329
+ </div>
330
+ </div>
331
+ <div class="mt-4">
332
+ <div class="h-2 bg-gray-200 rounded-full">
333
+ <div class="h-2 bg-blue-500 rounded-full" style="width: 70%"></div>
334
+ </div>
335
+ </div>
336
+ </div>
337
+
338
+ <div class="report-card bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
339
+ <div class="flex justify-between items-start">
340
+ <div>
341
+ <p class="text-sm font-medium text-gray-500">Company Search</p>
342
+ <p class="text-2xl font-semibold mt-1">80,000</p>
343
+ </div>
344
+ <div class="p-2 rounded-full bg-green-50 text-green-500">
345
+ <i class="fas fa-building"></i>
346
+ </div>
347
+ </div>
348
+ <div class="mt-4">
349
+ <div class="h-2 bg-gray-200 rounded-full">
350
+ <div class="h-2 bg-green-500 rounded-full" style="width: 85%"></div>
351
+ </div>
352
+ </div>
353
+ </div>
354
+
355
+ <div class="report-card bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
356
+ <div class="flex justify-between items-start">
357
+ <div>
358
+ <p class="text-sm font-medium text-gray-500">Vehicle Search</p>
359
+ <p class="text-2xl font-semibold mt-1">25,000</p>
360
+ </div>
361
+ <div class="p-2 rounded-full bg-purple-50 text-purple-500">
362
+ <i class="fas fa-car"></i>
363
+ </div>
364
+ </div>
365
+ <div class="mt-4">
366
+ <div class="h-2 bg-gray-200 rounded-full">
367
+ <div class="h-2 bg-purple-500 rounded-full" style="width: 50%"></div>
368
+ </div>
369
+ </div>
370
+ </div>
371
+ </div>
372
+
373
+ <div class="overflow-x-auto data-table">
374
+ <table class="min-w-full divide-y divide-gray-200">
375
+ <thead class="bg-gray-50">
376
+ <tr>
377
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Endpoint</th>
378
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Total Checks</th>
379
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Percentage</th>
380
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Trend</th>
381
+ </tr>
382
+ </thead>
383
+ <tbody class="bg-white divide-y divide-gray-200">
384
+ <tr>
385
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">ID Verification</td>
386
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">40,000</td>
387
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">35%</td>
388
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
389
+ <i class="fas fa-arrow-up text-green-500 mr-1"></i> 12%
390
+ </td>
391
+ </tr>
392
+ <tr>
393
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Company Search</td>
394
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">80,000</td>
395
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">45%</td>
396
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
397
+ <i class="fas fa-arrow-up text-green-500 mr-1"></i> 8%
398
+ </td>
399
+ </tr>
400
+ <tr>
401
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Vehicle Search</td>
402
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">25,000</td>
403
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15%</td>
404
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
405
+ <i class="fas fa-arrow-down text-red-500 mr-1"></i> 5%
406
+ </td>
407
+ </tr>
408
+ <tr>
409
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">NGO Search</td>
410
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12,000</td>
411
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5%</td>
412
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
413
+ <i class="fas fa-arrow-up text-green-500 mr-1"></i> 2%
414
+ </td>
415
+ </tr>
416
+ </tbody>
417
+ </table>
418
+ </div>
419
+ </div>
420
+ </div>
421
+
422
+ <!-- Customer Reports Tab -->
423
+ <div id="customer" class="tab-content">
424
+ <div class="bg-white rounded-lg shadow p-6 mb-6">
425
+ <div class="flex justify-between items-center mb-6">
426
+ <h3 class="text-lg font-semibold">Customer Reports</h3>
427
+ <div class="flex space-x-3">
428
+ <div class="relative">
429
+ <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">
430
+ <option>All Customers</option>
431
+ <option>Safaricom Ltd</option>
432
+ <option>Equity Bank</option>
433
+ <option>Uber Kenya</option>
434
+ <option>KCB Bank</option>
435
+ </select>
436
+ <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
437
+ <i class="fas fa-chevron-down"></i>
438
+ </div>
439
+ </div>
440
+ <button class="bg-primary hover:bg-primary-dark text-white py-2 px-4 rounded flex items-center">
441
+ <i class="fas fa-filter mr-2"></i> Filter
442
+ </button>
443
+ <div class="flex space-x-2">
444
+ <button class="bg-green-500 hover:bg-green-600 text-white py-2 px-4 rounded flex items-center">
445
+ <i class="fas fa-file-excel mr-2"></i> Excel
446
+ </button>
447
+ <button class="bg-red-500 hover:bg-red-600 text-white py-2 px-4 rounded flex items-center">
448
+ <i class="fas fa-file-pdf mr-2"></i> PDF
449
+ </button>
450
+ </div>
451
+ </div>
452
+ </div>
453
+
454
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
455
+ <div class="report-card bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
456
+ <h4 class="text-md font-medium mb-4">Total Requests by Customer</h4>
457
+ <div class="space-y-4">
458
+ <div>
459
+ <div class="flex justify-between text-sm mb-1">
460
+ <span>Safaricom Ltd</span>
461
+ <span>32,000</span>
462
+ </div>
463
+ <div class="h-2 bg-gray-200 rounded-full">
464
+ <div class="h-2 bg-blue-500 rounded-full" style="width: 70%"></div>
465
+ </div>
466
+ </div>
467
+ <div>
468
+ <div class="flex justify-between text-sm mb-1">
469
+ <span>Equity Bank</span>
470
+ <span>28,500</span>
471
+ </div>
472
+ <div class="h-2 bg-gray-200 rounded-full">
473
+ <div class="h-2 bg-green-500 rounded-full" style="width: 62%"></div>
474
+ </div>
475
+ </div>
476
+ <div>
477
+ <div class="flex justify-between text-sm mb-1">
478
+ <span>Uber Kenya</span>
479
+ <span>15,200</span>
480
+ </div>
481
+ <div class="h-2 bg-gray-200 rounded-full">
482
+ <div class="h-2 bg-purple-500 rounded-full" style="width: 33%"></div>
483
+ </div>
484
+ </div>
485
+ <div>
486
+ <div class="flex justify-between text-sm mb-1">
487
+ <span>KCB Bank</span>
488
+ <span>12,800</span>
489
+ </div>
490
+ <div class="h-2 bg-gray-200 rounded-full">
491
+ <div class="h-2 bg-yellow-500 rounded-full" style="width: 28%"></div>
492
+ </div>
493
+ </div>
494
+ </div>
495
+ </div>
496
+
497
+ <div class="report-card bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
498
+ <h4 class="text-md font-medium mb-4">Revenue Generated by Customer</h4>
499
+ <div class="space-y-4">
500
+ <div>
501
+ <div class="flex justify-between text-sm mb-1">
502
+ <span>Safaricom Ltd</span>
503
+ <span>KES 1,280,000</span>
504
+ </div>
505
+ <div class="h-2 bg-gray-200 rounded-full">
506
+ <div class="h-2 bg-blue-500 rounded-full" style="width: 75%"></div>
507
+ </div>
508
+ </div>
509
+ <div>
510
+ <div class="flex justify-between text-sm mb-1">
511
+ <span>Equity Bank</span>
512
+ <span>KES 1,140,000</span>
513
+ </div>
514
+ <div class="h-2 bg-gray-200 rounded-full">
515
+ <div class="h-2 bg-green-500 rounded-full" style="width: 65%"></div>
516
+ </div>
517
+ </div>
518
+ <div>
519
+ <div class="flex justify-between text-sm mb-1">
520
+ <span>Uber Kenya</span>
521
+ <span>KES 608,000</span>
522
+ </div>
523
+ <div class="h-2 bg-gray-200 rounded-full">
524
+ <div class="h-2 bg-purple-500 rounded-full" style="width: 35%"></div>
525
+ </div>
526
+ </div>
527
+ <div>
528
+ <div class="flex justify-between text-sm mb-1">
529
+ <span>KCB Bank</span>
530
+ <span>KES 512,000</span>
531
+ </div>
532
+ <div class="h-2 bg-gray-200 rounded-full">
533
+ <div class="h-2 bg-yellow-500 rounded-full" style="width: 30%"></div>
534
+ </div>
535
+ </div>
536
+ </div>
537
+ </div>
538
+ </div>
539
+
540
+ <div class="overflow-x-auto data-table">
541
+ <table class="min-w-full divide-y divide-gray-200">
542
+ <thead class="bg-gray-50">
543
+ <tr>
544
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Customer</th>
545
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Total Requests</th>
546
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Revenue Generated</th>
547
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Avg. Response Time</th>
548
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Success Rate</th>
549
+ </tr>
550
+ </thead>
551
+ <tbody class="bg-white divide-y divide-gray-200">
552
+ <tr>
553
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Safaricom Ltd</td>
554
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">32,000</td>
555
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">KES 1,280,000</td>
556
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">4.2s</td>
557
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
558
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">98%</span>
559
+ </td>
560
+ </tr>
561
+ <tr>
562
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Equity Bank</td>
563
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">28,500</td>
564
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">KES 1,140,000</td>
565
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3.8s</td>
566
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
567
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">97%</span>
568
+ </td>
569
+ </tr>
570
+ <tr>
571
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Uber Kenya</td>
572
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15,200</td>
573
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">KES 608,000</td>
574
+ <td class="px-6 py-4 whites
575
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Admin Portal Structure (Vertical Sidebar): Dashboard Merchants Wallet Reports Analytics APIs API Status Settings Page to Design: ➑️ Analytics Page (under Reports) Purpose: Enable Admins to generate and download different reports in PDF or Excel format. Analytics Page Requirements: βœ… 1. Endpoint Reports Select an Endpoint (e.g., ID Verification, Company Search, etc.) Show: Date the check was run Data Source (e.g., IPRS, NTSA, KRA) Check Type (e.g., Company Search, NGO, Trust Search) Status of Check (Completed, In Progress, Invalid, etc.) Merchant Name User who ran the check Transaction Status (Debit, Credit, Refund) Response Time (e.g., 3 seconds, 1 minute) βœ… 2. Checks Summary Reports Select a Date Range Display: Total number of checks per Endpoint (e.g., ID with Image – 40,000, Company Search – 80,000) βœ… 3. Customer Reports Show per Customer: Total number of requests Total revenue generated βœ… 4. Country Reports Show: Country Type of Check Number of Checks performed per Country βœ… 5. TAT (Turnaround Time) Metrics Display: Total checks done within TAT Total checks done past TAT Breakdown by: Verification Analysts (VAs) Quality Assurance Analysts (QAs) Average TAT (overall, per VA, per QA) Breakdown per individual check type βœ… 6. Rework Reports Show: Total reports sent back for rework by QA Number of reworks per Verification Analyst (VA)