Refactor CurrencyRateForm and PayVisaMasterPaymentAction: streamline component definitions, enhance layout with fieldsets, and update Turkish translations for payment-related terms.

This commit is contained in:
2025-11-14 18:29:14 +05:00
parent 2659aae278
commit 8637c22ed7
6 changed files with 85 additions and 101 deletions

View File

@@ -13,27 +13,27 @@ class CurrencyRateForm
{
return $schema
->components([
Select::make('currency_from')
->label(__('Currency from'))
->native(false)
->searchable()
->options(CurrencyRate::currencies())
->rules('required')
->belowLabel('1 möçberi'),
Select::make('currency_from')
->label(__('Currency from'))
->native(false)
->searchable()
->options(CurrencyRate::currencies())
->rules('required')
->belowLabel('1 möçberi'),
Select::make('currency_to')
->label(__('Currency to'))
->native(false)
->searchable()
->options(CurrencyRate::currencies())
->rules('required')
->belowLabel('1 möçberi'),
Select::make('currency_to')
->label(__('Currency to'))
->native(false)
->searchable()
->options(CurrencyRate::currencies())
->rules('required')
->belowLabel('1 möçberi'),
TextInput::make('value')
->label(__('Currency value'))
->required()
->numeric()
->belowLabel('Bitin däl sanlary "." bilen ýazmaly'),
TextInput::make('value')
->label(__('Currency value'))
->required()
->numeric()
->belowLabel('Bitin däl sanlary "." bilen ýazmaly'),
]);
}
}