Skip to content
Roh-specPublic

About

Dayflow is a human resource management system that helps employees and HR teams handle everyday workplace tasks from one role-based dashboard.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Dayflow - Human Resource Management System

Dayflow is a human resource management system that helps employees and HR teams handle everyday workplace tasks from one role-based dashboard.

Employees can manage their own profile, mark attendance, apply for leave, and view payroll details. HR/Admin users can manage employee records, review attendance, approve or reject leave requests, update payroll information, and track workforce analytics.

How It Works

Dayflow starts with secure username and password authentication. After signing in, each user is sent to the correct workspace based on their role.

Employees use the employee portal for self-service tasks. Their actions, such as attendance updates and leave applications, are saved in the database and become visible to HR.

HR/Admin users use the HR workspace to manage the organization. They can create employee accounts, maintain employee details, review attendance records, handle leave approvals, update salary information, and view dashboard analytics.

The system keeps employee, attendance, leave, payroll, and verification data in MongoDB. API routes validate requests, enforce role-based access, and connect the frontend screens to stored records.

Main Features

Authentication and Access

  • Secure sign-in with username and password.
  • Role-based routing for Employee and HR/Admin users.
  • Protected dashboard pages.
  • Email verification support for new accounts.
  • Password hashing for safer credential storage.

Employee Portal

  • Personal dashboard with employee-focused quick actions.
  • Profile page for viewing employee details.
  • Editable contact fields such as phone and address.
  • Attendance check-in and check-out.
  • Leave application form with leave type, date range, and remarks.
  • Leave status tracking for pending, approved, and rejected requests.
  • Payroll view with salary details and payslip download.

HR/Admin Portal

  • HR overview dashboard with workforce summary.
  • Employee list with search and profile details.
  • Employee account creation.
  • Employee information updates, including department, job title, status, salary, and documents.
  • Attendance review across employees.
  • Leave approval and rejection workflow with comments.
  • Payroll control for updating salary values.
  • Analytics for department counts, attendance trends, leave status, and payroll totals.

Core Modules

  • Employee Management: stores employee identity, job, contact, document, and salary information.
  • Attendance Management: tracks daily check-in and check-out records.
  • Leave Management: supports employee leave requests and HR decisions.
  • Payroll Management: stores salary data and generates simple salary slips.
  • Analytics: summarizes workforce, attendance, leave, and payroll data for HR.

User Roles

  • Employee: can access only their own profile, attendance, leave, and payroll information.
  • HR/Admin: can manage employees, view organization-wide records, approve leave, update payroll, and see analytics.

Built With

  • Next.js
  • React
  • TypeScript
  • Tailwind CSS
  • MongoDB Atlas
  • Mongoose
  • Auth.js
  • Zod
  • bcrypt

About

Dayflow is a human resource management system that helps employees and HR teams handle everyday workplace tasks from one role-based dashboard.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages