diff --git a/app/Listeners/Menu/ShowInProfile.php b/app/Listeners/Menu/ShowInProfile.php index b667008b7..21d612eb1 100644 --- a/app/Listeners/Menu/ShowInProfile.php +++ b/app/Listeners/Menu/ShowInProfile.php @@ -33,7 +33,9 @@ class ShowInProfile $menu->route('users.index', $title, [], 20, ['icon' => 'people']); } + $is_portal = user()->isCustomer() ? 'portal.' : ''; + $title = trim(trans('auth.logout')); - $menu->route('logout', $title, [], 90, ['icon' => 'power_settings_new', 'class' => 'mt-5']); + $menu->route($is_portal . 'logout', $title, [], 90, ['icon' => 'power_settings_new', 'class' => 'mt-5']); } }