public static function children($menuLinks, $parentID = 0, $level = 1)
    {

        if($level == 1) {
            $fetchMenuList = $menuLinks->where('parent', null);
        }else{
            $fetchMenuList = $menuLinks->where('parent', $parentID);
        }

        //order List
        $fetchMenuList = $fetchMenuList->sortBy('order');

        if($fetchMenuList->count()) {
            $menuLinksList = new \stdClass();
            foreach ($fetchMenuList as $menuLink) {
                $menuLinksID = $menuLink->menuLinkID;
                $menuLinksList->$menuLinksID = $menuLink;
                $menuLinksList->$menuLinksID->children = self::children($menuLinks, $menuLink->menuLinkID, ($level + 1));

                //set active or no
                if (in_array($menuLink->menuLinkID, self::getActiveIDs())) {
                    $menuLinksList->$menuLinksID->isActive = true;
                } else {
                    $menuLinksList->$menuLinksID->isActive = false;
                }
            }
            return $menuLinksList;
        }
        return [];
    }