/**
  * Edit form for the specified resource.
  *
  * @param \TypiCMS\Modules\Users\Shells\Models\User $user
  *
  * @return \Illuminate\View\View
  */
 public function edit(User $user)
 {
     $permissions = $user->permissions()->pluck('name')->all();
     $selectedRoles = $user->roles()->pluck('id')->all();
     return view('users::admin.edit')->with(['model' => $user, 'permissions' => $permissions, 'selectedRoles' => $selectedRoles]);
 }