{{-- Prefixed currency amount input (visual prefix only; numeric value is submitted). Used wherever forms need a currency symbol beside the field (e.g. plan price). --}} @props([ 'name' => 'amount', 'value' => null, 'placeholder' => '0.00', 'prefix' => null, 'required' => false, 'disabled' => false, 'step' => '0.01', 'min' => '0', ]) @php $prefixSymbol = $prefix ?? \App\Support\PriceFormatter::SYMBOL; @endphp @php $control = 'block w-full rounded-lg border border-input bg-card py-2.5 pl-7 pr-3 text-sm text-card-foreground shadow-sm transition-colors duration-200 placeholder:text-muted-foreground focus:border-primary-500 focus:outline-none focus:ring-2 focus:ring-primary-500/20 dark:focus:border-primary-400 disabled:opacity-60 disabled:cursor-not-allowed'; $err = $errors->has($name) ? ' border-red-400 focus:border-red-500 focus:ring-red-500/20' : ''; @endphp