# irhammumtaz292-mumtaz/project_techno_drive architecture

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

- Interactive diagram: https://gitdiagram.com/irhammumtaz292-mumtaz/project_techno_drive
- Repository: https://github.com/irhammumtaz292-mumtaz/project_techno_drive

## Overview

This is a Laravel project-management system for PT Techno Drive Engineering. The principal workflow is role-based sign-in, project registration with customer/end-user, staff and equipment assignments, purchase-order numbering and PDF delivery, followed by project and payment-status tracking. Separate operational areas manage customer/staff master data and test-equipment inventory. The map follows explicit route and controller evidence; several controllers and views are listed but unsampled, so their internal behavior is not inferred.

Main entry points: [`routes/web.php`](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/routes/web.php) (Web routes), [`app/Http/Controllers/ProjectController.php`](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/ProjectController.php) (Project workflows), [`app/Models/Project.php`](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/Project.php) (Project records), [`app/Http/Controllers/TestEquipmentController.php`](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/TestEquipmentController.php) (Equipment administration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and dashboard"]
  node_entry["Laravel entry<br/>[index.php]"]
  node_routes["Web routes<br/>[web.php]"]
  node_auth["Authentication<br/>[AuthController.php]"]
  node_roles["Role middleware<br/>[RoleMiddleware.php]"]
  node_dashboard["Dashboard"]
  node_layout["Application layout<br/>[app.blade.php]"]
end

subgraph group_projects["Project operations"]
  node_projects["Project workflows"]
  node_project_views["Project screens"]
  node_letters["Letter numbering"]
  node_pdf["PO PDF renderer"]
end

subgraph group_records["Business records"]
  node_project["Project records<br/>[Project.php]"]
  node_customer["Customer records<br/>[Customer.php]"]
  node_enduser["End-user records<br/>[EndUser.php]"]
  node_masterdata["Customer and staff admin"]
  node_staffadmin["Staff administration"]
  node_people_views["Master-data screens"]
  node_user_model["User records<br/>[User.php]"]
  node_po["Purchase orders<br/>[PurchaseOrder.php]"]
  node_spk["SPK records<br/>[Spk.php]"]
  node_finalreport["Final reports<br/>[FinalReport.php]"]
end

subgraph group_inventory["Equipment inventory"]
  node_equipment["Equipment administration"]
  node_tooladmin["Tool administration"]
  node_equipment_model["Test equipment<br/>[TestEquipment.php]"]
  node_tool_model["Testing tools<br/>[TestingTool.php]"]
  node_equipment_views["Equipment screens"]
end

node_user(("User"))

node_user -->|"requests"| node_entry
node_entry -.->|"boots routes"| node_routes
node_routes -->|"routes login"| node_auth
node_routes -->|"routes dashboard"| node_dashboard
node_routes -->|"routes project actions"| node_projects
node_routes -->|"routes inventory"| node_equipment
node_routes -->|"routes tools"| node_tooladmin
node_routes -->|"routes customer admin"| node_masterdata
node_routes -->|"routes staff admin"| node_staffadmin
node_routes -->|"applies roles"| node_roles
node_auth -->|"authenticates"| node_user_model
node_dashboard -.->|"renders dashboard"| node_layout
node_projects -->|"creates and updates"| node_project
node_projects -->|"loads customers"| node_customer
node_projects -->|"loads end users"| node_enduser
node_projects -->|"loads assignees"| node_user_model
node_projects -->|"assigns equipment"| node_equipment_model
node_projects -->|"generates PO number"| node_letters
node_letters -->|"reads PO sequence"| node_po
node_letters -->|"reads SPK sequence"| node_spk
node_projects -->|"renders PO PDF"| node_pdf
node_pdf -->|"uses PO template"| node_project_views
node_projects -.->|"renders project screens"| node_project_views
node_equipment -->|"manages equipment"| node_equipment_model
node_equipment -->|"deletes matching tools"| node_tool_model
node_tooladmin -->|"creates tools"| node_tool_model
node_tooladmin -->|"syncs equipment"| node_equipment_model
node_equipment -->|"renders inventory"| node_equipment_views
node_masterdata -.->|"renders customer screens"| node_people_views
node_staffadmin -.->|"renders staff screens"| node_people_views
node_project -->|"belongs to"| node_customer
node_project -->|"belongs to"| node_enduser
node_project -->|"assigns staff and PIC"| node_user_model
node_project -->|"links equipment"| node_equipment_model
node_project -->|"has PO"| node_po
node_project -->|"has SPKs"| node_spk
node_project -->|"has reports"| node_finalreport
node_user_model -->|"owns reports"| node_finalreport

click node_entry "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/public/index.php"
click node_routes "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/routes/web.php"
click node_auth "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/AuthController.php"
click node_roles "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Middleware/RoleMiddleware.php"
click node_dashboard "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/DashboardController.php"
click node_layout "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/resources/views/layouts/app.blade.php"
click node_projects "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/ProjectController.php"
click node_project_views "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/tree/main/resources/views/projects"
click node_letters "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Services/LetterNumberService.php"
click node_pdf "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/ProjectController.php"
click node_project "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/Project.php"
click node_customer "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/Customer.php"
click node_enduser "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/EndUser.php"
click node_masterdata "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/CustomerController.php"
click node_staffadmin "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/StaffController.php"
click node_people_views "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/tree/main/resources/views/customers"
click node_user_model "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/User.php"
click node_po "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/PurchaseOrder.php"
click node_spk "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/Spk.php"
click node_finalreport "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/FinalReport.php"
click node_equipment "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/TestEquipmentController.php"
click node_tooladmin "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/MasterController.php"
click node_equipment_model "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/TestEquipment.php"
click node_tool_model "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/TestingTool.php"
click node_equipment_views "https://github.com/irhammumtaz292-mumtaz/project_techno_drive/tree/main/resources/views/equipments"

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_entry,node_routes,node_auth,node_roles,node_dashboard,node_layout,node_user toneBlue
class node_projects,node_project_views,node_letters,node_pdf toneAmber
class node_project,node_customer,node_enduser,node_masterdata,node_staffadmin,node_people_views,node_user_model,node_po,node_spk,node_finalreport toneMint
class node_equipment,node_tooladmin,node_equipment_model,node_tool_model,node_equipment_views toneRose
```

## Components

### Access and dashboard

- [Laravel entry](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/public/index.php): `public/index.php`
- [Web routes](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/routes/web.php): `routes/web.php`
- [Authentication](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/AuthController.php): `app/Http/Controllers/AuthController.php`
- [Role middleware](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Middleware/RoleMiddleware.php): `app/Http/Middleware/RoleMiddleware.php`
- [Dashboard](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/DashboardController.php): `app/Http/Controllers/DashboardController.php`
- [Application layout](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/resources/views/layouts/app.blade.php): `resources/views/layouts/app.blade.php`

### Project operations

- [Project workflows](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/ProjectController.php): `app/Http/Controllers/ProjectController.php`
- [Project screens](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/tree/main/resources/views/projects): `resources/views/projects`
- [Letter numbering](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Services/LetterNumberService.php): `app/Services/LetterNumberService.php`
- [PO PDF renderer](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/ProjectController.php): `app/Http/Controllers/ProjectController.php`

### Business records

- [Project records](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/Project.php): `app/Models/Project.php`
- [Customer records](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/Customer.php): `app/Models/Customer.php`
- [End-user records](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/EndUser.php): `app/Models/EndUser.php`
- [Customer and staff admin](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/CustomerController.php): `app/Http/Controllers/CustomerController.php`
- [Staff administration](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/StaffController.php): `app/Http/Controllers/StaffController.php`
- [Master-data screens](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/tree/main/resources/views/customers): `resources/views/customers`
- [User records](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/User.php): `app/Models/User.php`
- [Purchase orders](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/PurchaseOrder.php): `app/Models/PurchaseOrder.php`
- [SPK records](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/Spk.php): `app/Models/Spk.php`
- [Final reports](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/FinalReport.php): `app/Models/FinalReport.php`

### Equipment inventory

- [Equipment administration](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/TestEquipmentController.php): `app/Http/Controllers/TestEquipmentController.php`
- [Tool administration](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Http/Controllers/MasterController.php): `app/Http/Controllers/MasterController.php`
- [Test equipment](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/TestEquipment.php): `app/Models/TestEquipment.php`
- [Testing tools](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/blob/main/app/Models/TestingTool.php): `app/Models/TestingTool.php`
- [Equipment screens](https://github.com/irhammumtaz292-mumtaz/project_techno_drive/tree/main/resources/views/equipments): `resources/views/equipments`

### Other components

- **User**

## Connections

- User → Laravel entry: requests
- Laravel entry → Web routes: boots routes
- Web routes → Authentication: routes login (evidence: `routes/web.php`)
- Web routes → Dashboard: routes dashboard (evidence: `routes/web.php`)
- Web routes → Project workflows: routes project actions (evidence: `routes/web.php`)
- Web routes → Equipment administration: routes inventory (evidence: `routes/web.php`)
- Web routes → Tool administration: routes tools (evidence: `routes/web.php`)
- Web routes → Customer and staff admin: routes customer admin (evidence: `routes/web.php`)
- Web routes → Staff administration: routes staff admin (evidence: `routes/web.php`)
- Web routes → Role middleware: applies roles (evidence: `routes/web.php`)
- Authentication → User records: authenticates (evidence: `app/Http/Controllers/AuthController.php`)
- Dashboard → Application layout: renders dashboard
- Project workflows → Project records: creates and updates (evidence: `app/Http/Controllers/ProjectController.php`)
- Project workflows → Customer records: loads customers (evidence: `app/Http/Controllers/ProjectController.php`)
- Project workflows → End-user records: loads end users (evidence: `app/Http/Controllers/ProjectController.php`)
- Project workflows → User records: loads assignees (evidence: `app/Http/Controllers/ProjectController.php`)
- Project workflows → Test equipment: assigns equipment (evidence: `app/Http/Controllers/ProjectController.php`)
- Project workflows → Letter numbering: generates PO number (evidence: `app/Http/Controllers/ProjectController.php`)
- Letter numbering → Purchase orders: reads PO sequence (evidence: `app/Services/LetterNumberService.php`)
- Letter numbering → SPK records: reads SPK sequence (evidence: `app/Services/LetterNumberService.php`)
- Project workflows → PO PDF renderer: renders PO PDF (evidence: `app/Http/Controllers/ProjectController.php`)
- PO PDF renderer → Project screens: uses PO template (evidence: `app/Http/Controllers/ProjectController.php`)
- Project workflows → Project screens: renders project screens
- Equipment administration → Test equipment: manages equipment (evidence: `app/Http/Controllers/TestEquipmentController.php`)
- Equipment administration → Testing tools: deletes matching tools (evidence: `app/Http/Controllers/TestEquipmentController.php`)
- Tool administration → Testing tools: creates tools (evidence: `app/Http/Controllers/MasterController.php`)
- Tool administration → Test equipment: syncs equipment (evidence: `app/Http/Controllers/MasterController.php`)
- Equipment administration → Equipment screens: renders inventory (evidence: `app/Http/Controllers/TestEquipmentController.php`)
- Customer and staff admin → Master-data screens: renders customer screens
- Staff administration → Master-data screens: renders staff screens
- Project records → Customer records: belongs to (evidence: `app/Models/Project.php`)
- Project records → End-user records: belongs to (evidence: `app/Models/Project.php`)
- Project records → User records: assigns staff and PIC (evidence: `app/Models/Project.php`)
- Project records → Test equipment: links equipment (evidence: `app/Models/Project.php`)
- Project records → Purchase orders: has PO (evidence: `app/Models/Project.php`)
- Project records → SPK records: has SPKs (evidence: `app/Models/Project.php`)
- Project records → Final reports: has reports (evidence: `app/Models/Project.php`)
- User records → Final reports: owns reports (evidence: `app/Models/User.php`)
