@php use App\Support\PaymentCurrency; $currencyField = $currencyField ?? 'currency'; $selectedCurrency = !empty($model) && !empty($model->currency) ? PaymentCurrency::resolveForModel($model) : PaymentCurrency::normalize( old($currencyField, PaymentCurrency::defaultItemCurrency()), PaymentCurrency::defaultItemCurrency() ); @endphp