1, 'diary' => $diary, ]; return view('diary.consultant_comments', $data); } /** * Show the form for editing the specified resource. * * @return \Illuminate\Http\Response */ public function edit(Diary $diary) { $curMeals = $diary->meals()->orderBy('type')->get(); $typeNames = [ __('diary.breakfast'), __('diary.dinner'), __('diary.supper'), __('diary.lunch'), __('diary.snacks'), ]; $data = [ 'daysCount' => 1, 'diary' => $diary, 'curDiary' => $diary, 'curMeals' => $curMeals, 'typeNames' => $typeNames, ]; return view('diary.consultant_comments_edit', $data); } /** * Update the specified resource in storage. * * @return \Illuminate\Http\Response */ public function update(Request $request, Diary $diary) { } /** * Remove the specified resource from storage. * * @param \App\Models\Diary $consultantDiaryComment * @return \Illuminate\Http\Response */ public function destroy(Diary $diary) { } }