From 99b09dcc065f06c84c86d68b206dd2fc0762762f Mon Sep 17 00:00:00 2001 From: Mekan1206 Date: Wed, 13 May 2026 15:16:39 +0500 Subject: [PATCH] hide currency menu --- app/Repos/System/Nova/NovaMenuRepo.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/Repos/System/Nova/NovaMenuRepo.php b/app/Repos/System/Nova/NovaMenuRepo.php index 8941697b..17260373 100644 --- a/app/Repos/System/Nova/NovaMenuRepo.php +++ b/app/Repos/System/Nova/NovaMenuRepo.php @@ -104,11 +104,10 @@ class NovaMenuRepo ])->icon('cog')->collapsedByDefault()->canSee(NovaPermissionRepo::isAdmin()), MenuSection::make(__('Currencies'), [ - MenuItem::resource(CurrencyRate::class), - MenuItem::resource(NovaVisaMasterSetting::class), + MenuItem::resource(CurrencyRate::class)->canSee(fn() => NovaPermissionRepo::isAdmin() || NovaPermissionRepo::isCurrencyMaintainer()), + MenuItem::resource(NovaVisaMasterSetting::class)->canSee(fn() => NovaPermissionRepo::isAdmin() || NovaPermissionRepo::isCurrencyMaintainer()), ])->icon('currency-dollar') - ->collapsedByDefault() - ->canSee(fn () => NovaPermissionRepo::isAdmin() || NovaPermissionRepo::isCurrencyMaintainer()), + ->collapsedByDefault(), MenuSection::resource(OnlinePaymentHistoryResource::class) ->icon('credit-card')