user()) { $currency = auth()->user()->currency; } if ($currency) { switch ($currency->iso) { case 'BRL': $amount = number_format($amount, 2, ',', '.'); break; } $amount = $currency->symbol.$amount; } return (string) $amount; } }