> ## Documentation Index
> Fetch the complete documentation index at: https://docs.younegotiate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sub-Accounts

> ABC Collections has separate Medical and Retail sub-accounts.

## Real-World Example

ABC Collections has separate Medical and Retail sub-accounts. A Super Admin user reviews the sub-account setup to confirm users and consumers are assigned to the correct business unit.

## Visual Flow

```mermaid placement="top-right" actions={true} theme={"system"}
flowchart TD
    A["Super Admin opens Sub-Accounts"] --> B["System lists sub-account records"]
    B --> C["Super Admin reviews parent company"]
    C --> D["Assignments are confirmed or corrected"]
    classDef default fill:#F8FAFC,stroke:#64748B,stroke-width:1.5px,color:#0F172A;
    classDef actor fill:#E0F2FE,stroke:#0284C7,stroke-width:2px,color:#0C4A6E;
    classDef system fill:#F8FAFC,stroke:#64748B,stroke-width:1.5px,color:#0F172A;
    classDef decision fill:#FEF3C7,stroke:#D97706,stroke-width:2px,color:#78350F;
    classDef risk fill:#FEE2E2,stroke:#DC2626,stroke-width:2px,color:#7F1D1D;
    classDef outcome fill:#DCFCE7,stroke:#16A34A,stroke-width:2px,color:#14532D;
    class A actor;
    class B,C system;
    class D outcome;
    linkStyle default stroke:#94A3B8,stroke-width:2px;
```

## How It Should Work

* It should show sub-accounts with their parent creditor context.
* It should support review of consumer and user organization.
* It should preserve parent and child account boundaries.

## How It Should Not Work

* It should not detach consumers or users from their intended sub-account.
* It should not mix unrelated creditor sub-accounts.
* It should not break reports or imports that depend on sub-account assignment.

## Developer Notes

* Sub-account changes can affect access, reporting, imports, and consumer visibility.
* Treat sub-account relationships as operational structure, not display-only data.

## Related App Areas

* `routes/superadmin.php`
* `app/Livewire/Creditor/Subclient`
