adminUsers->findById($id); $action = new UpdateUserAction(new UpdateUserRequest( user: $user, data: $request->all(), isOwnUser: auth()->id() === $user->id, isLvTenant: $this->tenant->slug === 'lv', )); $response = $action->execute(); return response()->json([ 'status' => $response->success ? 'success' : 'error', 'message' => $response->message, ]); } }