/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { // $notes = \App\Comment::Where('tag', 'phase')->Where('tag_id', $id)->Where('access', false)->Where('type', 'note')->orderBy('created_at', 'desc')->get(); $recomendations = \App\Comment::Where('tag', 'phase')->Where('tag_id', $id)->Where('access', false)->Where('type', 'recomendation')->orderBy('created_at', 'desc')->get(); return view('Admin.Methodology.Phase.show')->with('phase', $this->phase)->with('notes', $notes)->with('recomendations', $recomendations); }
/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { // $project = \App\Project::findOrFail($id); $comments = \App\Comment::Where('tag', 'methodology')->Where('tag_id', $id)->Where('access', '1')->Where('type', 'comment')->orderBy('created_at', 'desc')->get(); return view('Frontend.blog_detail', ['project' => $project, 'months' => $this->months, 'comments' => $comments]); }