public static function getPopularPages()
    {
        // exclude pages
        $ids = Page::where('slug', '/')
            ->orWhere('url', '=', '')
            ->orWhere('url', 'LIKE', '/auth%')
            ->orWhere('url', 'LIKE', '/account%')
            ->get()
            ->pluck('id', 'id')
            ->values()
            ->toArray();

        // get the popular pages
        $items = Page::where('is_hidden', 0)
            ->whereNotIn('id', $ids)
            ->orderBy('views', 'DESC')
            ->get()
            ->take(5);

        return $items;

        return $items;
    }