Spaces:
Running

hrmanager / index.html
Zi-ON's picture
undefined - Initial Deployment
a13a93f verified
Raw History Blame Contribute Delete
98.5 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>HR Management System</title> <script src="https://cdn.tailwindcss.com"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <script> tailwind.config = { theme: { extend: { colors: { primary: '#3b82f6', secondary: '#1e40af', accent: '#10b981', dark: '#1f2937', light: '#f9fafb' } } } } </script> <style> /* Custom styles */ .sidebar { transition: all 0.3s ease; } .sidebar.collapsed { width: 70px; } .sidebar.collapsed .nav-text { display: none; } .sidebar.collapsed .logo-text { display: none; } .main-content { transition: all 0.3s ease; } .main-content.expanded { margin-left: 70px; } /* Chart container */ .chart-container { position: relative; height: 300px; width: 100%; } /* Profile dropdown */ .profile-dropdown { transition: all 0.3s ease; opacity: 0; visibility: hidden; transform: translateY(10px); } .profile-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); } /* Tab content animation */ .tab-content { display: none; animation: fadeIn 0.3s ease; } .tab-content.active { display: block; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* Leave status badges */ .status-pending { background-color: #fbbf24; color: #92400e; } .status-approved { background-color: #10b981; color: #064e3b; } .status-rejected { background-color: #ef4444; color: #7f1d1d; } </style> </head> <body class="bg-gray-50 text-gray-800 font-sans"> <div class="flex h-screen overflow-hidden"> <!-- Sidebar --> <div class="sidebar bg-dark text-white w-64 flex flex-col"> <div class="p-4 flex items-center justify-between border-b border-gray-700"> <div class="flex items-center"> <i class="fas fa-user-tie text-2xl text-primary mr-2"></i> <span class="logo-text text-xl font-bold">HR PRO</span> </div> <button id="toggle-sidebar" class="text-gray-400 hover:text-white"> <i class="fas fa-bars"></i> </button> </div> <div class="flex-1 overflow-y-auto"> <nav class="mt-4"> <div class="px-4 py-2"> <span class="text-gray-400 uppercase text-xs font-semibold nav-text">Main</span> </div> <a href="#" data-tab="dashboard" class="nav-item flex items-center px-4 py-3 text-gray-300 hover:bg-gray-800 hover:text-white transition"> <i class="fas fa-tachometer-alt mr-3"></i> <span class="nav-text">Dashboard</span> </a> <a href="#" data-tab="staff-profiles" class="nav-item flex items-center px-4 py-3 text-gray-300 hover:bg-gray-800 hover:text-white transition"> <i class="fas fa-users mr-3"></i> <span class="nav-text">Staff Profiles</span> </a> <a href="#" data-tab="leave-requests" class="nav-item flex items-center px-4 py-3 text-gray-300 hover:bg-gray-800 hover:text-white transition"> <i class="fas fa-calendar-alt mr-3"></i> <span class="nav-text">Leave Requests</span> </a> <a href="#" data-tab="reports" class="nav-item flex items-center px-4 py-3 text-gray-300 hover:bg-gray-800 hover:text-white transition"> <i class="fas fa-chart-bar mr-3"></i> <span class="nav-text">Reports</span> </a> <a href="#" data-tab="planning" class="nav-item flex items-center px-4 py-3 text-gray-300 hover:bg-gray-800 hover:text-white transition"> <i class="fas fa-project-diagram mr-3"></i> <span class="nav-text">Planning</span> </a> <div class="px-4 py-2 mt-4"> <span class="text-gray-400 uppercase text-xs font-semibold nav-text">Settings</span> </div> <a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-800 hover:text-white transition"> <i class="fas fa-cog mr-3"></i> <span class="nav-text">Settings</span> </a> </nav> </div> <div class="p-4 border-t border-gray-700"> <div class="flex items-center"> <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="w-10 h-10 rounded-full"> <div class="ml-3 nav-text"> <div class="font-medium">Sarah Johnson</div> <div class="text-xs text-gray-400">HR Manager</div> </div> </div> </div> </div> <!-- Main Content --> <div class="main-content flex-1 overflow-auto"> <!-- Header --> <header class="bg-white shadow-sm"> <div class="flex items-center justify-between px-6 py-4"> <h1 id="page-title" class="text-2xl font-bold text-dark">Dashboard</h1> <div class="flex items-center space-x-4"> <div class="relative"> <button class="p-2 text-gray-500 hover:text-gray-700"> <i class="fas fa-bell"></i> <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span> </button> </div> <div class="relative"> <button id="profile-button" class="flex items-center space-x-2 focus:outline-none"> <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="w-8 h-8 rounded-full"> <span class="hidden md:inline">Sarah Johnson</span> <i class="fas fa-chevron-down text-xs"></i> </button> <div id="profile-dropdown" class="profile-dropdown absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg z-50 py-1"> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Profile</a> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Sign out</a> </div> </div> </div> </div> </header> <!-- Page Content --> <main class="p-6"> <!-- Dashboard Tab --> <div id="dashboard-tab" class="tab-content active"> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6"> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center"> <div class="p-3 rounded-full bg-blue-100 text-primary"> <i class="fas fa-users text-xl"></i> </div> <div class="ml-4"> <h3 class="text-gray-500">Total Employees</h3> <p class="text-2xl font-semibold">124</p> </div> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center"> <div class="p-3 rounded-full bg-green-100 text-accent"> <i class="fas fa-calendar-check text-xl"></i> </div> <div class="ml-4"> <h3 class="text-gray-500">On Leave Today</h3> <p class="text-2xl font-semibold">8</p> </div> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center"> <div class="p-3 rounded-full bg-yellow-100 text-yellow-500"> <i class="fas fa-clock text-xl"></i> </div> <div class="ml-4"> <h3 class="text-gray-500">Pending Requests</h3> <p class="text-2xl font-semibold">15</p> </div> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center"> <div class="p-3 rounded-full bg-red-100 text-red-500"> <i class="fas fa-exclamation-triangle text-xl"></i> </div> <div class="ml-4"> <h3 class="text-gray-500">Vacancies</h3> <p class="text-2xl font-semibold">5</p> </div> </div> </div> </div> <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"> <div class="lg:col-span-2 bg-white rounded-lg shadow p-6"> <h3 class="text-lg font-semibold mb-4">Leave Distribution</h3> <div class="chart-container"> <canvas id="leaveChart"></canvas> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <h3 class="text-lg font-semibold mb-4">Recent Activities</h3> <div class="space-y-4"> <div class="flex items-start"> <div class="bg-primary text-white p-2 rounded-full"> <i class="fas fa-user-plus text-sm"></i> </div> <div class="ml-3"> <p class="text-sm font-medium">New employee onboarded</p> <p class="text-xs text-gray-500">John Doe - Software Developer</p> <p class="text-xs text-gray-400">2 hours ago</p> </div> </div> <div class="flex items-start"> <div class="bg-green-500 text-white p-2 rounded-full"> <i class="fas fa-calendar-check text-sm"></i> </div> <div class="ml-3"> <p class="text-sm font-medium">Leave request approved</p> <p class="text-xs text-gray-500">Jane Smith - 5 days vacation</p> <p class="text-xs text-gray-400">1 day ago</p> </div> </div> <div class="flex items-start"> <div class="bg-yellow-500 text-white p-2 rounded-full"> <i class="fas fa-exclamation-triangle text-sm"></i> </div> <div class="ml-3"> <p class="text-sm font-medium">Attendance warning</p> <p class="text-xs text-gray-500">Mark Johnson - Late arrival</p> <p class="text-xs text-gray-400">3 days ago</p> </div> </div> </div> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <div class="flex justify-between items-center mb-4"> <h3 class="text-lg font-semibold">Upcoming Leaves</h3> <a href="#" class="text-sm text-primary hover:underline">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">Employee</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Leave Type</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Dates</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Duration</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</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"> <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt=""> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Michael Brown</div> <div class="text-sm text-gray-500">Dev Team</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Vacation</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 15 - Jun 22, 2023</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">7 days</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full status-approved"> Approved </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <a href="#" class="text-primary hover:text-secondary">View</a> </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"> <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/22.jpg" alt=""> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Emily Davis</div> <div class="text-sm text-gray-500">Marketing</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sick Leave</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 18 - Jun 20, 2023</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 days</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full status-pending"> Pending </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <a href="#" class="text-primary hover:text-secondary mr-3">Approve</a> <a href="#" class="text-red-500 hover:text-red-700">Reject</a> </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"> <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/45.jpg" alt=""> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Robert Wilson</div> <div class="text-sm text-gray-500">Finance</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Maternity</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jul 1 - Sep 30, 2023</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">90 days</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full status-approved"> Approved </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <a href="#" class="text-primary hover:text-secondary">View</a> </td> </tr> </tbody> </table> </div> </div> </div> <!-- Staff Profiles Tab --> <div id="staff-profiles-tab" class="tab-content"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold">Staff Profiles</h2> <button class="bg-primary text-white px-4 py-2 rounded hover:bg-secondary transition flex items-center"> <i class="fas fa-plus mr-2"></i> Add Employee </button> </div> <div class="bg-white rounded-lg shadow overflow-hidden mb-6"> <div class="px-6 py-4 border-b border-gray-200"> <div class="flex items-center justify-between"> <div class="flex"> <input type="text" placeholder="Search employees..." class="border border-gray-300 rounded px-3 py-2 w-64 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"> </div> <div class="flex space-x-3"> <div class="relative"> <select class="appearance-none bg-white border border-gray-300 rounded px-3 py-2 pr-8 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent text-sm"> <option>All Departments</option> <option>Development</option> <option>Marketing</option> <option>Finance</option> <option>HR</option> </select> <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"> <i class="fas fa-chevron-down text-xs"></i> </div> </div> <button class="bg-gray-100 text-gray-700 px-3 py-2 rounded hover:bg-gray-200 transition flex items-center"> <i class="fas fa-filter mr-2"></i> Filter </button> </div> </div> </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">Employee</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Position</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Department</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Hire Date</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</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 class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10"> <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt=""> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Michael Brown</div> <div class="text-sm text-gray-500">michael@example.com</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Senior Developer</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Development</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jan 15, 2019</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800"> Active </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <div class="flex space-x-2"> <a href="#" class="text-primary hover:text-secondary"><i class="fas fa-eye"></i></a> <a href="#" class="text-yellow-500 hover:text-yellow-700"><i class="fas fa-edit"></i></a> <a href="#" class="text-red-500 hover:text-red-700"><i class="fas fa-trash"></i></a> </div> </td> </tr> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10"> <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/22.jpg" alt=""> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Emily Davis</div> <div class="text-sm text-gray-500">emily@example.com</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Marketing Manager</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Marketing</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Mar 10, 2020</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800"> Active </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <div class="flex space-x-2"> <a href="#" class="text-primary hover:text-secondary"><i class="fas fa-eye"></i></a> <a href="#" class="text-yellow-500 hover:text-yellow-700"><i class="fas fa-edit"></i></a> <a href="#" class="text-red-500 hover:text-red-700"><i class="fas fa-trash"></i></a> </div> </td> </tr> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10"> <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/45.jpg" alt=""> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Robert Wilson</div> <div class="text-sm text-gray-500">robert@example.com</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Financial Analyst</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Finance</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Aug 22, 2018</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"> On Leave </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <div class="flex space-x-2"> <a href="#" class="text-primary hover:text-secondary"><i class="fas fa-eye"></i></a> <a href="#" class="text-yellow-500 hover:text-yellow-700"><i class="fas fa-edit"></i></a> <a href="#" class="text-red-500 hover:text-red-700"><i class="fas fa-trash"></i></a> </div> </td> </tr> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10"> <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/65.jpg" alt=""> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Sarah Johnson</div> <div class="text-sm text-gray-500">sarah@example.com</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">HR Manager</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Human Resources</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Nov 5, 2017</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800"> Active </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <div class="flex space-x-2"> <a href="#" class="text-primary hover:text-secondary"><i class="fas fa-eye"></i></a> <a href="#" class="text-yellow-500 hover:text-yellow-700"><i class="fas fa-edit"></i></a> <a href="#" class="text-red-500 hover:text-red-700"><i class="fas fa-trash"></i></a> </div> </td> </tr> </tbody> </table> </div> <div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between"> <div class="text-sm text-gray-500">Showing <span class="font-medium">1</span> to <span class="font-medium">4</span> of <span class="font-medium">124</span> employees</div> <div class="flex space-x-2"> <button class="px-3 py-1 bg-gray-200 text-gray-700 rounded hover:bg-gray-300"> <i class="fas fa-chevron-left"></i> </button> <button class="px-3 py-1 bg-primary text-white rounded">1</button> <button class="px-3 py-1 bg-gray-200 text-gray-700 rounded hover:bg-gray-300">2</button> <button class="px-3 py-1 bg-gray-200 text-gray-700 rounded hover:bg-gray-300">3</button> <button class="px-3 py-1 bg-gray-200 text-gray-700 rounded hover:bg-gray-300"> <i class="fas fa-chevron-right"></i> </button> </div> </div> </div> </div> <!-- Leave Requests Tab --> <div id="leave-requests-tab" class="tab-content"> <div class="flex justify-between items-center mb-6"> <div> <h2 class="text-2xl font-bold">Leave Requests</h2> <p class="text-gray-500">Manage employee leave applications</p> </div> <button class="bg-primary text-white px-4 py-2 rounded hover:bg-secondary transition flex items-center"> <i class="fas fa-plus mr-2"></i> New Request </button> </div> <div class="bg-white rounded-lg shadow mb-6"> <div class="p-4 border-b border-gray-200"> <h3 class="text-lg font-semibold">Leave Balance Overview</h3> </div> <div class="p-6"> <div class="grid grid-cols-2 md:grid-cols-4 gap-4"> <div class="border rounded-lg p-4"> <h4 class="text-sm font-medium text-gray-500 mb-1">Annual Leave</h4> <p class="text-2xl font-bold">18 <span class="text-sm font-normal text-gray-500">/ 21 days</span></p> <div class="w-full bg-gray-200 rounded-full h-2 mt-2"> <div class="bg-blue-500 h-2 rounded-full" style="width: 85%"></div> </div> </div> <div class="border rounded-lg p-4"> <h4 class="text-sm font-medium text-gray-500 mb-1">Sick Leave</h4> <p class="text-2xl font-bold">3 <span class="text-sm font-normal text-gray-500">/ 10 days</span></p> <div class="w-full bg-gray-200 rounded-full h-2 mt-2"> <div class="bg-green-500 h-2 rounded-full" style="width: 30%"></div> </div> </div> <div class="border rounded-lg p-4"> <h4 class="text-sm font-medium text-gray-500 mb-1">Maternity</h4> <p class="text-2xl font-bold">90 <span class="text-sm font-normal text-gray-500">/ 90 days</span></p> <div class="w-full bg-gray-200 rounded-full h-2 mt-2"> <div class="bg-purple-500 h-2 rounded-full" style="width: 100%"></div> </div> </div> <div class="border rounded-lg p-4"> <h4 class="text-sm font-medium text-gray-500 mb-1">Unpaid Leave</h4> <p class="text-2xl font-bold">0 <span class="text-sm font-normal text-gray-500">/ -</span></p> <div class="w-full bg-gray-200 rounded-full h-2 mt-2"> <div class="bg-red-500 h-2 rounded-full" style="width: 0%"></div> </div> </div> </div> </div> </div> <div class="bg-white rounded-lg shadow overflow-hidden mb-6"> <div class="px-6 py-4 border-b border-gray-200 flex items-center justify-between"> <div class="flex space-x-3"> <button class="px-4 py-2 bg-primary text-white rounded">All</button> <button class="px-4 py-2 bg-white text-gray-700 border rounded hover:bg-gray-50">Pending</button> <button class="px-4 py-2 bg-white text-gray-700 border rounded hover:bg-gray-50">Approved</button> <button class="px-4 py-2 bg-white text-gray-700 border rounded hover:bg-gray-50">Rejected</button> </div> <div class="flex items-center"> <input type="text" placeholder="Search leaves..." class="border border-gray-300 rounded px-3 py-2 w-48 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent text-sm"> </div> </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">Employee</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Leave Type</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Dates</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Duration</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Reason</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</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"> <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/42.jpg" alt=""> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">John Smith</div> <div class="text-sm text-gray-500">Dev Team</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Vacation</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 10 - Jun 15, 2023</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5 days</td> <td class="px-6 py-4 text-sm text-gray-500">Family vacation</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full status-pending"> Pending </span> </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"> <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/65.jpg" alt=""> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Lisa Ray</div> <div class="text-sm text-gray-500">Marketing</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sick Leave</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 5 - Jun 7, 2023</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 days</td> <td class="px-6 py-4 text-sm text-gray-500">Flu</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full status-approved"> Approved </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-secondary">View</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"> <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/19.jpg" alt=""> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">David Miller</div> <div class="text-sm text-gray-500">Finance</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Paternity</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jul 1 - Jul 14, 2023</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">14 days</td> <td class="px-6 py-4 text-sm text-gray-500">Newborn child</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full status-approved"> Approved </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-secondary">View</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"> <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/33.jpg" alt=""> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Sarah Wilson</div> <div class="text-sm text-gray-500">HR</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Vacation</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 20 - Jun 25, 2023</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5 days</td> <td class="px-6 py-4 text-sm text-gray-500">Personal time</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full status-rejected"> Rejected </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-secondary">View</button> </td> </tr> </tbody> </table> </div> <div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between"> <div class="text-sm text-gray-500">Showing <span class="font-medium">1</span> to <span class="font-medium">4</span> of <span class="font-medium">12</span> requests</div> <div class="flex space-x-2"> <button class="px-3 py-1 bg-gray-200 text-gray-700 rounded hover:bg-gray-300"> <i class="fas fa-chevron-left"></i> </button> <button class="px-3 py-1 bg-primary text-white rounded">1</button> <button class="px-3 py-1 bg-gray-200 text-gray-700 rounded hover:bg-gray-300">2</button> <button class="px-3 py-1 bg-gray-200 text-gray-700 rounded hover:bg-gray-300">3</button> <button class="px-3 py-1 bg-gray-200 text-gray-700 rounded hover:bg-gray-300"> <i class="fas fa-chevron-right"></i> </button> </div> </div> </div> </div> <!-- Reports Tab --> <div id="reports-tab" class="tab-content"> <div class="mb-6"> <h2 class="text-2xl font-bold">Reports</h2> <p class="text-gray-500">Analyze and generate HR reports</p> </div> <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between mb-4"> <h3 class="text-lg font-semibold">Attendance Report</h3> <button class="text-primary hover:text-secondary text-sm">Export</button> </div> <div class="chart-container"> <canvas id="attendanceChart"></canvas> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between mb-4"> <h3 class="text-lg font-semibold">Leave Distribution</h3> <button class="text-primary hover:text-secondary text-sm">Export</button> </div> <div class="chart-container"> <canvas id="leaveDistributionChart"></canvas> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between mb-4"> <h3 class="text-lg font-semibold">Employee Growth</h3> <button class="text-primary hover:text-secondary text-sm">Export</button> </div> <div class="chart-container"> <canvas id="growthChart"></canvas> </div> </div> </div> <div class="bg-white rounded-lg shadow mb-6"> <div class="px-6 py-4 border-b border-gray-200 flex items-center justify-between"> <h3 class="text-lg font-semibold">Custom Report Generator</h3> </div> <div class="p-6"> <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6"> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Report Type</label> <select class="w-full border border-gray-300 rounded px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"> <option>Attendance Report</option> <option>Leave Report</option> <option>Employee Performance</option> <option>Turnover Report</option> <option>Recruitment Report</option> </select> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Department</label> <select class="w-full border border-gray-300 rounded px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"> <option>All Departments</option> <option>Development</option> <option>Marketing</option> <option>Finance</option> <option>Human Resources</option> </select> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Time Period</label> <select class="w-full border border-gray-300 rounded px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"> <option>Last 7 Days</option> <option>Last 30 Days</option> <option>Last Quarter</option> <option>Last Year</option> <option>Custom Range</option> </select> </div> </div> <div class="flex justify-end space-x-3"> <button class="px-4 py-2 bg-gray-100 text-gray-700 rounded hover:bg-gray-200">Reset</button> <button class="px-4 py-2 bg-primary text-white rounded hover:bg-secondary">Generate Report</button> </div> </div> </div> <div class="bg-white rounded-lg shadow"> <div class="px-6 py-4 border-b border-gray-200 flex items-center justify-between"> <h3 class="text-lg font-semibold">Recently Generated Reports</h3> <button class="px-4 py-2 bg-primary text-white rounded hover:bg-secondary text-sm">Generate New</button> </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">Report Name</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Generated By</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">Status</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Action</th> </tr> </thead> <tbody class="bg-white divide-y divide-gray-200"> <tr> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Monthly Attendance Report</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sarah Johnson</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 1, 2023</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800"> Completed </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-secondary mr-3">Download</button> <button class="text-gray-500 hover:text-gray-700">Delete</button> </td> </tr> <tr> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Quarterly Leave Analysis</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Robert Wilson</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">May 15, 2023</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800"> Completed </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-secondary mr-3">Download</button> <button class="text-gray-500 hover:text-gray-700">Delete</button> </td> </tr> <tr> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Employee Turnover Report</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Emily Davis</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">May 1, 2023</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800"> Completed </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-secondary mr-3">Download</button> <button class="text-gray-500 hover:text-gray-700">Delete</button> </td> </tr> <tr> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Yearly Recruitment Stats</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sarah Johnson</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jan 10, 2023</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800"> Completed </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-secondary mr-3">Download</button> <button class="text-gray-500 hover:text-gray-700">Delete</button> </td> </tr> </tbody> </table> </div> </div> </div> <!-- Planning Tab --> <div id="planning-tab" class="tab-content"> <div class="flex justify-between items-center mb-6"> <div> <h2 class="text-2xl font-bold">Workforce Planning</h2> <p class="text-gray-500">Manage employee allocation and project planning</p> </div> <button class="bg-primary text-white px-4 py-2 rounded hover:bg-secondary transition flex items-center"> <i class="fas fa-plus mr-2"></i> New Plan </button> </div> <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between mb-4"> <h3 class="text-lg font-semibold">Project Allocation</h3> <button class="text-primary hover:text-secondary text-sm">Details</button> </div> <div class="space-y-4"> <div> <div class="flex justify-between text-sm mb-1"> <span>Project Alpha</span> <span>75%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2"> <div class="bg-blue-600 h-2 rounded-full" style="width: 75%"></div> </div> </div> <div> <div class="flex justify-between text-sm mb-1"> <span>Project Beta</span> <span>45%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2"> <div class="bg-green-600 h-2 rounded-full" style="width: 45%"></div> </div> </div> <div> <div class="flex justify-between text-sm mb-1"> <span>Project Gamma</span> <span>90%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2"> <div class="bg-purple-600 h-2 rounded-full" style="width: 90%"></div> </div> </div> <div> <div class="flex justify-between text-sm mb-1"> <span>Client Support</span> <span>30%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2"> <div class="bg-yellow-600 h-2 rounded-full" style="width: 30%"></div> </div> </div> </div> </div> <div class="lg:col-span-2 bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between mb-4"> <h3 class="text-lg font-semibold">Headcount Planning</h3> <div class="flex space-x-2"> <button class="px-3 py-1 bg-gray-100 text-gray-700 rounded hover:bg-gray-200 text-sm">Monthly</button> <button class="px-3 py-1 bg-primary text-white rounded text-sm">Quarterly</button> <button class="px-3 py-1 bg-gray-100 text-gray-700 rounded hover:bg-gray-200 text-sm">Yearly</button> </div> </div> <div class="chart-container"> <canvas id="headcountChart"></canvas> </div> </div> </div> <div class="bg-white rounded-lg shadow mb-6"> <div class="px-6 py-4 border-b border-gray-200 flex items-center justify-between"> <h3 class="text-lg font-semibold">Current Projects</h3> <button class="px-4 py-2 bg-primary text-white rounded hover:bg-secondary text-sm">Add Project</button> </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">Project</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Team Lead</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Team Size</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Start Date</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">End Date</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</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="text-sm font-medium text-gray-900">Project Alpha</div> <div class="text-sm text-gray-500">Website Redesign</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-8 w-8"> <img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt=""> </div> <div class="ml-2 text-sm text-gray-500">Michael Brown</div> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800"> 8 members </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Mar 15, 2023</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jul 30, 2023</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800"> In Progress </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-secondary mr-3">Manage</button> <button class="text-gray-500 hover:text-gray-700">Details</button> </td> </tr> <tr> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm font-medium text-gray-900">Project Beta</div> <div class="text-sm text-gray-500">Mobile App Development</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-8 w-8"> <img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/women/22.jpg" alt=""> </div> <div class="ml-2 text-sm text-gray-500">Emily Davis</div> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800"> 12 members </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">May 1, 2023</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Oct 15, 2023</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800"> In Progress </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-secondary mr-3">Manage</button> <button class="text-gray-500 hover:text-gray-700">Details</button> </td> </tr> <tr> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm font-medium text-gray-900">Project Gamma</div> <div class="text-sm text-gray-500">CRM Implementation</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-8 w-8"> <img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/men/45.jpg" alt=""> </div> <div class="ml-2 text-sm text-gray-500">Robert Wilson</div> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800"> 5 members </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Apr 10, 2023</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Dec 20, 2023</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800"> In Progress </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-secondary mr-3">Manage</button> <button class="text-gray-500 hover:text-gray-700">Details</button> </td> </tr> <tr> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm font-medium text-gray-900">Client Support</div> <div class="text-sm text-gray-500">Customer Support</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-8 w-8"> <img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/women/33.jpg" alt=""> </div> <div class="ml-2 text-sm text-gray-500">Sarah Wilson</div> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-purple-100 text-purple-800"> 4 members </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jan 1, 2022</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Ongoing</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800"> Active </span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-secondary mr-3">Manage</button> <button class="text-gray-500 hover:text-gray-700">Details</button> </td> </tr> </tbody> </table> </div> </div> <div class="grid grid-cols-1 lg:grid-cols-2 gap-6"> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between mb-4"> <h3 class="text-lg font-semibold">Upcoming Training Sessions</h3> <button class="text-primary hover:text-secondary text-sm">View All</button> </div> <div class="space-y-4"> <div class="flex items-start p-3 border rounded-lg hover:bg-gray-50"> <div class="bg-blue-100 text-blue-600 p-2 rounded-lg mr-3"> <i class="fas fa-users"></i> </div> <div class="flex-1"> <h4 class="font-medium">Leadership Workshop</h4> <p class="text-sm text-gray-500">Jun 15, 2023 | 9:00 AM - 1:00 PM</p> <div class="mt-2 flex items-center text-sm text-gray-500"> <i class="fas fa-map-marker-alt mr-1"></i> Conference Room A </div> </div> <span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded">5 seats left</span> </div> <div class="flex items-start p-3 border rounded-lg hover:bg-gray-50"> <div class="bg-purple-100 text-purple-600 p-2 rounded-lg mr-3"> <i class="fas fa-laptop-code"></i> </div> <div class="flex-1"> <h4 class="font-medium">React Advanced</h4> <p class="text-sm text-gray-500">Jun 18-20, 2023 | 10:00 AM - 4:00 PM</p> <div class="mt-2 flex items-center text-sm text-gray-500"> <i class="fas fa-map-marker-alt mr-1"></i> Training Room 2 </div> </div> <span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded">3 seats left</span> </div> <div class="flex items-start p-3 border rounded-lg hover:bg-gray-50"> <div class="bg-green-100 text-green-600 p-2 rounded-lg mr-3"> <i class="fas fa-chalkboard-teacher"></i> </div> <div class="flex-1"> <h4 class="font-medium">Project Management</h4> <p class="text-sm text-gray-500">Jun 25, 2023 | 9:00 AM - 5:00 PM</p> <div class="mt-2 flex items-center text-sm text-gray-500"> <i class="fas fa-map-marker-alt mr-1"></i> Conference Room B </div> </div> <span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded">Full</span> </div> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between mb-4"> <h3 class="text-lg font-semibold">Staff Allocation</h3> <button class="text-primary hover:text-secondary text-sm">Manage</button> </div> <div class="chart-container"> <canvas id="allocationChart"></canvas> </div> <div class="mt-4 grid grid-cols-2 gap-4"> <div class="border rounded-lg p-3"> <div class="flex items-center justify-between"> <span class="text-sm font-medium">Development</span> <span class="text-xs px-2 py-1 bg-blue-100 text-blue-800 rounded-full">12</span> </div> <div class="mt-2 text-xs text-gray-500">85% allocated</div> </div> <div class="border rounded-lg p-3"> <div class="flex items-center justify-between"> <span class="text-sm font-medium">Marketing</span> <span class="text-xs px-2 py-1 bg-green-100 text-green-800 rounded-full">7</span> </div> <div class="mt-2 text-xs text-gray-500">65% allocated</div> </div> <div class="border rounded-lg p-3"> <div class="flex items-center justify-between"> <span class="text-sm font-medium">Finance</span> <span class="text-xs px-2 py-1 bg-yellow-100 text-yellow-800 rounded-full">5</span> </div> <div class="mt-2 text-xs text-gray-500">45% allocated</div> </div> <div class="border rounded-lg p-3"> <div class="flex items-center justify-between"> <span class="text-sm font-medium">HR</span> <span class="text-xs px-2 py-1 bg-purple-100 text-purple-800 rounded-full">4</span> </div> <div class="mt-2 text-xs text-gray-500">90% allocated</div> </div> </div> </div> </div> </div> </main> </div> </div> <!-- Chart.js --> <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> <script> // Toggle sidebar document.getElementById('toggle-sidebar').addEventListener('click', function() { document.querySelector('.sidebar').classList.toggle('collapsed'); document.querySelector('.main-content').classList.toggle('expanded'); }); // Toggle profile dropdown document.getElementById('profile-button').addEventListener('click', function() { document.getElementById('profile-dropdown').classList.toggle('show'); }); // Close dropdown when clicking outside document.addEventListener('click', function(event) { const profileButton = document.getElementById('profile-button'); const profileDropdown = document.getElementById('profile-dropdown'); if (!profileButton.contains(event.target) && !profileDropdown.contains(event.target)) { profileDropdown.classList.remove('show'); } }); // Tab switching document.querySelectorAll('.nav-item').forEach(item => { item.addEventListener('click', function(e) { e.preventDefault(); // Get tab id from data attribute const tabId = this.getAttribute('data-tab'); // Remove active class from all nav items and tab contents document.querySelectorAll('.nav-item').forEach(navItem => { navItem.classList.remove('bg-gray-800', 'text-white'); navItem.classList.add('text-gray-300'); }); document.querySelectorAll('.tab-content').forEach(content => { content.classList.remove('active'); }); // Add active class to clicked nav item and corresponding tab content this.classList.remove('text-gray-300'); this.classList.add('bg-gray-800', 'text-white'); document.getElementById(`${tabId}-tab`).classList.add('active'); // Update page title const pageTitle = document.getElementById('page-title'); const titleText = this.querySelector('.nav-text').textContent; pageTitle.textContent = titleText; }); }); // Initialize charts document.addEventListener('DOMContentLoaded', function() { // Leave Distribution Chart const leaveCtx = document.getElementById('leaveChart').getContext('2d'); const leaveChart = new Chart(leaveCtx, { type: 'bar', data: { labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'], datasets: [{ label: 'Approved', data: [12, 19, 3, 5, 2, 3], backgroundColor: '#10b981', }, { label: 'Pending', data: [3, 5, 7, 2, 6, 4], backgroundColor: '#fbbf24', }, { label: 'Rejected', data: [2, 3, 1, 4, 2, 1], backgroundColor: '#ef4444', }] }, options: { responsive: true, maintainAspectRatio: false, scales: { y: { beginAtZero: true } } } }); // Attendance Chart const attendanceCtx = document.getElementById('attendanceChart').getContext('2d'); const attendanceChart = new Chart(attendanceCtx, { type: 'line', data: { labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'], datasets: [{ label: 'Present', data: [90, 92, 95, 88, 91, 94], borderColor: '#10b981', backgroundColor: 'rgba(16, 185, 129, 0.1)', fill: true, tension: 0.3 }, { label: 'Late', data: [5, 4, 3, 8, 6, 4], borderColor: '#fbbf24', backgroundColor: 'rgba(251, 191, 36, 0.1)', fill: true, tension: 0.3 }, { label: 'Absent', data: [5, 4, 2, 4, 3, 2], borderColor: '#ef4444', backgroundColor: 'rgba(239, 68, 68, 0.1)', fill: true, tension: 0.3 }] }, options: { responsive: true, maintainAspectRatio: false, scales: { y: { beginAtZero: true } } } }); // Leave Distribution Chart const leaveDistCtx = document.getElementById('leaveDistributionChart').getContext('2d'); const leaveDistChart = new Chart(leaveDistCtx, { type: 'doughnut', data: { labels: ['Vacation', 'Sick Leave', 'Maternity', 'Paternity', 'Unpaid'], datasets: [{ data: [45, 20, 10, 5, 3], backgroundColor: [ '#3b82f6', '#10b981', '#a78bfa', '#f59e0b', '#ef4444' ], }] }, options: { responsive: true, maintainAspectRatio: false, } }); // Growth Chart const growthCtx = document.getElementById('growthChart').getContext('2d'); const growthChart = new Chart(growthCtx, { type: 'bar', data: { labels: ['2018', '2019', '2020', '2021', '2022', '2023'], datasets: [{ label: 'New Hires', data: [15, 22, 18, 25, 30, 20], backgroundColor: '#3b82f6', }, { label: 'Terminations', data: [5, 8, 12, 7, 10, 5], backgroundColor: '#ef4444', }] }, options: { responsive: true, maintainAspectRatio: false, scales: { y: { beginAtZero: true } } } }); // Headcount Chart const headcountCtx = document.getElementById('headcountChart').getContext('2d'); const headcountChart = new Chart(headcountCtx, { type: 'line', data: { labels: ['Q1 2022', 'Q2 2022', 'Q3 2022', 'Q4 2022', 'Q1 2023', 'Q2 2023'], datasets: [{ label: 'Current', data: [100, 105, 110, 115, 120, 124], borderColor: '#3b82f6', backgroundColor: 'rgba(59, 130, 246, 0.1)', fill: true, tension: 0.3 }, { label: 'Projected', data: [null, null, null, null, 120, 125, 130, 135, 140], borderColor: '#10b981', borderDash: [5, 5], backgroundColor: 'transparent', pointBackgroundColor: '#10b981', tension: 0.3 }] }, options: { responsive: true, maintainAspectRatio: false, scales: { y: { beginAtZero: false } } } }); // Allocation Chart const allocationCtx = document.getElementById('allocationChart').getContext('2d'); const allocationChart = new Chart(allocationCtx, { type: 'pie', data: { labels: ['Development', 'Marketing', 'Finance', 'HR', 'Unallocated'], datasets: [{ data: [12, 7, 5, 4, 6], backgroundColor: [ '#3b82f6', '#10b981', '#f59e0b', '#a78bfa', '#e5e7eb' ], }] }, options: { responsive: true, maintainAspectRatio: false, } }); }); </script> <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Zi-ON/hrmanager" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> </html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HR Management System</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#3b82f6',
secondary: '#1e40af',
accent: '#10b981',
dark: '#1f2937',
light: '#f9fafb'
}
}
}
}
</script>
<style>
/* Custom styles */
.sidebar {
transition: all 0.3s ease;
}
.sidebar.collapsed {
width: 70px;
}
.sidebar.collapsed .nav-text {
display: none;
}
.sidebar.collapsed .logo-text {
display: none;
}
.main-content {
transition: all 0.3s ease;
}
.main-content.expanded {
margin-left: 70px;
}
/* Chart container */
.chart-container {
position: relative;
height: 300px;
width: 100%;
}
/* Profile dropdown */
.profile-dropdown {
transition: all 0.3s ease;
opacity: 0;
visibility: hidden;
transform: translateY(10px);
}
.profile-dropdown.show {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
/* Tab content animation */
.tab-content {
display: none;
animation: fadeIn 0.3s ease;
}
.tab-content.active {
display: block;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
/* Leave status badges */
.status-pending {
background-color: #fbbf24;
color: #92400e;
}
.status-approved {
background-color: #10b981;
color: #064e3b;
}
.status-rejected {
background-color: #ef4444;
color: #7f1d1d;
}
</style>
</head>
<body class="bg-gray-50 text-gray-800 font-sans">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-dark text-white w-64 flex flex-col">
<div class="p-4 flex items-center justify-between border-b border-gray-700">
<div class="flex items-center">
<i class="fas fa-user-tie text-2xl text-primary mr-2"></i>
<span class="logo-text text-xl font-bold">HR PRO</span>