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

# Generate Report

> Operations needs a report of consumer payments across the platform for a date range. Super Admin selects the report type, filters the dates, and generates the report.

## Real-World Example

Operations needs a report of consumer payments across the platform for a date range. Super Admin selects the report type, filters the dates, and generates the report.

## Visual Flow

```mermaid placement="top-right" actions={true} theme={"system"}
flowchart TD
    A["Super Admin selects report"] --> B["Filters are selected"]
    B --> C["System finds matching records"]
    C --> D["Report is generated"]
    D --> E["Super Admin downloads report"]
    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,C system;
    class D,E outcome;
    linkStyle default stroke:#94A3B8,stroke-width:2px;
```

## How It Should Work

* It should let Super Admin select report type and filters.
* It should generate reports from the intended platform records.
* It should make report output understandable and traceable to filters.

## How It Should Not Work

* It should not ignore selected filters.
* It should not create misleading totals.
* It should not expose generated reports to users outside Super Admin access.

## Developer Notes

* Super Admin report scope can differ from creditor report scope.
* Keep filter behavior explicit and easy to verify.

## Related App Areas

* `app/Livewire/SuperAdmin/Reports/GenerateReport`
* `app/Exports`
