From d157c21883b26a968814f0c28b946c4417fcdc99 Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Wed, 10 Sep 2025 13:52:28 +0500 Subject: [PATCH] wip --- app/Jobs/SendSberToSystem.php | 30 +++++++++++++++++++ .../Resources/NovaSberPaymentOrderItem.php | 10 +++++-- 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 app/Jobs/SendSberToSystem.php diff --git a/app/Jobs/SendSberToSystem.php b/app/Jobs/SendSberToSystem.php new file mode 100644 index 0000000..00feac3 --- /dev/null +++ b/app/Jobs/SendSberToSystem.php @@ -0,0 +1,30 @@ +icon('server') ->sole() - ->withoutConfirmation(), + ->withoutConfirmation() + ->canSee(function ($request) { + return auth()->user()->isSystemUser(); + }), SyncWithSystem::make() ->icon('cloud') ->sole() - ->withoutConfirmation(), + ->withoutConfirmation() + ->canSee(function ($request) { + return auth()->user()->isAdmin(); + }), ]; } }