public function builderIndex($page_id)
    {
        $page = $this->page->getByIdWithBlocks($page_id);
        $template = $this->template->where('id', $page->template_id)->where('type', 'default')->first();
        $pageblocks = $this->pageBlockRepository->getRenderedByPageBlocks($this->pageblock->getAllByPageId($page->id));

        $block_dir = array_slice(scandir('chuckbe/' . $template->slug . '/blocks'), 2);        
        $blocks = $this->dirToArray($template->path . '/blocks');
        
        return view('chuckcms::backend.pages.pagebuilder.index', compact('template', 'page', 'pageblocks', 'blocks'));
    }
public function builderIndex($page_id)
    {
        $page = $this->page->getByIdWithBlocks($page_id);
        $template = $this->template->where('id', $page->template_id)->where('type', 'default')->first();
        $pageblocks = $this->pageBlockRepository->getRenderedByPageBlocks($this->pageblock->getAllByPageId($page->id));

        $block_dir = array_slice(scandir('chuckbe/' . $template->slug . '/blocks'), 2);        
        $blocks = $this->dirToArray($template->path . '/blocks');
        
        return view('chuckcms::backend.pages.pagebuilder.index', compact('template', 'page', 'pageblocks', 'blocks'));
    }
public function builderIndex ( $ page_id ) { $ page = $ this -> page -> getByIdWithBlocks ( $ page_id ) ; $ template = $ this -> template -> where ( 'id' , $ page -> template_id ) -> where ( 'type' , 'default' ) -> first ( ) ; $ pageblocks = $ this -> pageBlockRepository -> getRenderedByPageBlocks ( $ this -> pageblock -> getAllByPageId ( $ page -> id ) ) ; $ block_dir = array_slice ( scandir ( 'chuckbe/' . $ template -> slug . '/blocks' ) , 2 ) ; $ blocks = $ this -> dirToArray ( $ template -> path . '/blocks' ) ; return view ( 'chuckcms::backend.pages.pagebuilder.index' , compact ( 'template' , 'page' , 'pageblocks' , 'blocks' ) ) ; }
Show the dashboard -> page edit page builder.

@return \Illuminate\View\View
Show the dashboard - > page edit page builder .