> ## 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.

# Plans

> YouNegotiate adds a new monthly plan with a higher account limit.

## Real-World Example

YouNegotiate adds a new monthly plan with a higher account limit. Super Admin creates the plan, sets pricing and limits, and makes it active so eligible creditors can select it.

## Visual Flow

```mermaid placement="top-right" actions={true} theme={"system"}
flowchart TD
    A["Super Admin creates or edits plan"] --> B["Set price, frequency, and account limit"]
    B --> C{"Plan active?"}
    C -->|Yes| D["Plan is available to creditors"]
    C -->|No| E["Plan remains hidden or unavailable"]
    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 system;
    class C decision;
    class D outcome;
    class E risk;
    linkStyle default stroke:#94A3B8,stroke-width:2px;
```

## How It Should Work

* It should let Super Admin manage plan details and availability.
* It should preserve plan limits and pricing used by creditor memberships.
* It should keep inactive plans from being selected as active options.

## How It Should Not Work

* It should not remove historical billing meaning from old transactions.
* It should not make an incomplete or inactive plan available to creditors.
* It should not allow changes that break creditor membership renewal behavior.

## Developer Notes

* Plan definitions are used by membership settings, auto-renewal, and billing history.
* Be careful when changing limits or frequency for plans with existing creditor memberships.

## Related App Areas

* `app/Livewire/SuperAdmin/Memberships`
* `app/Livewire/Creditor/MembershipSettings/Page.php`
* `app/Jobs/MembershipPlanAutoRenewPaymentJob.php`
