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

# Restart Plan

> Jane's plan was paused until a restart date.

## Real-World Example

Jane's plan was paused until a restart date. When the restart date arrives, the portal should move the plan back into active handling and recreate future calendar events for remaining payments.

## Visual Flow

```mermaid placement="top-right" actions={true} theme={"system"}
flowchart TD
    A["Held plan reaches restart date"] --> B["Restart command runs"]
    B --> C["Portal reactivates eligible plan"]
    C --> D["Future schedule transactions are selected"]
    D --> E["Calendar events are recreated"]
    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,B,C,D,E system;
    class E outcome;
    linkStyle default stroke:#94A3B8,stroke-width:2px;
```

## How It Should Work

* It should restart only plans whose restart date and status make them eligible.
* It should restore future payment handling without duplicating schedule transactions.
* It should recreate external calendar events when live sync is enabled.

## How It Should Not Work

* It should not restart cancelled, paid, removed, or ineligible plans.
* It should not create duplicate calendar events.
* It should not restart a plan before the consumer-approved date.

## Developer Notes

* RestartPaymentPlanCommand runs daily and can dispatch calendar creation jobs.
* Manual restart behavior should follow the same status safety rules.

## Related App Areas

* `app/Livewire/Consumer/MyAccount/RestartPlan.php`
* `app/Console/Commands/RestartPaymentPlanCommand.php`
* `app/Jobs/CreateCalendarEvents.php`
