예제 #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param Brand $brand
  *
  * @return \Illuminate\Http\Response
  */
 public function edit(Brand $brand)
 {
     $accounts = Account::lists('name', 'id');
     return view('brands.edit')->with('account_selection', $accounts)->with('selected', $brand->creator_id)->with('brand', $brand)->with('auth_user', $this->auth_user);
 }
예제 #2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  User   $user
  * @return \Illuminate\Http\Response
  */
 public function edit(User $user)
 {
     $accounts = Account::lists('name', 'id');
     return view('users.edit')->with('user', $user)->with('account_selection', $accounts)->with('selected', $user->account_id)->with('auth_user', $this->auth_user);
 }
예제 #3
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param User $user
  *
  * @return \Illuminate\Http\Response
  */
 public function edit(User $user)
 {
     $accounts = Account::lists('name', 'id');
     $roles = Role::lists('name', 'id');
     $locales = [];
     foreach (Config::get('app.locales') as $locale => $locale_data) {
         $locales[$locale] = $locale_data[0];
     }
     return view('users.edit')->with('user', $user)->with('account_selection', $accounts)->with('selected', $user->account_id)->with('locale_selection', $locales)->with('locale_selected', null)->with('disabled_checked', $user->disabled)->with('roles', $roles)->with('selected_roles', $user->roles->lists('id')->toArray())->with('auth_user', $this->auth_user);
 }