/**
  * @param $uuid
  * @return mixed
  */
 public function edit(Board $entity, $uuid)
 {
     $board = Board::byUuid($uuid)->firstOrFail();
     $this->authorize('editBoard', $board);
     $flows = Flow::byModule('tasks')->get()->pluck('name', 'id')->toArray();
     $builder = new EntityFieldsFormBuilder($entity->getEntity());
     $builder->setRowId($board->id);
     return view('tasks::boards.edit')->with('flows', $flows)->with('board', $board)->with('boardFields', $builder->render());
 }
 /**
  * Edit a user
  * @param $uuid
  * @return $this
  */
 public function edit(UserEntity $entity, $uuid)
 {
     $user = User::byUuid($uuid)->firstOrFail();
     $builder = new EntityFieldsFormBuilder($entity->getEntity());
     $builder->setRowId($user->id);
     return view('users::users.edit')->with('user', $user)->with('roles', Role::all()->pluck('display_name', 'id')->toArray())->with('profileFields', $builder->render());
 }
 /**
  * @param UserEntity $entity
  * @return $this
  */
 public function edit(UserEntity $entity)
 {
     $builder = new EntityFieldsFormBuilder($entity->getEntity());
     $builder->setRowId($this->user->id);
     return view('users::me.edit')->with('user', $this->user)->with('profileFields', $builder->render());
 }