diff --git a/app/Helpers/custom.php b/app/Helpers/custom.php index 2b9cd75..c0b7537 100644 --- a/app/Helpers/custom.php +++ b/app/Helpers/custom.php @@ -953,7 +953,7 @@ if (!function_exists('renderMenu')) { // dd($p1->route); if ($access1) { - $active1 = $active ? ' active ' . null : null; + $active1 = activeMenuClass($p1->module) ? 'active' : ''; $html .= '
  • ' . @$p1->title.''; if (count($child2) > 0) { @@ -966,7 +966,7 @@ if (!function_exists('renderMenu')) { $link2 = count($child3) > 0 ? '' : 'menu-link'; if ($access2) { $active2 = activeMenuClass($p2->module) ? 'active' : ''; - $html .= '
  • ' . @$p2->title.''; + $html .= '
  • ' . @$p2->title.''; if (count($child3) > 0) { $html .= ''; $html .= '