| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <meta charset="UTF-8"> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| <title>Admin Dashboard | Lumikiza</title> |
| <link rel="stylesheet" href="style.css"> |
| <script src="https://cdn.tailwindcss.com"></script> |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> |
| <script src="https://unpkg.com/feather-icons"></script> |
| </head> |
| <body class="bg-gray-50"> |
| <admin-sidebar></admin-sidebar> |
| <custom-navbar></custom-navbar> |
| |
| <main class="ml-80 py-12"> |
| <div class="container mx-auto px-4"> |
| <h1 class="text-3xl font-bold text-gray-900 mb-8">Admin Dashboard</h1> |
| |
| |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8"> |
| <div class="bg-white p-6 rounded-xl shadow-sm"> |
| <div class="flex items-center justify-between"> |
| <div> |
| <h3 class="text-sm font-medium text-gray-700">Total Users</h3> |
| <p class="text-2xl font-bold text-blue-600">247</p> |
| </div> |
| <i data-feather="users" class="text-blue-600"></i> |
| </div> |
| </div> |
| <div class="bg-white p-6 rounded-xl shadow-sm"> |
| <div class="flex items-center justify-between"> |
| <div> |
| <h3 class="text-sm font-medium text-gray-700">Active Matches</h3> |
| <p class="text-2xl font-bold text-purple-600">89</p> |
| </div> |
| <i data-feather="zap" class="text-purple-600"></i> |
| </div> |
| </div> |
| <div class="bg-white p-6 rounded-xl shadow-sm"> |
| <div class="flex items-center justify-between"> |
| <div> |
| <h3 class="text-sm font-medium text-gray-700">Pending Approvals</h3> |
| <p class="text-2xl font-bold text-green-600">23</p> |
| </div> |
| <i data-feather="clock" class="text-green-600"></i> |
| </div> |
| </div> |
| <div class="bg-white p-6 rounded-xl shadow-sm"> |
| <div class="flex items-center justify-between"> |
| <div> |
| <h3 class="text-sm font-medium text-gray-700">Success Rate</h3> |
| <p class="text-2xl font-bold text-red-600">78%</p> |
| </div> |
| <i data-feather="trending-up" class="text-red-600"></i> |
| </div> |
| </div> |
| </div> |
|
|
| |
| <div class="bg-white rounded-xl shadow-sm p-6 mb-8"> |
| <h2 class="text-xl font-semibold mb-4">Quick Actions</h2> |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-4"> |
| <button class="bg-blue-600 hover:bg-blue-700 text-white py-3 px-6 rounded-lg transition w-full"> |
| <i data-feather="user-check"></i> |
| <span>Approve New Users</span> |
| </button> |
| <button class="bg-purple-600 hover:bg-purple-700 text-white py-3 px-6 rounded-lg transition w-full"> |
| <i data-feather="zap"></i> |
| <span>Run Auto-Matching</span> |
| </button> |
| <button class="bg-green-600 hover:bg-green-700 text-white py-3 px-6 rounded-lg transition w-full"> |
| <i data-feather="bar-chart"></i> |
| <span>View Analytics</span> |
| </button> |
| </div> |
| </div> |
|
|
| |
| <div class="bg-white rounded-xl shadow-sm p-6"> |
| <h2 class="text-xl font-semibold mb-4">Recent Activity</h2> |
| <div class="space-y-4"> |
| <div class="flex items-center justify-between p-4 bg-gray-50 rounded-lg"> |
| <div class="flex items-center space-x-4"> |
| <div class="bg-green-100 p-2 rounded-full"> |
| <i data-feather="user-check" class="text-green-600"></i> |
| </div> |
| <div> |
| <p class="font-medium">New advisor registration</p> |
| <p class="text-sm text-gray-600">Dr. Sarah M. - Finance Expert</p> |
| </div> |
| <span class="text-xs text-gray-500">2 hours ago</span> |
| </div> |
| <button class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded transition">Review</button> |
| </div> |
| <div class="flex items-center justify-between p-4 bg-gray-50 rounded-lg"> |
| <div class="flex items-center space-x-4"> |
| <div class="bg-blue-100 p-2 rounded-full"> |
| <i data-feather="zap" class="text-blue-600"></i> |
| </div> |
| <div> |
| <p class="font-medium">Manual match suggested</p> |
| <p class="text-sm text-gray-600">AgriTech founder with Agri consultant</p> |
| </div> |
| <span class="text-xs text-gray-500">4 hours ago</span> |
| </div> |
| <button class="bg-purple-600 hover:bg-purple-700 text-white py-2 px-4 rounded transition">Approve</button> |
| </div> |
| </div> |
| </div> |
| </main> |
|
|
| <custom-footer></custom-footer> |
| <script src="components/admin-sidebar.js"></script> |
| <script src="components/navbar.js"></script> |
| <script src="components/footer.js"></script> |
| <script src="components/notification-bell.js"></script> |
| <script src="script.js"></script> |
| <script> |
| feather.replace(); |
| |
| |
| document.addEventListener('DOMContentLoaded', function() { |
| const adminData = JSON.parse(localStorage.getItem('currentUser')); |
| if (adminData && adminData.role === 'admin') { |
| document.getElementById('adminName').textContent = adminData.fullName || 'Admin'; |
| } else { |
| window.location.href = '/'; |
| } |
| }); |
| </script> |
| </body> |
| </html> |