advisormatch-connect-pro / admin-matches.html
MorleyMujansi's picture
I want the portal to be able to do the following: Backend Admin role
06f4684 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Match Management | 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">Match Management</h1>
<!-- Auto-Matching Section -->
<div class="bg-white rounded-xl shadow-sm p-6 mb-8">
<h2 class="text-xl font-semibold mb-4">Automated Matching</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-blue-50 p-6 rounded-lg">
<h3 class="text-lg font-semibold text-blue-800 mb-3">Run Auto-Matching</h3>
<p class="text-gray-700 mb-4">Match users based on profile attributes (industry, experience, interests, stage)</p>
<button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded transition">Run Now</button>
</div>
<div class="bg-purple-50 p-6 rounded-lg">
<h3 class="text-lg font-semibold text-purple-800 mb-3">Matching Settings</h3>
<p class="text-gray-700 mb-4">Configure matching algorithms and criteria</p>
<button class="w-full bg-purple-600 hover:bg-purple-700 text-white py-2 px-4 rounded transition">Configure</button>
</div>
<div class="bg-green-50 p-6 rounded-lg">
<h3 class="text-lg font-semibold text-green-800 mb-3">Manual Matching</h3>
<p class="text-gray-700 mb-4">Review and approve suggested matches</p>
<button class="w-full bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded transition">Review Suggestions</button>
</div>
</div>
</div>
<!-- Manual Matching Interface -->
<div class="bg-white rounded-xl shadow-sm p-6">
<h2 class="text-xl font-semibold mb-4">Manual Match Suggestions</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div class="border border-gray-200 rounded-lg p-4">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center space-x-4">
<img src="http://static.photos/people/200x200/1" alt="Founder" class="w-16 h-16 rounded-full">
</div>
<div>
<h3 class="font-semibold">Musonda Chisha</h3>
<p class="text-sm text-gray-600">AgriTech Founder</p>
</div>
</div>
<div class="text-center">
<h4 class="text-sm font-medium text-gray-700">Compatibility Score</h4>
<div class="text-2xl font-bold text-blue-600">87%</div>
</div>
</div>
<div class="space-y-2">
<button class="w-full bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded transition">Approve Match</button>
<button class="w-full bg-gray-100 hover:bg-gray-200 text-gray-800 py-2 px-4 rounded transition">Suggest Alternative</button>
</div>
</div>
<div class="border border-gray-200 rounded-lg p-4">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center space-x-4">
<img src="http://static.photos/people/200x200/2" alt="Advisor" class="w-16 h-16 rounded-full">
</div>
<div>
<h3 class="font-semibold">Dr. James Mwansa</h3>
<p class="text-sm text-gray-600">Tech Advisor</p>
</div>
</div>
<div class="text-center">
<h4 class="text-sm font-medium text-gray-700">Compatibility Score</h4>
<div class="text-2xl font-bold text-purple-600">92%</div>
</div>
</div>
<div class="space-y-2">
<button class="w-full bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded transition">Approve Match</button>
<button class="w-full bg-gray-100 hover:bg-gray-200 text-gray-800 py-2 px-4 rounded transition">Suggest Alternative</button>
</div>
</div>
</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();
// Load admin data
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>