{{-- Currency glyph for the active clinic. Originally hardcoded to the Saudi Riyal SVG, now resolves to the tenant clinic's currency at render time. The component name stays `x-sar` to avoid touching the ~30 call sites across reports / invoices / payments / dashboards. Override with `code="USD"` for a fixed-currency render (e.g. when displaying a historical subscription whose currency isn't the clinic's current one). --}} @props(['size' => '1em', 'code' => null]) @php $resolved = strtoupper($code ?: \App\Support\Currency::current()); @endphp @if($resolved === 'SAR') @elseif($resolved === 'USD') merge(['class' => 'currency-glyph']) }} style="font-size: {{ $size }}; font-weight: 700; vertical-align: -0.05em;">$ @else {{-- EGP / AED / fallback — show the ISO code as small text. --}} merge(['class' => 'currency-glyph']) }} style="font-size: calc({{ $size }} * 0.82); font-weight: 600; letter-spacing: .02em; vertical-align: -0.025em;">{{ $resolved }} @endif