/** * Edit the Child * @param int $id * @return \Illuminate\Http\Response */ public function editChild($id) { $child = \App\Child::with('phones', 'address')->findOrFail($id); $groups = \App\AgeGroup::where('on_site', "=", 1)->where('published', "=", 1)->lists('name', 'id'); $agegroup = \App\AgeGroup::find(1); $courses = $agegroup->courses; $states = \App\State::lists('name', 'id'); return view('register.child', compact('child', 'groups', 'states')); }