FilamentF
Filament3y ago
SLy

money() format on Infolist

How to remove trailling .00 from money() format on Infolist?

Infolists\Components\TextEntry::make('price') ->label('Price') ->translateLabel() ->money(config('settings.currency')) ->color('secondary'),

So I would like 250.00 to show as 250, but 250.12 should keep decimals.
Was this page helpful?