label('Selbst pflegen')->icon(Heroicon::OutlinedCog6Tooth)->color('gray') ->modalHeading('Was Mitarbeitende selbst ändern dürfen') ->fillForm(fn () => ['self_edit_org' => (bool) app(Settings::class)->get(ProfileFields::SELF_EDIT_ORG, false)]) ->schema([ Toggle::make('self_edit_org')->label('Abteilung und Standort selbst ändern') ->helperText('Vorsicht: Abteilung und Standort bestimmen, wer welche Inhalte sieht (Zielgruppen). Wer sie selbst ändern darf, kann sich so Zugang zu Inhalten anderer Abteilungen verschaffen. Die E-Mail-Adresse ändert immer die Administration unter „Benutzer“.'), ]) ->action(function (array $data) { app(Settings::class)->set(ProfileFields::SELF_EDIT_ORG, (bool) $data['self_edit_org']); Audit::log('profile.self_edit_org', ['enabled' => (bool) $data['self_edit_org']]); Notification::make()->success()->title('Gespeichert')->send(); }), CreateAction::make()->label('Profilfeld anlegen'), ]; } }