AK Logo
Loading

AK (Amaanullah Khan) 👋

Ever since I wrote my first line of code, I've been fascinated by how a few keystrokes can turn an idea into something people can actually use. That curiosity turned into a passion and eventually into a career as a professional developer. In production, I ship stable, secure and scalable products with clean code and SEO best practices, focused on Full-Stack Development (PHP, Laravel, MySQL), Mobile Apps (Flutter, Firebase) while continuously learning React.js, Node.js and Python.

HRM – Employee Management Portal

HRM – Employee Management Portal

Client For:

Internal Development

Services:

Attendance ManagementPayroll & Salary AutomationLeave ManagementEmployee DashboardAdmin DashboardReal-Time NotificationsData VisualizationEvents & AnnouncementsCustom Web Development
(Private/In-House Deployment)

Overview

The HRM (Human Resource Management) Portal is a fully custom-built employee management platform designed to automate everyday HR operations including attendance tracking, salary calculations, leave applications, event announcements, and real-time activity monitoring.

The system provides separate Admin and Employee dashboards, delivering an optimized, role-based experience for every user.

Built using HTML, CSS, JavaScript, jQuery, AJAX, Core PHP, MySQL, and WebSockets, the platform combines modern UI/UX with powerful backend automation.

Key functions such as attendance, payroll, notifications, and events are designed to reduce manual HR workload, deliver accuracy, and provide instant visibility into workforce performance.

Key Features:

  • Automated attendance tracking with late, half-day, and absence calculations
  • Full salary automation with downloadable payslips
  • Real-time notifications (WebSockets)
  • Admin & Employee dashboards
  • Leave management with approval workflow
  • Events/Announcements module
  • Activity tracking (check-ins, leaves, salaries, logs)
  • Roles & Permissions
  • Interactive graphs and visual analytics
  • Responsive UI/UX for desktop & mobile


Challenges

This project presented several unique challenges that required innovative solutions and careful planning to overcome. Here's a detailed breakdown of the key challenges and how they were addressed.

Real-Time Attendance Automation:

Challenge:

Ensuring accurate clock-in/clock-out logs, late detection, half-day rules, and live attendance status - without requiring page refresh - was essential for HR transparency. The system needed to compute attendance outcomes automatically and instantly reflect changes on the dashboard.

Solution:

Implemented AJAX-based asynchronous requests for instant check-in and check-out.

Automated logic for late arrivals, absences, early check-outs, half-days, and shift-based calculations.

Attendance records update on dashboards live with WebSocket triggers, ensuring instant visibility for HR and employees.

Optimized MySQL queries for fast recording even during peak hours.

Payroll & Salary Automation Engine:

Challenge:

Salary calculation required dynamic parameters:

  • Attendance outcomes (present/late/half-day/absent)
  • Paid/unpaid leaves
  • Overtime (if applicable)
  • Auto-deductions and allowances
  • Secure downloadable payslips

Manually calculating salaries every month was time-consuming and error-prone.

Solution:
  • Developed a rule-based payroll engine that automatically computes monthly salary based on attendance logs and leave records.
  • Automatic deduction calculations for absences and late arrivals.
  • Payslip generation integrated using PHP templates (PDF/printable).
  • Admin can review or edit salary before finalizing.
  • System maintains a complete history of all salary cycles.


Events & Announcements Management:

Challenge:

Companies needed a centralized way to create events, publish announcements, and notify employees instantly - without relying on external tools.

Solution:

Added an Events & Announcements module for posting upcoming events, holidays, internal updates, and alerts.

Events appear automatically in employee dashboards.

WebSocket-based notifications ensure real-time alerts.

Each event is logged and stored with full details, images, and timestamps.

Real-Time Notifications Using WebSockets:

Challenge:

The portal needed live notifications for:

  • Attendance actions
  • Leave approvals
  • New events
  • Salary updates
  • Admin instructions
  • System alerts

Traditional AJAX polling was slow and inefficient.

Solution:

Integrated WebSockets for real-time push notifications.

Instant alerts appear for employees:

  • "Check-in Successful"
  • "Leave Approved"
  • "New Event Added"
  • "Payslip Generated"

Notification center added for historical logs.

Custom alert tones for instant attention.

Dual Dashboard Architecture (Admin vs Employee):

Challenge:

Both Admins and Employees required different tools, permissions, and analytics - all under one system without overlapping access.

Solution:

Implemented custom RBAC (Role-Based Access Control).

Separate dashboards with tailored modules:

Admin Dashboard: attendance overview, salary reports, events, leaves, employee directory

Employee Dashboard: personal attendance history, salary slips, leave status, notifications

Data securely separated to ensure privacy and integrity.

Data Visualization & HR Analytics:

Challenge:

Converting complex HR data (attendance trends, salary summaries, monthly patterns) into easy-to-understand visuals was necessary for decision-making.

Solution:

Integrated interactive charts using JS libraries.

Admin dashboard includes graphs for:

  • Monthly attendance trends
  • Departmental performance
  • Salary distribution
  • Leave patterns

Visual UI ensures fast interpretation and better HR decisions.

Results/Conclusion:

The HRM Portal delivered a complete automation ecosystem for HR operations, significantly reducing manual workload through:

  • Real-time attendance tracking
  • Automated salary calculation
  • Streamlined leave workflows
  • Real-time notifications via WebSockets
  • Centralized event management
  • Transparent employee analytics

Both employees and admin users now benefit from instant data access, simplified workflows, and reliable reporting.

The portal improves workforce management, enhances productivity, and ensures accurate, fast, and paperless HR processing.

banner-shape-1
banner-shape-1
object-3d-1
object-3d-2