From a28c1d88ea84fe1472ca04a452083709930947ee Mon Sep 17 00:00:00 2001 From: Mekan1206 Date: Tue, 5 May 2026 08:43:46 +0500 Subject: [PATCH] WIP --- 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 8941697..1726037 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')