vernova/resources/views/components/currency-display.blade.php
Kazem Alghasi b6b2057df2
Some checks failed
Tests / PHP ${{ matrix.php }} (8.2) (push) Has been cancelled
Tests / PHP ${{ matrix.php }} (8.3) (push) Has been cancelled
اولین کامیت پروژه vernova
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>