From 5cb2f9027c0b610cb5017dab6e4bc8a56f1d5c2d Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Tue, 9 Sep 2025 11:07:35 +0500 Subject: [PATCH] wip --- app/Nova/Actions/Sber/SyncWithSystem.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Nova/Actions/Sber/SyncWithSystem.php b/app/Nova/Actions/Sber/SyncWithSystem.php index 4de517f..a21ead1 100644 --- a/app/Nova/Actions/Sber/SyncWithSystem.php +++ b/app/Nova/Actions/Sber/SyncWithSystem.php @@ -50,6 +50,10 @@ class SyncWithSystem extends Action return ActionResponse::danger('Bu resource tapylmady'); } + if (! $relatedResource->branch) { + return ActionResponse::danger('Şahamça bilen birikdirilmedik'); + } + $username = $relatedResource->branch->billing_sber_username; $password = $relatedResource->branch->billing_sber_password;