static public function mainNavigation($hidden = 0)
    {
        $builder = self::where('parent_id', 0)->where('is_main', 1);

        if ($hidden != 1) {
            $builder->where('is_hidden', $hidden);
        }

        return $builder->orderBy('list_main_order')->get();
    }
static public function mainNavigation($hidden = 0)
    {
        $builder = self::where('parent_id', 0)->where('is_main', 1);

        if ($hidden != 1) {
            $builder->where('is_hidden', $hidden);
        }

        return $builder->orderBy('list_main_order')->get();
    }
static public function mainNavigation ( $ hidden = 0 ) { $ builder = self :: where ( 'parent_id' , 0 ) -> where ( 'is_main' , 1 ) ; if ( $ hidden != 1 ) { $ builder -> where ( 'is_hidden' , $ hidden ) ; } return $ builder -> orderBy ( 'list_main_order' ) -> get ( ) ; }
Get the top main level menu

@param int $hidden
@return mixed
Get the top main level menu