undefined / index.html
XKWzzt's picture
add an monthly and annually evaluation page based on the performance and KPI's completion or not.
8d23316 verified
Raw History Blame Contribute Delete
17.5 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OrbitHRIS | Dashboard</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: '#6366f1',
secondary: '#8b5cf6',
}
}
}
}
</script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
.nav-item.active {
border-left: 4px solid #6366f1;
background-color: rgba(99, 102, 241, 0.1);
}
.smooth-transition {
transition: all 0.3s ease;
}
.card-hover:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="hidden md:flex md:flex-shrink-0">
<div class="flex flex-col w-64 bg-white border-r border-gray-200">
<div class="flex items-center justify-center h-16 px-4 bg-primary-500">
<div class="flex items-center">
<i data-feather="globe" class="text-white mr-2"></i>
<span class="text-white font-bold text-xl">OrbitHRIS</span>
</div>
</div>
<div class="flex flex-col flex-grow px-4 py-4 overflow-y-auto">
<div class="space-y-1">
<a href="#" class="nav-item active flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-900">
<i data-feather="home" class="mr-3 h-5 w-5 text-primary-500"></i>
Dashboard
</a>
<a href="#" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50">
<i data-feather="users" class="mr-3 h-5 w-5 text-gray-400"></i>
Employee Management
</a>
<a href="dailyattendance.html" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50">
<i data-feather="clock" class="mr-3 h-5 w-5 text-gray-400"></i>
Attendance
</a>
<a href="#" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50">
<i data-feather="dollar-sign" class="mr-3 h-5 w-5 text-gray-400"></i>
Payroll
</a>
<a href="careermanagement.html" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50">
<i data-feather="bar-chart-2" class="mr-3 h-5 w-5 text-gray-400"></i>
Career Management
</a>
<a href="evaluations.html" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50">
<i data-feather="clipboard" class="mr-3 h-5 w-5 text-gray-400"></i>
Evaluations
</a>
<a href="importemployees.html" class="nav-item flex items-center px-2 py-3 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50">
<i data-feather="upload" class="mr-3 h-5 w-5 text-gray-400"></i>
Import Employees
</a>
</div>
<div class="mt-auto mb-4">
<div class="p-4 bg-gray-100 rounded-lg">
<h4 class="text-sm font-medium text-gray-900">System Storage</h4>
<div class="mt-2 w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-primary-500 h-2.5 rounded-full" style="width: 65%"></div>
</div>
<p class="mt-1 text-xs text-gray-500">65% of 50GB used</p>
</div>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="flex flex-col flex-1 overflow-hidden">
<!-- Top Navigation -->
<div class="flex items-center justify-between h-16 px-4 bg-white border-b border-gray-200">
<div class="flex items-center">
<button class="md:hidden mr-2 text-gray-500">
<i data-feather="menu"></i>
</button>
<h1 class="text-lg font-medium text-gray-900">Dashboard Overview</h1>
</div>
<div class="flex items-center space-x-4">
<button class="p-1 text-gray-500 hover:text-gray-700">
<i data-feather="bell"></i>
</button>
<div class="relative">
<button class="flex items-center space-x-2 focus:outline-none">
<div class="w-8 h-8 rounded-full bg-primary-100 flex items-center justify-center">
<i data-feather="user" class="text-primary-500"></i>
</div>
<span class="hidden md:inline text-sm font-medium">Admin</span>
<i data-feather="chevron-down" class="hidden md:inline h-4 w-4"></i>
</button>
</div>
</div>
</div>
<!-- Content -->
<div class="flex-1 overflow-y-auto p-6 bg-gray-50">
<!-- Stats Cards -->
<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-sm p-6 smooth-transition card-hover">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Total Employees</p>
<h3 class="text-2xl font-bold text-gray-900 mt-1">1,248</h3>
<p class="text-xs text-green-500 mt-1 flex items-center">
<i data-feather="trending-up" class="mr-1 h-3 w-3"></i>
12% from last month
</p>
</div>
<div class="p-3 rounded-full bg-primary-100 text-primary-500">
<i data-feather="users"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-sm p-6 smooth-transition card-hover">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Active Today</p>
<h3 class="text-2xl font-bold text-gray-900 mt-1">976</h3>
<p class="text-xs text-red-500 mt-1 flex items-center">
<i data-feather="trending-down" class="mr-1 h-3 w-3"></i>
3% from yesterday
</p>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-500">
<i data-feather="check-circle"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-sm p-6 smooth-transition card-hover">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Pending Leaves</p>
<h3 class="text-2xl font-bold text-gray-900 mt-1">42</h3>
<p class="text-xs text-yellow-500 mt-1 flex items-center">
<i data-feather="alert-circle" class="mr-1 h-3 w-3"></i>
Needs approval
</p>
</div>
<div class="p-3 rounded-full bg-yellow-100 text-yellow-500">
<i data-feather="calendar"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-sm p-6 smooth-transition card-hover">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Upcoming Events</p>
<h3 class="text-2xl font-bold text-gray-900 mt-1">6</h3>
<p class="text-xs text-blue-500 mt-1 flex items-center">
<i data-feather="clock" class="mr-1 h-3 w-3"></i>
This week
</p>
</div>
<div class="p-3 rounded-full bg-blue-100 text-blue-500">
<i data-feather="star"></i>
</div>
</div>
</div>
</div>
<!-- Charts Row -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
<!-- Attendance Overview -->
<div class="lg:col-span-2 bg-white rounded-lg shadow-sm p-6 smooth-transition card-hover">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-medium text-gray-900">Attendance Overview</h2>
<select class="text-sm border-gray-200 rounded-md focus:ring-primary-500 focus:border-primary-500">
<option>This Week</option>
<option>This Month</option>
<option>This Quarter</option>
</select>
</div>
<div class="h-64">
<canvas id="attendanceChart"></canvas>
</div>
</div>
<!-- Department Distribution -->
<div class="bg-white rounded-lg shadow-sm p-6 smooth-transition card-hover">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-medium text-gray-900">Department Distribution</h2>
</div>
<div class="h-64">
<canvas id="departmentChart"></canvas>
</div>
</div>
</div>
<!-- Recent Activity & Top Performers -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Recent Activity -->
<div class="lg:col-span-2 bg-white rounded-lg shadow-sm p-6 smooth-transition card-hover">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-medium text-gray-900">Recent Activity</h2>
<button class="text-sm text-primary-500 hover:text-primary-700">View All</button>
</div>
<div class="space-y-4">
<div class="flex items-start">
<div class="flex-shrink-0">
<div class="h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center">
<i data-feather="user-plus" class="text-purple-500"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">New employee onboarded</p>
<p class="text-sm text-gray-500">Sarah Johnson joined Marketing team</p>
<p class="text-xs text-gray-400 mt-1">2 hours ago</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0">
<div class="h-10 w-10 rounded-full bg-green-100 flex items-center justify-center">
<i data-feather="award" class="text-green-500"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">Performance review completed</p>
<p class="text-sm text-gray-500">Quarterly review for Tech department</p>
<p class="text-xs text-gray-400 mt-1">5 hours ago</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0">
<div class="h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
<i data-feather="dollar-sign" class="text-blue-500"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">Payroll processed</p>
<p class="text-sm text-gray-500">Monthly payroll for all employees</p>
<p class="text-xs text-gray-400 mt-1">1 day ago</p>
</div>
</div>
</div>
</div>
<!-- Top Performers -->
<div class="bg-white rounded-lg shadow-sm p-6 smooth-transition card-hover">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-medium text-gray-900">Top Performers</h2>
<button class="text-sm text-primary-500 hover:text-primary-700">View All</button>
</div>
<div class="space-y-4">
<div class="flex items-center">
<img src="http://static.photos/people/200x200/1" class="h-10 w-10 rounded-full object-cover" alt="Employee">
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">Michael Chen</p>
<p class="text-xs text-gray-500">Sales | KPI: 98%</p>
</div>
<div class="ml-auto bg-yellow-100 text-yellow-600 px-2 py-1 rounded-full text-xs font-medium">
Top 1%
</div>
</div>
<div class="flex items-center">
<img src="http://static.photos/people/200x200/2" class="h-10 w-10 rounded-full object-cover" alt="Employee">
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">Jessica Williams</p>
<p class="text-xs text-gray-500">Marketing | KPI: 96%</p>
</div>
<div class="ml-auto bg-green-100 text-green-600 px-2 py-1 rounded-full text-xs font-medium">
Top 3%
</div>
</div>
<div class="flex items-center">
<img src="http://static.photos/people/200x200/3" class="h-10 w-10 rounded-full object-cover" alt="Employee">
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">David Kim</p>
<p class="text-xs text-gray-500">Engineering | KPI: 95%</p>
</div>
<div class="ml-auto bg-blue-100 text-blue-600 px-2 py-1 rounded-full text-xs font-medium">
Top 5%
</div>
</div>
<div class="flex items-center">
<img src="http://static.photos/people/200x200/4" class="h-10 w-10 rounded-full object-cover" alt="Employee">
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">Emma Rodriguez</p>
<p class="text-xs text-gray-500">HR | KPI: 94%</p>
</div>
<div class="ml-auto bg-purple-100 text-purple-600 px-2 py-1 rounded-full text-xs font-medium">
Top 7%
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
feather.replace();
// Attendance Chart
const attendanceCtx = document.getElementById('attendanceChart').getContext('2d');
const attendanceChart = new Chart(attendanceCtx, {
type: 'line',
data: {
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
datasets: [
{
label: 'Present',
data: [850, 880, 900, 890, 910, 450],
borderColor: '#6366f1',
backgroundColor: 'rgba(99, 102, 241, 0.1)',
tension: 0.3,
fill: true
},
{
label: 'Late',
data: [120, 90, 80, 95, 70, 30],
borderColor: '#f59e0b',
backgroundColor: 'rgba(245, 158, 11, 0.1)',
tension: 0.3,
fill: true
}
]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'top',
}
},
scales: {
y: {
beginAtZero: true
}
}
}
});
// Department Chart
const departmentCtx = document.getElementById('departmentChart').getContext('2d');
const departmentChart = new Chart(departmentCtx, {
type: 'doughnut',
data: {
labels: ['Sales', 'Marketing', 'Engineering', 'HR', 'Finance'],
datasets: [{
data: [25, 20, 30, 15, 10],
backgroundColor: [
'#6366f1',
'#8b5cf6',
'#ec4899',
'#f59e0b',
'#10b981'
],
borderWidth: 0,
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'right',
}
}
}
});
</script>
</body>
</html>