diff --git a/app/Helpers/ClientPortal.php b/app/Helpers/ClientPortal.php index 80c174ebf66b..d635a1aea65e 100644 --- a/app/Helpers/ClientPortal.php +++ b/app/Helpers/ClientPortal.php @@ -24,6 +24,9 @@ use Illuminate\View\View; function isActive($page, bool $boolean = false) { $current_page = Route::currentRouteName(); + $action = Route::currentRouteAction(); // string + + $show = str_replace(['.show','payment_methodss','documentss','subscriptionss'],['s.index','payment_methods','documents','subscriptions'], $current_page); if ($page == $current_page && $boolean) { return true; @@ -33,6 +36,12 @@ function isActive($page, bool $boolean = false) return 'bg-gray-200'; } + if(($page == $show) && $boolean){ + return true; + } + + + return false; }