public function index()
    {
        $templates = $this->template->where('active', 1)->where('type', 'default')->get();
        
        $pages = $this->page->get();
        
        return view('chuckcms::backend.templates.index', compact('templates', 'pages'));
    }
public function index()
    {
        $templates = $this->template->where('active', 1)->where('type', 'default')->get();
        
        $pages = $this->page->get();
        
        return view('chuckcms::backend.templates.index', compact('templates', 'pages'));
    }
public function index ( ) { $ templates = $ this -> template -> where ( 'active' , 1 ) -> where ( 'type' , 'default' ) -> get ( ) ; $ pages = $ this -> page -> get ( ) ; return view ( 'chuckcms::backend.templates.index' , compact ( 'templates' , 'pages' ) ) ; }
Show the dashboard -> templates > index

@return \Illuminate\View\View
Show the dashboard - > templates > index