Ejemplo n.º 1
0
 /**
  * edit profile interface
  * @param $userId
  * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
  */
 public function editProfile($userId)
 {
     $user = $this->user->findOrFail($userId);
     if (Gate::denies('isValidUser', $user)) {
         return redirect()->route('user.profile')->withResponse($this->getNoPrivilegesMessage());
     }
     $organization = $this->organization->findOrFail($this->orgId);
     $baseForm = new BaseForm();
     $timeZone = $baseForm->getCodeList('TimeZone', 'Activity', false);
     return view('User.editProfile', compact('user', 'organization', 'timeZone'));
 }
Ejemplo n.º 2
0
 /**
  * Show the application registration form.
  *
  * @return \Illuminate\Http\Response
  */
 public function showRegistrationForm()
 {
     $baseForm = new BaseForm();
     $countries = $baseForm->getCodeList('Country', 'Organization');
     return view('auth.register', compact('countries'));
 }