public function index() { $flag = 1; $cms = sys_module::All(); $cms = DB::table('sys_modules')->whereactive($flag)->where('id_parent', '=', 0)->orderBy('id', 'DESC')->paginate(20); return view('sysmodules.index', compact('cms')); }