ruleGroups()->with('rules')->get(); return view('rules.index', compact('ruleGroups')); } }