WIP
This commit is contained in:
@@ -144,22 +144,23 @@ class MakePaymentNovaVisaMaster extends Action
|
|||||||
|
|
||||||
Text::make(sprintf('%s (%s)', __('Töleg möçberi'), __('TMT')), 'payment_amount')
|
Text::make(sprintf('%s (%s)', __('Töleg möçberi'), __('TMT')), 'payment_amount')
|
||||||
->fullWidth()
|
->fullWidth()
|
||||||
->required()
|
->required(),
|
||||||
// ->rules('required', 'numeric', 'max:'.$max_value)
|
// ->rules('required', 'numeric', 'max:'.$max_value)
|
||||||
// ->help("Iň ýokary möçberi: {$max_value} TMT"),
|
// ->help("Iň ýokary möçberi: {$max_value} TMT"),
|
||||||
|
|
||||||
// Text::make(__('USD ekwalendi'), 'usd_rate')
|
Text::make(__('USD ekwalendi'), 'usd_rate')
|
||||||
// ->fullWidth()
|
->fullWidth()
|
||||||
// ->readonly()
|
->readonly()
|
||||||
// ->dependsOn('payment_amount', function (Text $field, NovaRequest $request, FormData $formData) use ($usd_to_tmt) {
|
->dependsOn('payment_amount', function (Text $field, NovaRequest $request, FormData $formData) {
|
||||||
// // $payment_amount = $formData->get('payment_amount');
|
info('hello');
|
||||||
|
// $payment_amount = $formData->get('payment_amount');
|
||||||
|
|
||||||
// // if ($payment_amount) {
|
// if ($payment_amount) {
|
||||||
// // $field->setValue(number_format($payment_amount / $usd_to_tmt, 2, '.', ''));
|
// $field->setValue(number_format($payment_amount / $usd_to_tmt, 2, '.', ''));
|
||||||
// // } else {
|
// } else {
|
||||||
// // $field->setValue('');
|
// $field->setValue('');
|
||||||
// // }
|
// }
|
||||||
// }),
|
}),
|
||||||
|
|
||||||
// Hidden::make('usd_payment')
|
// Hidden::make('usd_payment')
|
||||||
// ->dependsOn('payment_amount', function (Hidden $field, NovaRequest $request, FormData $formData) use ($usd_to_tmt) {
|
// ->dependsOn('payment_amount', function (Hidden $field, NovaRequest $request, FormData $formData) use ($usd_to_tmt) {
|
||||||
|
|||||||
Reference in New Issue
Block a user