public function reportStepFive(Request $data) { if (Session::has('report.user_id')) { $userid = Session::get('report.user_id'); } else { $userid = Auth::user()->id; } if ($data->isMethod('post')) { if (Session::has('report.id')) { $reportid = Session::get('report.id'); } else { return redirect('/filereport'); } $stepfivetc = $data->input('stepfivetc'); $stepfivecontact = $data->input('stepfivecontact'); $reportdata = array(); $reportdata['tc'] = $stepfivetc; $reportdata['contact_investigation'] = $stepfivecontact; $objReport = new report(); $reportresponse = $objReport->updateReportStepFive($reportdata, $reportid, $userid); if (Session::has('report')) { Session::forget('report'); } return redirect('/'); } return view('Report/Views/report/filereport'); }