Spaces:
Running
Running
| <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> | |