public function index() { // ------------------------------------------------------------------------------------------------------------ // HEADLINE // ------------------------------------------------------------------------------------------------------------ $current_headlines = Headline::ActiveOn(\Carbon\Carbon::now())->orderBy('priority')->get(); // ------------------------------------------------------------------------------------------------------------ // HOMEGRID // ------------------------------------------------------------------------------------------------------------ $homegrids = HomegridSetting::orderBy('name')->get(); // ------------------------------------------------------------------------------------------------------------ // SHOW DISPLAY // ------------------------------------------------------------------------------------------------------------ $this->layout->page = view($this->page_base_dir . 'index')->with('route_name', $this->route_name)->with('view_name', $this->view_name); $this->layout->page->current_headlines = $current_headlines; $this->layout->page->homegrids = $homegrids; $this->layout->page->writer_list = $writer_list; $this->layout->page->status_list = $status_list; $this->layout->page->filters = $filters; return $this->layout; }