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

# Logo & Links

> ABC Collections uploads its company logo and support website link.

## Real-World Example

ABC Collections sets a blue logo, and XYZ Collections sets a green logo. Jane has accounts with both creditors because the same PII matched accounts in both collections.

If Jane has chosen her own portal colors in the consumer portal, her colors should display across the consumer portal. If she has not chosen her own colors, then an account-specific ABC page should show ABC's branding, and an account-specific XYZ page should show XYZ's branding.

On global consumer pages that can show multiple creditors at once, such as My Accounts, the header should stay on the default YouNegotiate branding unless Jane has personal colors. ABC's logo should never appear on XYZ's account flow.

## Visual Flow

```mermaid placement="top-right" actions={true} theme={"system"}
flowchart TD
    A["Creditor saves logo and link settings"] --> B["Consumer opens portal page"]
    B --> C{"Did consumer set personal colors?"}
    C -->|Yes| D["Use consumer colors across the portal"]
    C -->|No| E{"Is this a specific account page?"}
    E -->|Yes| F["Use that account creditor or sub-account branding"]
    E -->|No| G["Use default YouNegotiate branding"]
    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,E decision;
    class D,F,G outcome;
    linkStyle default stroke:#94A3B8,stroke-width:2px;
```

## How It Should Work

* It should allow the creditor to manage logo and link settings for the master account or sub-account.
* If the consumer has personal portal colors, those colors should display across the consumer portal.
* If the consumer has no personal colors, account-specific pages should use the current account's sub-account logo first, then the master creditor logo, then default branding.
* Global consumer pages that can include multiple creditors should use default YouNegotiate branding unless the consumer has personal colors.
* Links should take consumers to the intended destination.

## How It Should Not Work

* It should not show ABC Collections branding while Jane is viewing XYZ Collections' account flow.
* It should not choose a random creditor logo on global multi-account pages.
* It should not use a sub-account logo as the master creditor logo.
* It should not publish broken or unsafe links.
* It should not remove required YouNegotiate or creditor identity from the experience.

## Developer Notes

* Creditor logo settings are scoped by `company_id` and optional `subclient_id`.
* Consumer header branding should follow this priority: consumer personal colors, route `{consumer}` account branding, default YouNegotiate branding.
* Master creditor logo lookup should only use records where `subclient_id` is empty.
* When this page changes user-visible behavior, update the consumer personalization docs and visual flow.

## Related App Areas

* `routes/creditor/index.php`
* `app/Livewire/Creditor/PersonalizedLogoPage.php`
* `app/Livewire/Consumer/Logo.php`
* `app/Services/PersonalizedLogoService.php`
