private function renderPage($structure)
    {
        $page = $structure->page;
        $template = $structure->template ? $structure->template : 'pages.'.strtolower(substr(strrchr(get_class($page), "\\"), 1));

        return view($template, ['page' => $page]);
    }