# amirulizz00/smartplanner- architecture

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

- Interactive diagram: https://gitdiagram.com/amirulizz00/smartplanner-
- Repository: https://github.com/amirulizz00/smartplanner-

## Overview

SmartWills Planner is a PHP portal for managing clients and will-planning cases, with planning worksheets, risk assessment, learning, resources, and account tools. A typical workflow is to enter the portal, manage a client, create or update a case, and use the client’s planning pages. The sampled controllers show database-backed case and client operations. Several feature pages are listed in the repository tree but were not sampled, so their internal behavior and connections are not inferred here.

Main entry points: [`includes/bootstrap.php`](https://github.com/amirulizz00/smartplanner-/blob/main/includes/bootstrap.php) (Session and DB Setup), [`controller/casecontrol.php`](https://github.com/amirulizz00/smartplanner-/blob/main/controller/casecontrol.php) (Case Operations), [`index.php`](https://github.com/amirulizz00/smartplanner-/blob/main/index.php) (Dashboard), [`controller/clientcontrol.php`](https://github.com/amirulizz00/smartplanner-/blob/main/controller/clientcontrol.php) (Client Operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portal["Portal and Access"]
  node_dashboard["Dashboard<br/>[index.php]"]
  node_auth["Authentication<br/>[auth.php]"]
  node_bootstrap["Session and DB Setup<br/>[bootstrap.php]"]
end

subgraph group_records["Client and Case Records"]
  node_client_pages["Client Management<br/>[clients.php]"]
  node_client_controller["Client Operations<br/>[clientcontrol.php]"]
  node_client_store[("MySQL Database")]
  node_case_pages["Case Management<br/>[cases.php]"]
  node_case_controller["Case Operations<br/>[casecontrol.php]"]
  node_case_forms["Case Create and Edit<br/>[add_case.php]"]
end

subgraph group_planning["Planning and Assessment"]
  node_risk["Risk Assessment"]
  node_checklist["Estate Planning Checklist<br/>[epchecklist.php]"]
  node_funding_gap["Funding Gap<br/>[fundinggap.php]"]
  node_assets["Asset Inventory<br/>[myassets.php]"]
  node_payment["Payment Planning<br/>[payment.php]"]
  node_recommendations["Recommendations"]
  node_review_resources["Resource Review"]
end

subgraph group_learning["Learning and Resources"]
  node_education["Education Dashboard<br/>[dashboard.php]"]
  node_resources["Resource Hub<br/>[resources.php]"]
  node_marketplace["Marketplace<br/>[marketplace.php]"]
  node_support["Support<br/>[support.php]"]
  node_ticket["Support Ticket<br/>[ticket.php]"]
  node_training["Training<br/>[training.php]"]
end

subgraph group_account["Tools and Account"]
  node_tools["Planner Tools<br/>[tools.php]"]
  node_funding_calc["Funding Calculator"]
  node_sales_report["Sales Report<br/>[salesreport.php]"]
  node_profile["User Profile<br/>[profile.php]"]
  node_settings["Settings<br/>[settings.php]"]
end

node_user(("Portal User"))

node_user -->|"opens"| node_dashboard
node_dashboard -->|"lists cases"| node_case_controller
node_case_pages -->|"lists cases"| node_case_controller
node_case_forms -->|"creates or updates"| node_case_controller
node_client_pages -->|"lists clients"| node_client_controller
node_client_controller -->|"queries"| node_client_store
node_case_controller -->|"queries"| node_client_store
node_dashboard -->|"loads setup"| node_bootstrap
node_case_pages -->|"loads setup"| node_bootstrap
node_client_pages -->|"loads setup"| node_bootstrap
node_client_controller -->|"loads setup"| node_bootstrap
node_auth -->|"loads setup"| node_bootstrap
node_user -->|"navigates"| node_client_pages
node_user -->|"navigates"| node_case_pages
node_user -->|"navigates"| node_tools
node_user -->|"navigates"| node_education
node_user -->|"navigates"| node_resources
node_user -->|"navigates"| node_sales_report
node_user -->|"navigates"| node_profile
node_user -->|"navigates"| node_settings
node_user -.->|"authenticates"| node_auth

click node_dashboard "https://github.com/amirulizz00/smartplanner-/blob/main/index.php"
click node_auth "https://github.com/amirulizz00/smartplanner-/blob/main/controller/auth.php"
click node_bootstrap "https://github.com/amirulizz00/smartplanner-/blob/main/includes/bootstrap.php"
click node_client_pages "https://github.com/amirulizz00/smartplanner-/blob/main/clients/clients.php"
click node_client_controller "https://github.com/amirulizz00/smartplanner-/blob/main/controller/clientcontrol.php"
click node_case_pages "https://github.com/amirulizz00/smartplanner-/blob/main/cases/cases.php"
click node_case_controller "https://github.com/amirulizz00/smartplanner-/blob/main/controller/casecontrol.php"
click node_case_forms "https://github.com/amirulizz00/smartplanner-/blob/main/cases/add_case.php"
click node_risk "https://github.com/amirulizz00/smartplanner-/blob/main/clients/risk_assessment.php"
click node_checklist "https://github.com/amirulizz00/smartplanner-/blob/main/clients/plan/epchecklist.php"
click node_funding_gap "https://github.com/amirulizz00/smartplanner-/blob/main/clients/plan/fundinggap.php"
click node_assets "https://github.com/amirulizz00/smartplanner-/blob/main/clients/plan/myassets.php"
click node_payment "https://github.com/amirulizz00/smartplanner-/blob/main/clients/plan/payment.php"
click node_recommendations "https://github.com/amirulizz00/smartplanner-/blob/main/clients/plan/recommendations.php"
click node_review_resources "https://github.com/amirulizz00/smartplanner-/blob/main/clients/plan/reviewresources.php"
click node_education "https://github.com/amirulizz00/smartplanner-/blob/main/education/dashboard.php"
click node_resources "https://github.com/amirulizz00/smartplanner-/blob/main/resources.php"
click node_marketplace "https://github.com/amirulizz00/smartplanner-/blob/main/resources/marketplace.php"
click node_support "https://github.com/amirulizz00/smartplanner-/blob/main/resources/support.php"
click node_ticket "https://github.com/amirulizz00/smartplanner-/blob/main/resources/ticket.php"
click node_training "https://github.com/amirulizz00/smartplanner-/blob/main/resources/training.php"
click node_tools "https://github.com/amirulizz00/smartplanner-/blob/main/tools.php"
click node_funding_calc "https://github.com/amirulizz00/smartplanner-/blob/main/fundingcalculator.php"
click node_sales_report "https://github.com/amirulizz00/smartplanner-/blob/main/salesreport.php"
click node_profile "https://github.com/amirulizz00/smartplanner-/blob/main/profile.php"
click node_settings "https://github.com/amirulizz00/smartplanner-/blob/main/settings.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_dashboard,node_auth,node_bootstrap,node_user toneBlue
class node_client_pages,node_client_controller,node_client_store,node_case_pages,node_case_controller,node_case_forms toneAmber
class node_risk,node_checklist,node_funding_gap,node_assets,node_payment,node_recommendations,node_review_resources toneMint
class node_education,node_resources,node_marketplace,node_support,node_ticket,node_training toneRose
class node_tools,node_funding_calc,node_sales_report,node_profile,node_settings toneIndigo
```

## Components

### Portal and Access

- [Dashboard](https://github.com/amirulizz00/smartplanner-/blob/main/index.php): `index.php`
- [Authentication](https://github.com/amirulizz00/smartplanner-/blob/main/controller/auth.php): `controller/auth.php`
- [Session and DB Setup](https://github.com/amirulizz00/smartplanner-/blob/main/includes/bootstrap.php): `includes/bootstrap.php`

### Client and Case Records

- [Client Management](https://github.com/amirulizz00/smartplanner-/blob/main/clients/clients.php): `clients/clients.php`
- [Client Operations](https://github.com/amirulizz00/smartplanner-/blob/main/controller/clientcontrol.php): `controller/clientcontrol.php`
- **MySQL Database**
- [Case Management](https://github.com/amirulizz00/smartplanner-/blob/main/cases/cases.php): `cases/cases.php`
- [Case Operations](https://github.com/amirulizz00/smartplanner-/blob/main/controller/casecontrol.php): `controller/casecontrol.php`
- [Case Create and Edit](https://github.com/amirulizz00/smartplanner-/blob/main/cases/add_case.php): `cases/add_case.php`

### Planning and Assessment

- [Risk Assessment](https://github.com/amirulizz00/smartplanner-/blob/main/clients/risk_assessment.php): `clients/risk_assessment.php`
- [Estate Planning Checklist](https://github.com/amirulizz00/smartplanner-/blob/main/clients/plan/epchecklist.php): `clients/plan/epchecklist.php`
- [Funding Gap](https://github.com/amirulizz00/smartplanner-/blob/main/clients/plan/fundinggap.php): `clients/plan/fundinggap.php`
- [Asset Inventory](https://github.com/amirulizz00/smartplanner-/blob/main/clients/plan/myassets.php): `clients/plan/myassets.php`
- [Payment Planning](https://github.com/amirulizz00/smartplanner-/blob/main/clients/plan/payment.php): `clients/plan/payment.php`
- [Recommendations](https://github.com/amirulizz00/smartplanner-/blob/main/clients/plan/recommendations.php): `clients/plan/recommendations.php`
- [Resource Review](https://github.com/amirulizz00/smartplanner-/blob/main/clients/plan/reviewresources.php): `clients/plan/reviewresources.php`

### Learning and Resources

- [Education Dashboard](https://github.com/amirulizz00/smartplanner-/blob/main/education/dashboard.php): `education/dashboard.php`
- [Resource Hub](https://github.com/amirulizz00/smartplanner-/blob/main/resources.php): `resources.php`
- [Marketplace](https://github.com/amirulizz00/smartplanner-/blob/main/resources/marketplace.php): `resources/marketplace.php`
- [Support](https://github.com/amirulizz00/smartplanner-/blob/main/resources/support.php): `resources/support.php`
- [Support Ticket](https://github.com/amirulizz00/smartplanner-/blob/main/resources/ticket.php): `resources/ticket.php`
- [Training](https://github.com/amirulizz00/smartplanner-/blob/main/resources/training.php): `resources/training.php`

### Tools and Account

- [Planner Tools](https://github.com/amirulizz00/smartplanner-/blob/main/tools.php): `tools.php`
- [Funding Calculator](https://github.com/amirulizz00/smartplanner-/blob/main/fundingcalculator.php): `fundingcalculator.php`
- [Sales Report](https://github.com/amirulizz00/smartplanner-/blob/main/salesreport.php): `salesreport.php`
- [User Profile](https://github.com/amirulizz00/smartplanner-/blob/main/profile.php): `profile.php`
- [Settings](https://github.com/amirulizz00/smartplanner-/blob/main/settings.php): `settings.php`

### Other components

- **Portal User**

## Connections

- Portal User → Dashboard: opens (evidence: `index.php`)
- Dashboard → Case Operations: lists cases (evidence: `index.php`)
- Case Management → Case Operations: lists cases (evidence: `cases/cases.php`)
- Case Create and Edit → Case Operations: creates or updates (evidence: `cases/add_case.php`)
- Client Management → Client Operations: lists clients (evidence: `clients/clients.php`)
- Client Operations → MySQL Database: queries (evidence: `controller/clientcontrol.php`)
- Case Operations → MySQL Database: queries (evidence: `controller/casecontrol.php`)
- Dashboard → Session and DB Setup: loads setup (evidence: `index.php`)
- Case Management → Session and DB Setup: loads setup (evidence: `cases/cases.php`)
- Client Management → Session and DB Setup: loads setup (evidence: `clients/clients.php`)
- Client Operations → Session and DB Setup: loads setup (evidence: `controller/clientcontrol.php`)
- Authentication → Session and DB Setup: loads setup (evidence: `controller/auth.php`)
- Portal User → Client Management: navigates
- Portal User → Case Management: navigates
- Portal User → Planner Tools: navigates
- Portal User → Education Dashboard: navigates
- Portal User → Resource Hub: navigates
- Portal User → Sales Report: navigates
- Portal User → User Profile: navigates
- Portal User → Settings: navigates
- Portal User → Authentication: authenticates
