F
Filament11mo ago
Noor

money format

so I want dollar signs on my table price list for which I'm using TextColumn::make('price')->money('cad', true)->sortable(), this but it shows CA in front of every price which I don't want
5 Replies
Salah Kanjo
Salah Kanjo11mo ago
You can instead use ->prefix("$")
Noor
Noor11mo ago
then It does not show this format $32.00 it shows $32
Salah Kanjo
Salah Kanjo11mo ago
Try appending ->numeric() But i think ->money () should do the job
Noor
Noor11mo ago
nope doesn't work
josef
josef11mo ago
I'm guessing that's just how canadian dollars are formatted then, using money. You could use something else to fomat the price, e.g. akounting/money (not sure if it's different there, though)