'use client'; import { useState } from 'react'; import Link from 'next/link'; import styles from './ham.module.css'; import shared from '../shared/components.module.css'; // Mock data const MOCK_STATS = { totalEmployees: 247, presentToday: 231, onLeaveToday: 12, pendingApprovals: 8, upcomingBirthdays: 5, reviewsDue: 15, payrollStatus: 'Processed' }; const MOCK_BIRTHDAYS = [ { id: 1, name: 'Rahul Sharma', date: 'Tomorrow', department: 'Engineering' }, { id: 2, name: 'Priya Patel', date: 'Dec 23', department: 'Marketing' }, { id: 3, name: 'Amit Kumar', date: 'Dec 25', department: 'Sales' } ]; const MOCK_RECENT_ACTIVITIES = [ { id: 1, type: 'leave', message: 'Vikram Singh applied for leave', time: '10 mins ago' }, { id: 2, type: 'attendance', message: 'Sarah Williams checked in', time: '25 mins ago' }, { id: 3, type: 'review', message: 'Performance review completed for John Doe', time: '1 hour ago' }, { id: 4, type: 'employee', message: 'New employee onboarded: Jane Smith', time: '2 hours ago' } ]; export default function HAMDashboard() { const [stats] = useState(MOCK_STATS); return (

HAM Dashboard

Human Asset Management Overview

{/* Stats Widgets */}
👥
{stats.totalEmployees}
Total Employees
↑ 5 this month
✅
{stats.presentToday}
Present Today
{((stats.presentToday / stats.totalEmployees) * 100).toFixed(1)}% attendance
🏖️
{stats.onLeaveToday}
On Leave Today
⏳
{stats.pendingApprovals}
Pending Approvals
View All →
🎂
{stats.upcomingBirthdays}
Upcoming Birthdays
📊
{stats.reviewsDue}
Reviews Due
View All →
💰
{stats.payrollStatus}
Payroll Status
December 2024
{/* Quick Actions */}

Quick Actions

{/* Two Column Layout */}
{/* Upcoming Birthdays */}

🎂 Upcoming Birthdays

{MOCK_BIRTHDAYS.map(birthday => (
{birthday.name}
{birthday.department}
{birthday.date}
))}
{/* Recent Activities */}

📋 Recent Activities

{MOCK_RECENT_ACTIVITIES.map(activity => (
{activity.message}
{activity.time}
))}
); }