# amintushar2/fdl_erp_project architecture

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

- Interactive diagram: https://gitdiagram.com/amintushar2/fdl_erp_project
- Repository: https://github.com/amintushar2/fdl_erp_project

## Overview

This Laravel application provides HRM, payroll, administrative access management, purchasing, accounting, and reporting workflows. The clearest end-to-end path in the sampled material is an authenticated salary request routed to the salary controller, which reads and updates database records and can invoke salary processing. Other branches are represented from the source index and repository tree; where their callers or routing were not shown, I have left connections out rather than infer them.

Main entry points: [`app/Services/VoucherService.php`](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Services/VoucherService.php) (Voucher Service), [`app/Http/Controllers/Reports/ReportCenterController.php`](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Reports/ReportCenterController.php) (Report Center), [`app/Http/Controllers/Payroll/SalaryController.php`](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Payroll/SalaryController.php) (Salary Operations), [`app/Services/PurchaseOrderService.php`](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Services/PurchaseOrderService.php) (Purchase Orders)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_people["HRM and People"]
  node_employee_records["Employee Records<br/>[EmpControllers.php]"]
  node_employee_models[("Employee Data Models<br/>[EmpPersonal.php]")]
  node_leave_entry["Leave Entry"]
  node_attendance["Attendance"]
  node_hrm_setup["HRM Setup"]
end

subgraph group_finance["Payroll and Accounts"]
  node_salary_routes["Salary Routes<br/>[salary_routes.php]"]
  node_salary_controller["Salary Operations"]
  node_salary_view["Salary Screen<br/>[index.blade.php]"]
  node_payroll_loan["Advance Loans"]
  node_payroll_bonus["Festival Bonus"]
  node_payroll_increment["Increment Entry"]
  node_voucher_service["Voucher Service<br/>[VoucherService.php]"]
  node_voucher_master[("Voucher Master<br/>[VoucherMaster.php]")]
  node_voucher_detail[("Voucher Details<br/>[VoucherDetail.php]")]
  node_chart_accounts[("Chart of Accounts<br/>[ChartOfAccount.php]")]
end

subgraph group_admin["Administration"]
  node_admin_access["User and Access Admin"]
  node_admin_routes["Route Administration"]
  node_admin_backup["Schema Backup"]
  node_sidebar["Sidebar Menus"]
end

subgraph group_operations["Purchasing and Reports"]
  node_purchase_service["Purchase Orders"]
  node_purchase_master[("Purchase Order Master<br/>[PurOrderMaster.php]")]
  node_purchase_details[("Purchase Order Details")]
  node_report_center["Report Center"]
  node_hrm_report_store[("HRM Report Definitions<br/>[HrmReport.php]")]
end

node_user(("User"))
node_salary_db[("Application Database")]
node_jasper["JasperReports Server"]
node_oracle_reports["Oracle Reports Server"]

node_user -->|"requests salary"| node_salary_routes
node_salary_routes -->|"routes to"| node_salary_controller
node_salary_controller -->|"renders"| node_salary_view
node_salary_controller -->|"queries"| node_salary_db
node_employee_records -->|"uses"| node_employee_models
node_voucher_service -->|"uses"| node_voucher_master
node_voucher_service -->|"uses"| node_voucher_detail
node_voucher_service -->|"uses"| node_chart_accounts
node_purchase_service -->|"uses"| node_purchase_master
node_purchase_service -->|"uses"| node_purchase_details
node_report_center -->|"loads definitions"| node_hrm_report_store
node_report_center -->|"requests reports"| node_jasper
node_report_center -->|"requests reports"| node_oracle_reports
node_sidebar -.->|"supports access menus"| node_admin_access

