price function global (needs review)
This commit is contained in:
1 parent
e46276a31b
commit
7677d10821
8 files changed
+65
-7
No files matched your search
@@ -0,0 +1,9 @@
|
||||
@props([
|
||||
'amount' => null,
|
||||
'currency' => '€',
|
||||
])
|
||||
|
||||
{{-- No wrapper element on purpose — drop this inside whatever tag/classes
|
||||
the call site already uses (span, p, etc). Formatting logic lives in
|
||||
App\Support\Price so it's identical everywhere it's used. --}}
|
||||
{{ \App\Support\Price::format($amount, $currency) }}
|
||||
Reference in new issue
Block a user