/** * Bind data to the view. * * @param View $view * @return void */ public function compose(View $view) { $view->with('heder', view('admin.header')); $tables = new Cms_tables(); $activeTable = $tables->getActiveTables(); $view->with('left_column', view('admin.left_colum', ['tables' => $activeTable])); }
public function getActiveTables() { return Cms_tables::where('active', '=', '1')->get(); }
public function addParsers($id) { if ((int) $id) { $id = (int) $id; $pp = ParserController::getParsers(); $table = Cms_tables::find($id); return view('admin.add_parsers', ['parsers' => $pp, 'table' => $table]); } }