/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $proyecto = Project::find($id); $locations = explode(',', $proyecto->location); $gerencias = Management::lists('name', 'id'); $disenos = Desing::lists('name', 'id'); return view('admin.project.edit', compact('proyecto', 'locations', 'gerencias', 'disenos')); }
/** * Team Details page * * @param $id * * @return $this */ public function teamDetails($id) { $data = ['parentPage' => 'Company', 'page' => 'Member Details', 'title' => 'Teleaus | Member Details Page', 'member' => Management::findOrFail($id)]; return view('member-details')->with($data); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $gerencia = Management::find($id); $gerencia->delete(); return response()->json(['gerencia' => $gerencia]); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $member = Management::findOrFail($id); $member->delete(); Session::flash('message', 'Successfully Deleted your Data!'); return redirect()->back(); }