Format number in stats widget?

I'm doing this and it works, but I want to format the value as currency. Any idea how I'd do that?

class ReportsOverview extends BaseWidget
{
    protected static ?string $pollingInterval = null;

    protected function getStats(): array
    {
        return [
            Stat::make('Total', CustomerDepositsReport::sum('amount_paid'));
        ];
    }
Solution
Try with number_format() around the value
Was this page helpful?