/** * Show the form for editing the specified resource. * GET /approval/{id}/edit * * @param int $id * @return View */ public function edit($id) { $onlineForm = $this->onlineFormRepo->getFormByID($id); $formRejectReasons = $this->onlineFormRepo->getFormDepartmentRejectReasons($id); $whyRejectedArr = $this->onlineFormRepo->getWhyRejected($id); return View::make('account.forms.processes.approval.decision', ['pageTitle' => 'Approve Request'], compact('onlineForm', 'formRejectReasons', 'whyRejectedArr')); }