Spaces:
Running

ezhelp / admin-dashboard.html
ahmadyusuf's picture
flowchart TD
eb8fbc0 verified
Raw History Blame Contribute Delete
21.4 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Dashboard | EzHelp</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
body {
font-family: 'Poppins', sans-serif;
}
.sidebar {
min-height: 100vh;
}
.badge-pending {
background-color: #FEF3C7;
color: #92400E;
}
.badge-approved {
background-color: #D1FAE5;
color: #065F46;
}
.badge-rejected {
background-color: #FEE2E2;
color: #92400E;
}
.active-tab {
background-color: #E0E7FF;
color: #4F46E5;
border-left: 4px solid #4F46E5;
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex">
<!-- Sidebar -->
<div class="sidebar w-64 bg-white shadow-md hidden md:block">
<div class="p-4 border-b">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-indigo-100 rounded-lg flex items-center justify-center">
<i data-feather="shield" class="text-indigo-600"></i>
</div>
<h2 class="text-lg font-bold text-gray-800">Admin Panel</h2>
</div>
</div>
<nav class="mt-4">
<a href="#" class="flex items-center px-4 py-3 text-gray-700 active-tab">
<i data-feather="home" class="w-5 h-5 mr-3"></i>
Dashboard
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
<i data-feather="user-plus" class="w-5 h-5 mr-3"></i>
Approvals
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
<i data-feather="users" class="w-5 h-5 mr-3"></i>
Manage Users
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
<i data-feather="settings" class="w-5 h-5 mr-3"></i>
Services
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
<i data-feather="briefcase" class="w-5 h-5 mr-3"></i>
Societies
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
<i data-feather="bar-chart-2" class="w-5 h-5 mr-3"></i>
Reports
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
<i data-feather="alert-triangle" class="w-5 h-5 mr-3"></i>
Complaints
</a>
</nav>
</div>
<!-- Main Content -->
<div class="flex-1">
<!-- Top Navigation -->
<div class="bg-white shadow-sm sticky top-0 z-10 flex justify-between items-center p-4">
<div class="md:hidden">
<i data-feather="menu" class="w-6 h-6 text-gray-500"></i>
</div>
<div class="flex-1 md:ml-4">
<h1 class="text-xl font-bold text-gray-800">Dashboard Overview</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<i data-feather="bell" class="w-6 h-6 text-gray-700"></i>
<span class="absolute -top-1 -right-1 w-2 h-2 bg-red-500 rounded-full"></span>
</div>
<div class="flex items-center">
<div class="w-8 h-8 bg-indigo-100 rounded-full flex items-center justify-center mr-2">
<i data-feather="user" class="text-indigo-600 w-4 h-4"></i>
</div>
<span class="hidden md:inline text-sm">Admin</span>
</div>
</div>
</div>
<!-- Stats Cards -->
<div class="p-4 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500 text-sm">Pending Approvals</p>
<h2 class="text-2xl font-bold mt-1">12</h2>
</div>
<div class="p-3 bg-indigo-100 rounded-lg">
<i data-feather="user-plus" class="text-indigo-600"></i>
</div>
</div>
<p class="text-sm text-gray-500 mt-2"><span class="text-green-500">↓2</span> since yesterday</p>
</div>
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500 text-sm">Total Users</p>
<h2 class="text-2xl font-bold mt-1">478</h2>
</div>
<div class="p-3 bg-blue-100 rounded-lg">
<i data-feather="users" class="text-blue-600"></i>
</div>
</div>
<p class="text-sm text-gray-500 mt-2"><span class="text-green-500">↑8</span> new this week</p>
</div>
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500 text-sm">Active Bookings</p>
<h2 class="text-2xl font-bold mt-1">32</h2>
</div>
<div class="p-3 bg-green-100 rounded-lg">
<i data-feather="calendar" class="text-green-600"></i>
</div>
</div>
<p class="text-sm text-gray-500 mt-2"><span class="text-green-500">↑3</span> in progress</p>
</div>
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500 text-sm">Complaints</p>
<h2 class="text-2xl font-bold mt-1">5</h2>
</div>
<div class="p-3 bg-red-100 rounded-lg">
<i data-feather="alert-triangle" class="text-red-600"></i>
</div>
</div>
<p class="text-sm text-gray-500 mt-2"><span class="text-green-500">↓1</span> resolved today</p>
</div>
</div>
<!-- Recent Registrations -->
<div class="p-4">
<div class="bg-white rounded-lg shadow-sm border border-gray-100 overflow-hidden">
<div class="flex justify-between items-center p-4 border-b">
<h2 class="text-lg font-semibold">Pending Approvals</h2>
<a href="#" class="text-indigo-600 text-sm">View All</a>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Name</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Details</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<div class="h-10 w-10 rounded-full bg-indigo-100 flex items-center justify-center">
<i data-feather="user" class="text-indigo-600"></i>
</div>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Aarav Sharma</div>
<div class="text-sm text-gray-500">+91 9876543210</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
Service Provider
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
12 May 2023
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
Electrician, Plumber
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<button class="text-green-600 hover:text-green-900 mr-3">Approve</button>
<button class="text-red-600 hover:text-red-900">Reject</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<div class="h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
<i data-feather="user" class="text-blue-600"></i>
</div>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Emily Johnson</div>
<div class="text-sm text-gray-500">Tower 1, Flat 102</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">
Resident
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
11 May 2023
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
Owner
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<button class="text-green-600 hover:text-green-900 mr-3">Approve</button>
<button class="text-red-600 hover:text-red-900">Reject</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<div class="h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center">
<i data-feather="user" class="text-purple-600"></i>
</div>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Rohan Verma</div>
<div class="text-sm text-gray-500">+91 9876543210</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
Service Provider
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
10 May 2023
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
Security, Cleaning
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<button class="text-green-600 hover:text-green-900 mr-3">Approve</button>
<button class="text-red-600 hover:text-red-900">Reject</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- Recent Activity -->
<div class="p-4 flex flex-col md:flex-row gap-4">
<div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 flex-1">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold">Recent Bookings</h2>
<a href="#" class="text-indigo-600 text-sm">View All</a>
</div>
<div class="space-y-4">
<div class="flex items-start">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-100 flex items-center justify-center">
<i data-feather="check" class="text-green-600"></i>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">Plumbing service completed</p>
<p class="text-sm text-gray-500">Tower 2, Flat 201 | 2 hours ago</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-yellow-100 flex items-center justify-center">
<i data-feather="clock" class="text-yellow-600"></i>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">New electrician booking</p>
<p class="text-sm text-gray-500">Tower 1, Flat 403 | 5 hours ago</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-red-100 flex items-center justify-center">
<i data-feather="x" class="text-red-600"></i>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">Booking cancelled</p>
<p class="text-sm text-gray-500">Tower 3, Flat 105 | 1 day ago</p>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 flex-1">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold">Add New Society</h2>
</div>
<form class="space-y-4">
<div>
<label class="block text-gray-700 text-sm font-medium mb-1">Society Name</label>
<input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500">
</div>
<div>
<label class="block text-gray-700 text-sm font-medium mb-1">Location</label>
<input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500">
</div>
<div>
<label class="block text-gray-700 text-sm font-medium mb-1">Join Code</label>
<div class="flex">
<input type="text" value="EZHELP1234" class="flex-1 px-3 py-2 border border-gray-300 rounded-l-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500">
<button type="button" class="px-3 py-2 bg-indigo-600 text-white rounded-r-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500">
<i data-feather="refresh-cw" class="w-4 h-4"></i>
</button>
</div>
<p class="mt-1 text-xs text-gray-500">Share this code with society residents</p>
</div>
<button type="submit" class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
Create Society
</button>
</form>
</div>
</div>
</div>
</div>
<script>
// Initialize animations and icons when page loads
document.addEventListener('DOMContentLoaded', function() {
AOS.init({
duration: 800,
easing: 'ease-in-out',
once: true
});
feather.replace();
});
</script>
</body>
</html>