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

# Creditor Detail View

> A platform operator opens ABC Collections from Manage Accounts to review company revenue, account performance, plan details, eco profile details, and contacts.

## Real-World Example

A platform operator opens ABC Collections from Manage Accounts to review revenue, consumer-account performance, membership plan details, eco profile information, and company contacts. The view supports platform support work without editing unrelated creditor data.

## Visual Flow

```mermaid placement="top-right" actions={true} theme={"system"}
flowchart TD
    A["Super Admin opens creditor record"] --> B["Portal loads creditor details"]
    B --> C["Operator reviews profile tabs and metrics"]
    C --> D["Operator reviews plan and eco profile context"]
    D --> E["Operator reviews contacts and account impact"]
    E --> F["Operator returns to Manage Accounts for row-level actions"]
    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,C actor;
    class B,D,E system;
    class F outcome;
    linkStyle default stroke:#94A3B8,stroke-width:2px;
```

## How It Should Work

* It should show platform-level creditor context needed for support.
* It should return summary revenue metrics for membership, consumer payments, automated communications, platform campaigns, EcoLetters, and notice responses.
* It should return performance metrics for total active accounts, settlements, plans, successful payments, disputes, and no-pay accounts.
* It should return the eco profile, plan, and contacts tabs from one company-scoped response.
* It should preserve cross-creditor boundaries even for Super Admin users.
* It should keep membership, merchant, user, and consumer impact visible without returning list-page action metadata.

## How It Should Not Work

* It should not return row-level list actions in the detail response.
* It should not make broad platform edits look like normal creditor self-service changes.
* It should not update a different creditor because of route or selection mistakes.
* It should not hide whether a value is creditor-owned or platform-owned.

## Developer Notes

* `GET /manage-creditors/{company}` returns the profile payload for the detail page.
* The company must have an active root creditor user to be visible from the detail endpoint.
* Metrics are scoped to the requested creditor company and use successful payment/communication records only where money is shown.
* Changes here can affect creditor login, billing, merchant readiness, and consumer payment behavior.

## Related App Areas

* `routes/superadmin/index.php`
* `app/Http/Controllers/SuperAdmin/CreditorController.php`
* `app/Http/Resources/SuperAdminCreditorDetailResource.php`
* `app/Services/SuperAdminCreditorProfileService.php`
