WIP
This commit is contained in:
@@ -45,8 +45,14 @@ class MakePaymentNovaVisaMaster extends Action
|
||||
*/
|
||||
public function handle(ActionFields $fields, Collection $models): mixed
|
||||
{
|
||||
$payment_amount = $fields->get('payment_amount');
|
||||
$usd_payment = $fields->get('usd_payment');
|
||||
// $payment_amount = $fields->get('payment_amount');
|
||||
// $usd_payment = $fields->get('usd_payment');
|
||||
|
||||
$usd_to_tmt = floatval(CurrencyRate::where('currency_from', 'USD')->where('currency_to', 'TMT')->first('value')?->value);
|
||||
$max_value = number_format($usd_to_tmt * 250, 2);
|
||||
|
||||
$usd_payment = 250;
|
||||
$payment_amount = $usd_payment * $usd_to_tmt;
|
||||
|
||||
if (! $payment_amount || ! $usd_payment) {
|
||||
return Action::modal('modal-response', [
|
||||
@@ -122,6 +128,7 @@ class MakePaymentNovaVisaMaster extends Action
|
||||
}
|
||||
|
||||
$max_value = number_format($usd_to_tmt * 250, 2);
|
||||
$payment_amount = floatval(number_format($max_value, 2, '.', '')) + 115;
|
||||
|
||||
return [
|
||||
Heading::make(Blade::render(<<<HTML
|
||||
|
||||
Reference in New Issue
Block a user