'dashboard', 'name' => 'Dashboard', 'path' => '/dashboard', ], [ 'icon' => 'calendar', 'name' => 'Calendar', 'path' => '/calendar', ], [ 'icon' => 'user-profile', 'name' => 'User Profile', 'path' => '/profile', ], [ 'name' => 'Forms', 'icon' => 'forms', 'subItems' => [ ['name' => 'Form Elements', 'path' => '/form-elements', 'pro' => false], ], ], [ 'name' => 'Tables', 'icon' => 'tables', 'subItems' => [ ['name' => 'Basic Tables', 'path' => '/basic-tables', 'pro' => false] ], ], [ 'name' => 'Pages', 'icon' => 'pages', 'subItems' => [ ['name' => 'Blank Page', 'path' => '/blank', 'pro' => false], ['name' => '404 Error', 'path' => '/error-404', 'pro' => false] ], ], ]; } public static function getOthersItems() { return [ [ 'icon' => 'charts', 'name' => 'Charts', 'subItems' => [ ['name' => 'Line Chart', 'path' => '/line-chart', 'pro' => false], ['name' => 'Bar Chart', 'path' => '/bar-chart', 'pro' => false] ], ], [ 'icon' => 'ui-elements', 'name' => 'UI Elements', 'subItems' => [ ['name' => 'Alerts', 'path' => '/alerts', 'pro' => false], ['name' => 'Avatar', 'path' => '/avatars', 'pro' => false], ['name' => 'Badge', 'path' => '/badge', 'pro' => false], ['name' => 'Buttons', 'path' => '/buttons', 'pro' => false], ['name' => 'Images', 'path' => '/image', 'pro' => false], ['name' => 'Videos', 'path' => '/videos', 'pro' => false], ], ], [ 'icon' => 'authentication', 'name' => 'Authentication', 'subItems' => [ ['name' => 'Sign In', 'path' => '/signin', 'pro' => false], ['name' => 'Sign Up', 'path' => '/signup', 'pro' => false], ], ], ]; } public static function getMenuGroups() { return [ [ 'title' => 'Menu', 'items' => self::getMainNavItems() ], [ 'title' => 'Others', 'items' => self::getOthersItems() ] ]; } public static function isActive($path) { return request()->is(ltrim($path, '/')); } public static function getIconSvg($iconName) { $icons = [ 'dashboard' => '', 'ai-assistant' => '', 'ecommerce' => '', 'calendar' => '', 'user-profile' => '', 'task' => '', 'forms' => '', 'tables' => '', 'pages' => '', 'charts' => '', 'ui-elements' => '', 'authentication' => '', 'chat' => '', 'support-ticket' => '', 'email' => '', ]; return $icons[$iconName] ?? ''; } }