first commit for the leave management system. built a Leave Management System with role-based access:
Employees can apply for leave and track balance, status, and history. Managers can view all requests and approve/reject them. Login with separate dashboards for employees and managers with the dummy json. Tables with filters (All, Pending, Approved, Rejected) for easy management.
This commit is contained in:
1 parent
3fdca895cc
commit
c5946ce95e
33 files changed
+7173
-212
No files matched your search
@@ -0,0 +1,22 @@
|
||||
[
|
||||
{
|
||||
"id": 101,
|
||||
"userId": 1,
|
||||
"type": "Sick",
|
||||
"fromDate": "2026-04-25",
|
||||
"toDate": "2026-04-26",
|
||||
"reason": "Fever",
|
||||
"status": "Approved",
|
||||
"appliedAt": "2026-04-20"
|
||||
},
|
||||
{
|
||||
"id": 102,
|
||||
"userId": 2,
|
||||
"type": "Casual",
|
||||
"fromDate": "2026-04-28",
|
||||
"toDate": "2026-04-30",
|
||||
"reason": "Family trip",
|
||||
"status": "Pending",
|
||||
"appliedAt": "2026-04-27"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,25 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"username": "emp1",
|
||||
"password": "123",
|
||||
"name": "Rahul Sharma",
|
||||
"role": "employee",
|
||||
"leaveBalance": 12
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"username": "emp2",
|
||||
"password": "123",
|
||||
"name": "Priya Das",
|
||||
"role": "employee",
|
||||
"leaveBalance": 8
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"username": "manager",
|
||||
"password": "123",
|
||||
"name": "Amit Manager",
|
||||
"role": "manager"
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user