# phamtanhao2505/24ct1_pham_tan_hao architecture

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

- Interactive diagram: https://gitdiagram.com/phamtanhao2505/24ct1_pham_tan_hao
- Repository: https://github.com/phamtanhao2505/24ct1_pham_tan_hao

## Overview

This is a client-side room-rental management app. A property manager opens the dashboard, then navigates to manage rooms, tenants, rental contracts, or income and expenses. The pages provide forms, lists, filters, and summary calculations using component-local sample data and React state; the supplied source shows no backend or persistent store. The graph captures the route structure and dashboard shortcuts; it does not imply that the separate management pages share or update data.

Main entry points: [`quan-ly-phong-tro/src/App.jsx`](https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/App.jsx) (Route table), [`quan-ly-phong-tro/src/components/Layout.jsx`](https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/components/Layout.jsx) (Navigation layout), [`quan-ly-phong-tro/src/pages/TrangChu.jsx`](https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/pages/TrangChu.jsx) (Dashboard), [`quan-ly-phong-tro/src/pages/PhongTro.jsx`](https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/pages/PhongTro.jsx) (Room management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App shell"]
  node_entry["React entry<br/>[main.jsx]"]
  node_router["Route table<br/>[App.jsx]"]
  node_layout["Navigation layout<br/>[Layout.jsx]"]
end

subgraph group_property["Rental operations"]
  node_rooms["Room management<br/>[PhongTro.jsx]"]
  node_tenants["Tenant management<br/>[KhachThue.jsx]"]
  node_contracts["Rental contracts<br/>[HopDong.jsx]"]
end

subgraph group_overview["Dashboard and finance"]
  node_dashboard["Dashboard<br/>[TrangChu.jsx]"]
  node_finance["Income and expenses<br/>[ThuChi.jsx]"]
end

node_manager(("Property manager"))

node_manager -->|"opens app"| node_entry
node_entry -->|"renders"| node_router
node_router -->|"routes through"| node_layout
node_router -->|"routes to"| node_dashboard
node_router -->|"routes to"| node_rooms
node_router -->|"routes to"| node_tenants
node_router -->|"routes to"| node_contracts
node_router -->|"routes to"| node_finance
node_layout -->|"navigates to"| node_dashboard
node_layout -->|"navigates to"| node_rooms
node_layout -->|"navigates to"| node_tenants
node_layout -->|"navigates to"| node_contracts
node_layout -->|"navigates to"| node_finance
node_dashboard -->|"shortcut navigates"| node_rooms
node_dashboard -->|"shortcut navigates"| node_tenants
node_dashboard -->|"shortcut navigates"| node_contracts
node_dashboard -->|"shortcut navigates"| node_finance

click node_entry "https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/main.jsx"
click node_router "https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/App.jsx"
click node_layout "https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/components/Layout.jsx"
click node_dashboard "https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/pages/TrangChu.jsx"
click node_rooms "https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/pages/PhongTro.jsx"
click node_tenants "https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/pages/KhachThue.jsx"
click node_contracts "https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/pages/HopDong.jsx"
click node_finance "https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/pages/ThuChi.jsx"

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_router,node_layout toneBlue
class node_rooms,node_tenants,node_contracts toneAmber
class node_dashboard,node_finance toneMint
class node_manager toneIndigo
```

## Components

### App shell

- [React entry](https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/main.jsx): `quan-ly-phong-tro/src/main.jsx`
- [Route table](https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/App.jsx): `quan-ly-phong-tro/src/App.jsx`
- [Navigation layout](https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/components/Layout.jsx): `quan-ly-phong-tro/src/components/Layout.jsx`

### Rental operations

- [Room management](https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/pages/PhongTro.jsx): `quan-ly-phong-tro/src/pages/PhongTro.jsx`
- [Tenant management](https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/pages/KhachThue.jsx): `quan-ly-phong-tro/src/pages/KhachThue.jsx`
- [Rental contracts](https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/pages/HopDong.jsx): `quan-ly-phong-tro/src/pages/HopDong.jsx`

### Dashboard and finance

- [Dashboard](https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/pages/TrangChu.jsx): `quan-ly-phong-tro/src/pages/TrangChu.jsx`
- [Income and expenses](https://github.com/phamtanhao2505/24ct1_pham_tan_hao/blob/main/quan-ly-phong-tro/src/pages/ThuChi.jsx): `quan-ly-phong-tro/src/pages/ThuChi.jsx`

### Other components

- **Property manager**

## Connections

- Property manager → React entry: opens app
- React entry → Route table: renders (evidence: `quan-ly-phong-tro/src/main.jsx`)
- Route table → Navigation layout: routes through (evidence: `quan-ly-phong-tro/src/App.jsx`)
- Route table → Dashboard: routes to (evidence: `quan-ly-phong-tro/src/App.jsx`)
- Route table → Room management: routes to (evidence: `quan-ly-phong-tro/src/App.jsx`)
- Route table → Tenant management: routes to (evidence: `quan-ly-phong-tro/src/App.jsx`)
- Route table → Rental contracts: routes to (evidence: `quan-ly-phong-tro/src/App.jsx`)
- Route table → Income and expenses: routes to (evidence: `quan-ly-phong-tro/src/App.jsx`)
- Navigation layout → Dashboard: navigates to (evidence: `quan-ly-phong-tro/src/components/Layout.jsx`)
- Navigation layout → Room management: navigates to (evidence: `quan-ly-phong-tro/src/components/Layout.jsx`)
- Navigation layout → Tenant management: navigates to (evidence: `quan-ly-phong-tro/src/components/Layout.jsx`)
- Navigation layout → Rental contracts: navigates to (evidence: `quan-ly-phong-tro/src/components/Layout.jsx`)
- Navigation layout → Income and expenses: navigates to (evidence: `quan-ly-phong-tro/src/components/Layout.jsx`)
- Dashboard → Room management: shortcut navigates (evidence: `quan-ly-phong-tro/src/pages/TrangChu.jsx`)
- Dashboard → Tenant management: shortcut navigates (evidence: `quan-ly-phong-tro/src/pages/TrangChu.jsx`)
- Dashboard → Rental contracts: shortcut navigates (evidence: `quan-ly-phong-tro/src/pages/TrangChu.jsx`)
- Dashboard → Income and expenses: shortcut navigates (evidence: `quan-ly-phong-tro/src/pages/TrangChu.jsx`)
