/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $issue = \App\IssueModel::findOrFail($id); $questions = \App\IssueModel::find($id)->questions; // get available status & editable status $editable = true; $availableStatus = getAvailableStatuses($issue->status); return view('admin.issue', ['issue' => $issue, 'questions' => $questions, 'editable' => $editable, 'availableStatus' => $availableStatus]); }
/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $issue = \App\IssueModel::find($id); return view('main.issue', ['issue' => $issue]); }