employeeService->findForEdit($request->user()); return Inertia::render('admin/account/Profile', [ 'genders' => Gender::selectOptions(), 'user' => $editData['employee'], 'profilePhoto' => $editData['profilePhoto'], ]); } public function update(UpdateProfileRequest $request): RedirectResponse { $this->profileService->update($request->validated(), $request->user()); $this->flashUpdated('Profil'); return redirect()->route('admin.account.profile'); } }