click node_salary_routes "https://github.com/amintushar2/fdl_erp_project/blob/main/routes/payroll/salary_routes.php"
click node_salary_controller "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Payroll/SalaryController.php"
click node_salary_view "https://github.com/amintushar2/fdl_erp_project/blob/main/resources/views/payroll/salary/index.blade.php"
click node_payroll_loan "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Payroll/AdvanceLoanController.php"
click node_payroll_bonus "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Payroll/FestivalBonusController.php"
click node_payroll_increment "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Payroll/IncrementEntryController.php"
click node_voucher_service "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Services/VoucherService.php"
click node_voucher_master "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Models/Accounts/VoucherMaster.php"
click node_voucher_detail "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Models/Accounts/VoucherDetail.php"
click node_chart_accounts "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Models/Accounts/ChartOfAccount.php"
click node_employee_records "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/EmpControllers.php"
click node_employee_models "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Models/EmpPersonal.php"
click node_leave_entry "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/HrmModule/LeaveEntryController.php"
click node_attendance "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/HrmModule/AttendanceController.php"
click node_hrm_setup "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/HrmSetupController.php"
click node_admin_access "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Admin/UserMenuPermissionController.php"
click node_admin_routes "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Admin/RouteController.php"
click node_admin_backup "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Admin/SchemaBackupController.php"
click node_sidebar "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Services/SidebarMenuService.php"
click node_purchase_service "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Services/PurchaseOrderService.php"
click node_purchase_master "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Models/Inventory/PurOrderMaster.php"
click node_purchase_details "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Models/Inventory/PurOrderDetails.php"
click node_report_center "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Reports/ReportCenterController.php"
click node_hrm_report_store "https://github.com/amintushar2/fdl_erp_project/blob/main/app/Models/HrmReport.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_employee_records,node_employee_models,node_leave_entry,node_attendance,node_hrm_setup,node_user toneBlue
class node_salary_routes,node_salary_controller,node_salary_view,node_payroll_loan,node_payroll_bonus,node_payroll_increment,node_voucher_service,node_voucher_master,node_voucher_detail,node_chart_accounts,node_salary_db toneAmber
class node_admin_access,node_admin_routes,node_admin_backup,node_sidebar,node_jasper,node_oracle_reports toneMint
class node_purchase_service,node_purchase_master,node_purchase_details,node_report_center,node_hrm_report_store toneRose
```

## Components

### HRM and People

- [Employee Records](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/EmpControllers.php): `app/Http/Controllers/EmpControllers.php`
- [Employee Data Models](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Models/EmpPersonal.php): `app/Models/EmpPersonal.php`
- [Leave Entry](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/HrmModule/LeaveEntryController.php): `app/Http/Controllers/HrmModule/LeaveEntryController.php`
- [Attendance](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/HrmModule/AttendanceController.php): `app/Http/Controllers/HrmModule/AttendanceController.php`
- [HRM Setup](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/HrmSetupController.php): `app/Http/Controllers/HrmSetupController.php`

### Payroll and Accounts

- [Salary Routes](https://github.com/amintushar2/fdl_erp_project/blob/main/routes/payroll/salary_routes.php): `routes/payroll/salary_routes.php`
- [Salary Operations](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Payroll/SalaryController.php): `app/Http/Controllers/Payroll/SalaryController.php`
- [Salary Screen](https://github.com/amintushar2/fdl_erp_project/blob/main/resources/views/payroll/salary/index.blade.php): `resources/views/payroll/salary/index.blade.php`
- [Advance Loans](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Payroll/AdvanceLoanController.php): `app/Http/Controllers/Payroll/AdvanceLoanController.php`
- [Festival Bonus](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Payroll/FestivalBonusController.php): `app/Http/Controllers/Payroll/FestivalBonusController.php`
- [Increment Entry](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Payroll/IncrementEntryController.php): `app/Http/Controllers/Payroll/IncrementEntryController.php`
- [Voucher Service](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Services/VoucherService.php): `app/Services/VoucherService.php`
- [Voucher Master](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Models/Accounts/VoucherMaster.php): `app/Models/Accounts/VoucherMaster.php`
- [Voucher Details](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Models/Accounts/VoucherDetail.php): `app/Models/Accounts/VoucherDetail.php`
- [Chart of Accounts](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Models/Accounts/ChartOfAccount.php): `app/Models/Accounts/ChartOfAccount.php`

### Administration

- [User and Access Admin](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Admin/UserMenuPermissionController.php): `app/Http/Controllers/Admin/UserMenuPermissionController.php`
- [Route Administration](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Admin/RouteController.php): `app/Http/Controllers/Admin/RouteController.php`
- [Schema Backup](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Admin/SchemaBackupController.php): `app/Http/Controllers/Admin/SchemaBackupController.php`
- [Sidebar Menus](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Services/SidebarMenuService.php): `app/Services/SidebarMenuService.php`

### Purchasing and Reports

- [Purchase Orders](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Services/PurchaseOrderService.php): `app/Services/PurchaseOrderService.php`
- [Purchase Order Master](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Models/Inventory/PurOrderMaster.php): `app/Models/Inventory/PurOrderMaster.php`
- [Purchase Order Details](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Models/Inventory/PurOrderDetails.php): `app/Models/Inventory/PurOrderDetails.php`
- [Report Center](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Http/Controllers/Reports/ReportCenterController.php): `app/Http/Controllers/Reports/ReportCenterController.php`
- [HRM Report Definitions](https://github.com/amintushar2/fdl_erp_project/blob/main/app/Models/HrmReport.php): `app/Models/HrmReport.php`

### Other components

- **User**
- **Application Database**
- **JasperReports Server**
- **Oracle Reports Server**

## Connections

- User → Salary Routes: requests salary (evidence: `routes/payroll/salary_routes.php`)
- Salary Routes → Salary Operations: routes to (evidence: `routes/payroll/salary_routes.php`)
- Salary Operations → Salary Screen: renders (evidence: `app/Http/Controllers/Payroll/SalaryController.php`)
- Salary Operations → Application Database: queries (evidence: `app/Http/Controllers/Payroll/SalaryController.php`)
- Employee Records → Employee Data Models: uses (evidence: `app/Http/Controllers/EmpControllers.php`)
- Voucher Service → Voucher Master: uses (evidence: `app/Services/VoucherService.php`)
- Voucher Service → Voucher Details: uses (evidence: `app/Services/VoucherService.php`)
- Voucher Service → Chart of Accounts: uses (evidence: `app/Services/VoucherService.php`)
- Purchase Orders → Purchase Order Master: uses (evidence: `app/Services/PurchaseOrderService.php`)
- Purchase Orders → Purchase Order Details: uses (evidence: `app/Services/PurchaseOrderService.php`)
- Report Center → HRM Report Definitions: loads definitions (evidence: `app/Http/Controllers/Reports/ReportCenterController.php`)
- Report Center → JasperReports Server: requests reports (evidence: `app/Http/Controllers/Reports/ReportCenterController.php`)
- Report Center → Oracle Reports Server: requests reports (evidence: `app/Http/Controllers/Reports/ReportCenterController.php`)
- Sidebar Menus → User and Access Admin: supports access menus
