Human Resource Management

Complete oversight of staff onboarding, strict deletion protocols, payroll execution, and attendance tracking.

Start Here: The foundation of HR is structural. Define your Departments (e.g., Science, Admin) and Designations (e.g., HOD, Clerk) before adding any staff members.

1. Staff Directory & Onboarding

Adding staff properly ensures they receive the correct system permissions automatically.

  1. Go to Human Resource > Staff Directory.
  2. Click Add Staff.
  3. Role Binding: Select the system role (`Teacher`, `Accountant`, `Librarian`). This drop-down automatically maps to Spatie's Role permissions, granting them exact dashboard access.
  4. Basic Info & Contracts: Fill out their core details. You can securely upload their Resume/Joining Letter, which is safely stored with path-traversal sanitization.
  5. Click Save.
Generating Credentials: Once the staff is saved, go to their profile and hit Send Credentials. The HR Controller generates a secure, randomized 10-character password and dispatches it immediately via Email/WhatsApp. The password is never stored in plain-text.
Screenshot

2. The "Deletion Lock" Protocol

The system actively prevents you from accidentally wrecking your academic or financial databases by deleting active staff.

If you attempt to delete a staff member, the system will block the action and throw an error if any of the following are true:

3. Attendance & Payroll Synchronization

Payroll is not generated in a vacuum; it reads live attendance data.

Attendance Logging

Payroll Generation

  1. Go to Human Resource > Payroll.
  2. Select the Role, Month, and Year.
  3. Click Generate Payroll for an employee.
  4. Dynamic Calculation: The system tallies Earnings (Basic, HRA) against Deductions (Tax, PF). If Attendance dictates leave without pay, adjust deductions accordingly.
  5. Once calculated, commit the transaction to lock the payroll slip.
Screenshot

4. Leave Management Workflow

Digitizing physical paper trails for time off.