Project
Employee Management: Staff Records and Monthly Payroll in Laravel
An internal Laravel tool for an office team: employee records with PAN, PF and bank details, departments, salary structures, offer emails and a monthly pay run that turns leave days into each person's salary.

This is an employee management system for a company's office team in India: one place for staff records, departments, salary structures, offer letters and the monthly pay run. It does the work that often sits in a spreadsheet, including the moment every month when someone works out each person's pay by hand.
I built it in Laravel as an internal tool. Only signed-in staff can use it, and there is no public side.
What I built
- Staff records: each employee with an automatic employee number, contact details, department, designation, joining date, statutory numbers and bank details.
- Departments and designations: simple lists that the employee form draws from, with sub-departments under each department.
- Salary structures: basic pay, HRA, conveyance, special allowance and bonus, with the monthly total worked out as you type.
- Monthly payroll: pick a month and the employees, enter leave days, and the salary for each person is calculated and saved.
- Offer emails and user accounts: appointment records that can be emailed as an offer, and accounts for the people who use the system.
How it works
Setting up the company
The office manager first fills in the building blocks: the designations (the job titles) and the departments, each with an optional sub-department. When a department is picked on the employee form, its sub-department loads by itself, so nobody has to remember which belongs where.
Adding an employee
The employee form holds what an Indian payroll needs: name, email, phone, designation, department, date of joining, PAN, PF number, UAN, ESI number, bank name and account number, address, and an active or inactive status. The system gives each new person the next employee number, so numbers stay in order and never repeat. Emails must be unique, and the list of employees can be searched and sorted in the browser.
The salary structure
Each employee then gets a salary structure in five parts: basic pay, house rent allowance, conveyance allowance, special allowance and bonus. The total updates live as each figure is typed, so the person entering it sees the monthly salary before saving. Only employees with a salary structure can be added to a pay run.
Offer letters
An appointment record holds a name, a designation and a monthly salary. From there, the team can send an offer email to the candidate: a short message that offers the position and states the salary, signed with the company's name.
The monthly pay run
Payroll is the heart of the system, so it got the most care.
- Pick the month. The month list covers the current year. A month that has already been run, or that is already over, is greyed out, so the same month cannot be paid twice by mistake.
- Pick the employees. A searchable multi-select lists everyone who has a salary structure. If any of them already has pay for that month, the system refuses and lists them.
- Enter leave days. A table shows each person with the number of days in that month. The office manager types the leave-without-pay days, and the paid days and the salary appear at once. The calculation is plain and easy to check:
| Value | How it is worked out |
|---|---|
| Days in month | The real calendar days of that month (28 to 31) |
| Paid days | Days in month minus leave-without-pay days |
| Salary | Monthly total ÷ days in month × paid days |
Every change is saved in the background as it is typed, and leave days larger than the month are refused on the spot.
- Export. The finished sheet downloads as an Excel file with the typed values in it, ready to hand on.
Past pay runs are listed by year and month with the number of employees in each. A whole month can be opened again or removed in one step.
A few details I cared about
- Calendar-true days. A month's days come from the real calendar, so February and 31-day months pay correctly without anyone thinking about it.
- No double pay. The month list and the duplicate check together make it hard to pay the same person twice for one month.
- Fast tables. Lists use DataTables for instant search and sorting, and Select2 for picking many employees from a long list.
What I took from this project
Payroll looks like arithmetic, but most of the work is guarding against the mistakes people make on a busy day: the wrong month, the same person twice, more leave than the month has. Putting those rules into the screens, rather than into a checklist, is what makes a small tool like this worth using.
Tools used
| Area | Tools |
|---|---|
| Backend | Laravel, PHP, MySQL |
| Sign-in | Laravel Breeze |
| Frontend | Blade templates, Bootstrap, jQuery |
| Tables and forms | DataTables with Excel export, Select2 |
| Laravel Mail with Markdown templates |
Do you have staff or payroll work that still lives in spreadsheets? Tell me about it.

Comments
No ratings yet
Log in to comment
Only members can comment and rate posts. It is free and takes a minute.
No comments yet. Be the first to share your thoughts.