---
tags: [companyuser, controller]
module: CompanyUser
---

# DashboardController

## Connections
[[_CompanyUser]] · [[[Model]User]] · [[[Service]DashboardServices]] · [[[Service]NotificationServices]] · [[[Routes]Routes]] · [[[Cross]CrossModuleDependencies]]

## Source
```
Modules/CompanyUser/Http/Controllers/CompanyUserController.php
Modules/CompanyUser/Http/Controllers/NotificationController.php
Modules/CompanyUser/Http/Controllers/ReferralController.php
Modules/CompanyUser/Http/Controllers/CompanyConfigurationController.php
Modules/CompanyUser/Http/Controllers/Api/InsightsController.php
Modules/CompanyUser/Http/Controllers/Api/VomAIController.php
```

## Routes

| Method | URI | Controller | Purpose |
|---|---|---|---|
| GET | /companyuser | CompanyUserController::index | Dashboard home |
| GET | /companyuser/edit-profile | CompanyUserController::edit | Profile edit form |
| PUT | /companyuser/edit-profile | CompanyUserController::update | Save profile |
| GET | /companyuser/notifications | NotificationController::index | Notification list |
| GET | /companyuser/notifications/{id} | NotificationController::show | Mark read + redirect |
| DELETE | /companyuser/notifications | NotificationController::destroy | Delete all |
| GET/POST/PUT/DELETE | /companyuser/referral/* | ReferralController CRUD | Referral management |
| POST | /companyuser/create/config | CompanyConfigurationController::store | Save company config |
| POST | /v2/companyuser/insights/calculate-weekly | InsightsController::calculateWeekly | Compute weekly insights |
| POST | /v2/companyuser/vom-ai | VomAIController::generateAiResponse | VOM AI response |

## Service Dependencies
`RetrievingDataForDashboardService` · `IncomeStatementChartService` · `GetNotificationsService` · `ShowNotificationService` · `DeletingNotificationsService` · `UpdatingUserProfileService`
