# albertchristiann14/hrms-swissbell architecture

> Architecture diagram of the GitHub repository albertchristiann14/hrms-swissbell, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/albertchristiann14/hrms-swissbell
- Repository: https://github.com/albertchristiann14/hrms-swissbell

## Overview

SIPU Management is an internal hotel-office management system. Staff and managers use its web workspace to submit or manage work, attendance, HR, and operational requests, then view status, reports, and payslips. The graph preserves the README’s major capabilities and the distinct task, attendance, performance, payroll, and communications domains. Several controllers and frontend pages were not sampled, so unverified UI-to-controller relationships are dashed rather than asserted as traced calls.

Main entry points: [`app/Models/Task.php`](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Models/Task.php) (Task management), [`app/Services/AttendanceService.php`](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Services/AttendanceService.php) (Attendance rules), [`app/Http/Controllers/DashboardController.php`](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/DashboardController.php) (Role dashboards), [`resources/js/Pages/Attendance/Index.tsx`](https://github.com/albertchristiann14/hrms-swissbell/blob/main/resources/js/Pages/Attendance/Index.tsx) (Attendance workspace)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_work["Projects and tasks"]
  node_tasks[("Task management<br/>[Task.php]")]
  node_projects[("Projects and progress<br/>[Project.php]")]
  node_taskstatus["Task lifecycle<br/>[TaskStatus.php]"]
end

subgraph group_people["Workforce and HR"]
  node_org[("Employee and organization<br/>[Employee.php]")]
  node_department[("Departments and positions<br/>[Department.php]")]
  node_payroll["Payroll and payslips"]
  node_performance["Performance assessments"]
  node_leave["Leave and overtime"]
end

subgraph group_attendance["Attendance and schedules"]
  node_attendanceui["Attendance workspace<br/>[Index.tsx]"]
  node_attendancecontroller["Attendance operations"]
  node_attendance_service["Attendance rules"]
  node_attendance_data[("Attendance records<br/>[Attendance.php]")]
  node_schedule[("Schedules and shifts<br/>[WorkSchedule.php]")]
end

subgraph group_operations["Office operations"]
  node_communications["Documents and announcements"]
  node_masterkey["Master key requests"]
  node_rooms["Room borrowing"]
  node_it["IT operations"]
end

subgraph group_workspace["Access and workspace"]
  node_web["Web workspace"]
  node_auth["Registration and login"]
  node_identity[("User identity<br/>[User.php]")]
  node_dashboard["Role dashboards"]
end

node_staff(("Staff and managers"))

node_staff -.->|"uses"| node_web
node_web -.->|"submits access"| node_auth
node_auth -->|"creates account"| node_identity
node_staff -.->|"manages tasks"| node_tasks
node_staff -.->|"tracks projects"| node_projects
node_tasks -->|"recalculates progress"| node_projects
node_tasks -->|"uses statuses"| node_taskstatus
node_staff -.->|"logs attendance"| node_attendanceui
node_attendanceui -.->|"submits records"| node_attendancecontroller
node_attendancecontroller -.->|"applies rules"| node_attendance_service
node_attendance_service -->|"creates records"| node_attendance_data
node_attendance_service -->|"resolves shifts"| node_schedule
node_staff -.->|"views payslips"| node_payroll
node_staff -.->|"reviews performance"| node_performance
node_staff -.->|"reads updates"| node_communications
node_staff -.->|"requests keys"| node_masterkey
node_staff -.->|"borrows rooms"| node_rooms
node_staff -.->|"requests IT support"| node_it
node_staff -.->|"requests leave"| node_leave
node_dashboard -->|"reads attendance"| node_attendance_data
node_dashboard -->|"reads task data"| node_tasks
node_org -->|"references department"| node_department

click node_web "https://github.com/albertchristiann14/hrms-swissbell/blob/main/resources/js/Layouts/AuthenticatedLayout.tsx"
click node_auth "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php"
click node_identity "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Models/User.php"
click node_dashboard "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/DashboardController.php"
click node_org "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Models/Employee.php"
click node_department "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Models/Department.php"
click node_tasks "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Models/Task.php"
click node_projects "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Models/Project.php"
click node_taskstatus "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Enums/TaskStatus.php"
click node_attendanceui "https://github.com/albertchristiann14/hrms-swissbell/blob/main/resources/js/Pages/Attendance/Index.tsx"
click node_attendancecontroller "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/AttendanceController.php"
click node_attendance_service "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Services/AttendanceService.php"
click node_attendance_data "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Models/Attendance.php"
click node_schedule "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Models/WorkSchedule.php"
click node_payroll "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/PayrollController.php"
click node_performance "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Services/PerformanceCalculationService.php"
click node_communications "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/AnnouncementController.php"
click node_masterkey "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/MasterKeyRequestController.php"
click node_rooms "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/RoomBorrowingController.php"
click node_it "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/ItOperationsController.php"
click node_leave "https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/LeaveRequestController.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_tasks,node_projects,node_taskstatus toneBlue
class node_org,node_department,node_payroll,node_performance,node_leave toneAmber
class node_attendanceui,node_attendancecontroller,node_attendance_service,node_attendance_data,node_schedule toneMint
class node_communications,node_masterkey,node_rooms,node_it toneRose
class node_web,node_auth,node_identity,node_dashboard,node_staff toneIndigo
```

## Components

### Projects and tasks

- [Task management](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Models/Task.php): `app/Models/Task.php`
- [Projects and progress](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Models/Project.php): `app/Models/Project.php`
- [Task lifecycle](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Enums/TaskStatus.php): `app/Enums/TaskStatus.php`

### Workforce and HR

- [Employee and organization](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Models/Employee.php): `app/Models/Employee.php`
- [Departments and positions](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Models/Department.php): `app/Models/Department.php`
- [Payroll and payslips](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/PayrollController.php): `app/Http/Controllers/PayrollController.php`
- [Performance assessments](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Services/PerformanceCalculationService.php): `app/Services/PerformanceCalculationService.php`
- [Leave and overtime](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/LeaveRequestController.php): `app/Http/Controllers/LeaveRequestController.php`

### Attendance and schedules

- [Attendance workspace](https://github.com/albertchristiann14/hrms-swissbell/blob/main/resources/js/Pages/Attendance/Index.tsx): `resources/js/Pages/Attendance/Index.tsx`
- [Attendance operations](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/AttendanceController.php): `app/Http/Controllers/AttendanceController.php`
- [Attendance rules](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Services/AttendanceService.php): `app/Services/AttendanceService.php`
- [Attendance records](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Models/Attendance.php): `app/Models/Attendance.php`
- [Schedules and shifts](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Models/WorkSchedule.php): `app/Models/WorkSchedule.php`

### Office operations

- [Documents and announcements](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/AnnouncementController.php): `app/Http/Controllers/AnnouncementController.php`
- [Master key requests](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/MasterKeyRequestController.php): `app/Http/Controllers/MasterKeyRequestController.php`
- [Room borrowing](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/RoomBorrowingController.php): `app/Http/Controllers/RoomBorrowingController.php`
- [IT operations](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/ItOperationsController.php): `app/Http/Controllers/ItOperationsController.php`

### Access and workspace

- [Web workspace](https://github.com/albertchristiann14/hrms-swissbell/blob/main/resources/js/Layouts/AuthenticatedLayout.tsx): `resources/js/Layouts/AuthenticatedLayout.tsx`
- [Registration and login](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/Auth/RegisteredUserController.php): `app/Http/Controllers/Auth/RegisteredUserController.php`
- [User identity](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Models/User.php): `app/Models/User.php`
- [Role dashboards](https://github.com/albertchristiann14/hrms-swissbell/blob/main/app/Http/Controllers/DashboardController.php): `app/Http/Controllers/DashboardController.php`

### Other components

- **Staff and managers**

## Connections

- Staff and managers → Web workspace: uses
- Web workspace → Registration and login: submits access
- Registration and login → User identity: creates account (evidence: `app/Http/Controllers/Auth/RegisteredUserController.php`)
- Staff and managers → Task management: manages tasks (evidence: `README.md`)
- Staff and managers → Projects and progress: tracks projects (evidence: `README.md`)
- Task management → Projects and progress: recalculates progress (evidence: `app/Models/Task.php`)
- Task management → Task lifecycle: uses statuses (evidence: `app/Models/Task.php`)
- Staff and managers → Attendance workspace: logs attendance (evidence: `README.md`)
- Attendance workspace → Attendance operations: submits records
- Attendance operations → Attendance rules: applies rules
- Attendance rules → Attendance records: creates records (evidence: `app/Services/AttendanceService.php`)
- Attendance rules → Schedules and shifts: resolves shifts (evidence: `app/Services/AttendanceService.php`)
- Staff and managers → Payroll and payslips: views payslips (evidence: `README.md`)
- Staff and managers → Performance assessments: reviews performance (evidence: `README.md`)
- Staff and managers → Documents and announcements: reads updates (evidence: `README.md`)
- Staff and managers → Master key requests: requests keys
- Staff and managers → Room borrowing: borrows rooms
- Staff and managers → IT operations: requests IT support
- Staff and managers → Leave and overtime: requests leave
- Role dashboards → Attendance records: reads attendance (evidence: `app/Http/Controllers/DashboardController.php`)
- Role dashboards → Task management: reads task data (evidence: `app/Http/Controllers/DashboardController.php`)
- Employee and organization → Departments and positions: references department (evidence: `app/Models/Employee.php`)
