@props([ 'amount' => null, 'plan' => null, 'showDuration' => true, ]) @php use App\Support\PriceFormatter; $display = isset($plan) && $plan && $showDuration ? PriceFormatter::formatPlanPrice($amount, $plan) : PriceFormatter::formatDisplay($amount); @endphp merge(['class' => 'tabular-nums']) }}>{{ $display }}