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

# Campaign Tracker

> Super Admin sends a campaign to 300 creditors. After the job runs, they open Campaign Tracker to confirm which messages were sent and whether any failed.

## Real-World Example

Super Admin sends a campaign to 300 creditors. After the job runs, they open Campaign Tracker to confirm which messages were sent and whether any failed.

## Visual Flow

```mermaid placement="top-right" actions={true} theme={"system"}
flowchart TD
    A["Campaign runs"] --> B["System records message status"]
    B --> C{"Message result"}
    C -->|Sent| D["Show sent"]
    C -->|Pending| E["Show pending"]
    C -->|Failed| F["Show failed"]
    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,F risk;
    linkStyle default stroke:#94A3B8,stroke-width:2px;
```

## How It Should Work

* It should show campaign processing status.
* It should connect results to the correct campaign.
* It should make failed or pending activity visible.

## How It Should Not Work

* It should not mark unsent messages as sent.
* It should not hide failed delivery results.
* It should not mix creditor-level campaigns with unrelated Super Admin campaigns.

## Developer Notes

* Tracker accuracy depends on background send jobs writing reliable status.
* Use tracker behavior to diagnose campaign issues before resending.

## Related App Areas

* `routes/superadmin.php`
* `app/Livewire/Creditor/Communications/CampaignTracker`
* `app/Jobs/SendCampaignEmailSmsOrELetterJob.php`
