/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $vm = $this->vm; $ic_cr = $this->ic_cr; $ec_cn = $this->ec_cn; $in_aet_re_tr = $this->in_aet_re_tr; $sd_dg = $this->sd_dg; $dr = $this->dr; $category = Category::orderBy('id', 'ASC')->lists('description', 'id'); $results_student = Student::findOrFail($id); if (Request::ajax()) { return response()->json(['id' => $results_student->id, 'full_name' => $results_student->full_name, 'identification' => $results_student->identification]); } return view('ticket.student.edit', compact('results_student', 'category', 'vm', 'ic_cr', 'ec_cn', 'in_aet_re_tr', 'sd_dg', 'dr')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $vm = $this->vm; $ic_cr = $this->ic_cr; $ec_cn = $this->ec_cn; $in_aet_re_tr = $this->in_aet_re_tr; $sd_dg = $this->sd_dg; $dr = $this->dr; $category = Category::orderBy('id', 'ASC')->lists('description', 'id'); $results_student = Student::findOrFail($id); return view('ticket.call.edit', compact('results_student', 'category', 'vm', 'ic_cr', 'ec_cn', 'in_aet_re_tr', 'sd_dg', 'dr')); }