Commit Graph

7 Commits

Author SHA1 Message Date
Yoga Pangestu
27c5b5fffa refactor: streamline enum management and enhance role assignment logic in EmployeeController for improved maintainability 2026-06-22 14:41:52 +07:00
Yoga Pangestu
b7fddf0597 refactor: update EmployeeController to use ToggleStatusRequest for status toggling and streamline EmployeeService methods for improved validation and clarity 2026-06-21 01:16:22 +07:00
Yoga Pangestu
cffea55157 refactor: restrict role-based permissions and update employee management flow accordingly 2026-06-14 02:30:34 +07:00
Yoga Pangestu
887b811cee Refactor admin controllers for categories, products, and raw materials. Introduce new Master namespace for CategoryController, ProductController, and RawMaterialController, enhancing organization and maintainability. Migrate existing logic to dedicated service classes for improved separation of concerns and code clarity. Remove outdated controllers to streamline the codebase. 2026-06-10 15:02:14 +07:00
Yoga Pangestu
a917c76c6b Add role and permission management using Spatie's Laravel Permission package. Introduce Role and Permission enums, update User model to use roles, and implement authorization checks in EmployeeController and related components. Enhance employee management forms and data tables to include role selection and display. Update migrations and seeders for roles and permissions. 2026-06-10 01:51:05 +07:00
Yoga Pangestu
184b012fd9 Remove EmployeeStatus enum and related references from the codebase. Update Employee and User models to eliminate employee status handling. Refactor EmployeeController and related components to remove employee status filtering and display. Adjust EmployeeRequest and migration files accordingly. 2026-06-10 01:31:50 +07:00
Yoga Pangestu
926da48a8e Enhance employee and user profile models by adding formatted date attributes and relationships. Introduce enum labels for EmployeeStatus, EmploymentStatus, and Gender. Update routes for employee management with new HR controller actions. 2026-06-10 01:16:15 +07:00