/** * Show question details * * @return Response */ public function Result(Section\Section $section) { $answers = auth()->user()->answers()->where('section_id', '=', $section->id())->get(); return view('Front::section.result', ['answers' => $answers, 'section' => $section]); }