diff --git a/app/Nova/Actions/MakePaymentNovaVisaMaster.php b/app/Nova/Actions/MakePaymentNovaVisaMaster.php index aa1324a..d2f1833 100644 --- a/app/Nova/Actions/MakePaymentNovaVisaMaster.php +++ b/app/Nova/Actions/MakePaymentNovaVisaMaster.php @@ -43,6 +43,10 @@ class MakePaymentNovaVisaMaster extends Action */ public function handle(ActionFields $fields, Collection $models) { + if (is_null($fields->payment_amount) || is_null($fields->usd_payment)) { + return ActionResponse::danger('Töleg maglumatlary ýok!'); + } + $resource = $models->first(); if (! $resource->branch || ! $resource->branch->billing_visa_master_username) {