/** * Edit user view * * @param $id * @return \Illuminate\View\View */ public function edit($id) { $roles = $this->user->getAllRoles(); $country = $this->countries->all(); $user = $this->user->find($id); return view('user.edit', compact('roles', 'user', 'country')); }
/** * Display contract edit form. * * @return Response */ public function edit($id) { $contract = $this->contract->find($id); $country = $this->countries->all(); $supportingDocument = $this->contract->getSupportingDocuments($id); $contracts = $this->contract->getList(); return view('contract.edit', compact('contract', 'country', 'supportingDocument', 'contracts')); }