@props(['amount', 'suffix' => null, 'size' => 'md']) @php $tenant = app(\App\Support\Tenancy\CurrentTenant::class)->get(); $gstRate = $tenant?->gst_rate ?? 10; $incGst = (float) $amount; $exGst = $incGst / (1 + ((float) $gstRate / 100)); $sizeClass = $size === 'lg' ? 'text-[32px] leading-[34px]' : 'text-2xl leading-tight'; @endphp merge(['class' => 'inline-flex flex-col']) }}> ${{ number_format($incGst, 2) }} @if ($suffix ?? null) {{ $suffix }} @endif ${{ number_format($exGst, 2) }} ex GST