diff --git a/app/Nova/Actions/MakePaymentNovaVisaMaster.php b/app/Nova/Actions/MakePaymentNovaVisaMaster.php index 9f9ad62..e3d41fa 100644 --- a/app/Nova/Actions/MakePaymentNovaVisaMaster.php +++ b/app/Nova/Actions/MakePaymentNovaVisaMaster.php @@ -61,6 +61,10 @@ class MakePaymentNovaVisaMaster extends Action { $usd_to_tmt = CurrencyRate::where('currency_from', 'USD')->where('currency_to', 'TMT')->first('value'); + if ($usd_to_tmt) { + return []; + } + $max_value = number_format($usd_to_tmt->value * 250, 2); return [