From 6a0b1ed71403000549b2cbf15366b274a41c9f6f Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Mon, 14 Oct 2024 21:54:58 +0500 Subject: [PATCH] wip --- app/Nova/Actions/CheckOnlinePayment.php | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/app/Nova/Actions/CheckOnlinePayment.php b/app/Nova/Actions/CheckOnlinePayment.php index e1eb36d..3c75860 100644 --- a/app/Nova/Actions/CheckOnlinePayment.php +++ b/app/Nova/Actions/CheckOnlinePayment.php @@ -61,17 +61,9 @@ class CheckOnlinePayment extends Action 'password' => $password, ]); - $payment_status = $response['ErrorCode'] == '0'; - - if ($payment_status) { - return Action::modal('modal', [ - 'message' => 'Tölenen', - ]); - } - - return Action::modal('modal', [ - 'message' => 'Tölenmedik', - ]); + return $response['ErrorCode'] == '0' + ? ActionResponse::message('Tölenen') + : ActionResponse::danger('Tölenmedik'); } /**