Spaces:
Running
Running
File size: 19,666 Bytes
820fd96 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Dashboard - DeliveryPal</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: '#FF6B35',
secondary: '#6E0D88',
}
}
}
}
</script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
.sidebar {
transition: all 0.3s ease;
}
.sidebar-item:hover {
background-color: rgba(255, 107, 53, 0.1);
}
.sidebar-item.active {
background-color: rgba(255, 107, 53, 0.2);
border-left: 3px solid #FF6B35;
}
.badge {
font-size: 0.75rem;
}
</style>
</head>
<body class="font-sans bg-gray-100">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-white w-64 flex-shrink-0 shadow-md">
<div class="p-4 border-b border-gray-200">
<div class="flex items-center">
<i data-feather="truck" class="text-primary h-8 w-8"></i>
<span class="ml-2 text-xl font-bold text-primary">DeliveryPal</span>
<span class="ml-2 px-2 py-1 bg-secondary text-white text-xs rounded-full">Admin</span>
</div>
</div>
<div class="p-4">
<div class="mb-8">
<div class="flex items-center mb-4">
<div class="w-10 h-10 rounded-full bg-primary bg-opacity-20 flex items-center justify-center">
<i data-feather="user" class="text-primary"></i>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">Admin User</p>
<p class="text-xs text-gray-500">Super Admin</p>
</div>
</div>
</div>
<nav class="space-y-1">
<a href="#" class="sidebar-item active flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-900">
<i data-feather="home" class="mr-3 h-5 w-5"></i>
Dashboard
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:text-gray-900">
<i data-feather="users" class="mr-3 h-5 w-5"></i>
Users
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:text-gray-900">
<i data-feather="truck" class="mr-3 h-5 w-5"></i>
Riders
<span class="ml-auto bg-secondary text-white text-xs px-2 py-1 rounded-full">24</span>
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:text-gray-900">
<i data-feather="briefcase" class="mr-3 h-5 w-5"></i>
Businesses
<span class="ml-auto bg-secondary text-white text-xs px-2 py-1 rounded-full">15</span>
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:text-gray-900">
<i data-feather="package" class="mr-3 h-5 w-5"></i>
Deliveries
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:text-gray-900">
<i data-feather="file-text" class="mr-3 h-5 w-5"></i>
KYC Approvals
<span class="ml-auto bg-secondary text-white text-xs px-2 py-1 rounded-full">8</span>
</a>
<a href="#" class="sidebar-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:text-gray-900">
<i data-feather="settings" class="mr-3 h-5 w-5"></i>
Settings
</a>
</nav>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 overflow-auto">
<!-- Top Navigation -->
<header class="bg-white shadow-sm">
<div class="px-4 sm:px-6 lg:px-8 py-4 flex justify-between items-center">
<h1 class="text-2xl font-semibold text-gray-900">KYC Approvals</h1>
<div class="flex items-center space-x-4">
<button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none">
<i data-feather="bell"></i>
</button>
<button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none">
<i data-feather="help-circle"></i>
</button>
</div>
</div>
</header>
<!-- Main Content Area -->
<main class="p-6">
<div class="bg-white shadow rounded-lg overflow-hidden">
<div class="px-6 py-4 border-b border-gray-200">
<div class="flex items-center justify-between">
<h2 class="text-lg font-medium text-gray-900">Pending KYC Verifications</h2>
<div class="flex space-x-3">
<div class="relative">
<input type="text" placeholder="Search applications..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
<i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i>
</div>
<select class="border border-gray-300 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
<option>Filter by</option>
<option>Riders</option>
<option>Businesses</option>
<option>Newest</option>
<option>Oldest</option>
</select>
</div>
</div>
</div>
<div class="divide-y divide-gray-200">
<!-- KYC Application 1 -->
<div class="px-6 py-4 flex items-center justify-between hover:bg-gray-50">
<div class="flex items-center space-x-4">
<div class="flex-shrink-0">
<img class="h-12 w-12 rounded-full" src="http://static.photos/people/200x200/1" alt="Applicant photo">
</div>
<div>
<h3 class="text-sm font-medium text-gray-900">John Smith</h3>
<p class="text-sm text-gray-500">Rider Application</p>
<div class="flex space-x-2 mt-1">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800">
<i data-feather="check-circle" class="mr-1 h-3 w-3"></i> ID Verified
</span>
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800">
<i data-feather="clock" class="mr-1 h-3 w-3"></i> Pending Review
</span>
</div>
</div>
</div>
<div class="flex space-x-3">
<button class="inline-flex items-center px-3 py-1.5 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-primary">
<i data-feather="eye" class="mr-1 h-4 w-4"></i> View
</button>
<button class="inline-flex items-center px-3 py-1.5 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary hover:bg-opacity-90 focus:outline-none focus:ring-2 focus:ring-primary">
<i data-feather="check" class="mr-1 h-4 w-4"></i> Approve
</button>
</div>
</div>
<!-- KYC Application 2 -->
<div class="px-6 py-4 flex items-center justify-between hover:bg-gray-50">
<div class="flex items-center space-x-4">
<div class="flex-shrink-0">
<img class="h-12 w-12 rounded-full" src="http://static.photos/people/200x200/2" alt="Applicant photo">
</div>
<div>
<h3 class="text-sm font-medium text-gray-900">Sarah Johnson</h3>
<p class="text-sm text-gray-500">Business Application</p>
<div class="flex space-x-2 mt-1">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800">
<i data-feather="check-circle" class="mr-1 h-3 w-3"></i> ID Verified
</span>
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800">
<i data-feather="check-circle" class="mr-1 h-3 w-3"></i> Address Verified
</span>
</div>
</div>
</div>
<div class="flex space-x-3">
<button class="inline-flex items-center px-3 py-1.5 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-primary">
<i data-feather="eye" class="mr-1 h-4 w-4"></i> View
</button>
<button class="inline-flex items-center px-3 py-1.5 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary hover:bg-opacity-90 focus:outline-none focus:ring-2 focus:ring-primary">
<i data-feather="check" class="mr-1 h-4 w-4"></i> Approve
</button>
</div>
</div>
<!-- KYC Application 3 -->
<div class="px-6 py-4 flex items-center justify-between hover:bg-gray-50">
<div class="flex items-center space-x-4">
<div class="flex-shrink-0">
<img class="h-12 w-12 rounded-full" src="http://static.photos/people/200x200/3" alt="Applicant photo">
</div>
<div>
<h3 class="text-sm font-medium text-gray-900">Michael Brown</h3>
<p class="text-sm text-gray-500">Rider Application</p>
<div class="flex space-x-2 mt-1">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800">
<i data-feather="alert-circle" class="mr-1 h-3 w-3"></i> ID Unclear
</span>
</div>
</div>
</div>
<div class="flex space-x-3">
<button class="inline-flex items-center px-3 py-1.5 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-primary">
<i data-feather="eye" class="mr-1 h-4 w-4"></i> View
</button>
<button class="inline-flex items-center px-3 py-1.5 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500">
<i data-feather="x" class="mr-1 h-4 w-4"></i> Reject
</button>
</div>
</div>
<!-- KYC Application 4 -->
<div class="px-6 py-4 flex items-center justify-between hover:bg-gray-50">
<div class="flex items-center space-x-4">
<div class="flex-shrink-0">
<img class="h-12 w-12 rounded-full" src="http://static.photos/people/200x200/4" alt="Applicant photo">
</div>
<div>
<h3 class="text-sm font-medium text-gray-900">Quick Bites Restaurant</h3>
<p class="text-sm text-gray-500">Business Application</p>
<div class="flex space-x-2 mt-1">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800">
<i data-feather="check-circle" class="mr-1 h-3 w-3"></i> Business Verified
</span>
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800">
<i data-feather="clock" class="mr-1 h-3 w-3"></i> Pending Review
</span>
</div>
</div>
</div>
<div class="flex space-x-3">
<button class="inline-flex items-center px-3 py-1.5 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-primary">
<i data-feather="eye" class="mr-1 h-4 w-4"></i> View
</button>
<button class="inline-flex items-center px-3 py-1.5 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary hover:bg-opacity-90 focus:outline-none focus:ring-2 focus:ring-primary">
<i data-feather="check" class="mr-1 h-4 w-4"></i> Approve
</button>
</div>
</div>
</div>
<div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between">
<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">8</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 border-primary text-white 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>
<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>
</main>
</div>
</div>
<script>
feather.replace();
</script>
</body>
</html>
|