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;