vernova/resources/views/components/currency-display.blade.php
2026-07-26 19:58:27 +03:30

8 lines
234 B
PHP

@props(['amount' => 0, 'currency' => null])
@php
$formatted = \App\Helpers\CurrencyHelper::formatWithSymbol((float) $amount, $currency);
@endphp
<span {{ $attributes->merge(['class' => 'font-medium']) }}>{{ $formatted }}</span>