authorizeAccess(); $this->form->setService($this->service); } protected function authorizeAccess(): void { // Allow edit if user is the creator or if service was created anonymously if (!is_null($this->service->created_by) && auth()->id() !== $this->service->created_by) { abort(403); } } public function save(): void { $this->authorizeAccess(); $this->form->update(); session()->flash('status', __('Service erfolgreich aktualisiert!')); } public function with(): array { return [ 'types' => collect(SelfHostedServiceType::cases())->map(fn($c) => [ 'value' => $c->value, 'label' => $c->label() ]), ]; } }; ?>
{{ __('Service bearbeiten') }}: {{ $service->name }}
{{ __('Grundlegende Informationen') }}
{{ __('ID') }} {{ __('System-generierte ID (nur lesbar)') }} {{ __('Name') }} * {{ __('Der Name des Services') }} {{ __('Typ') }} * @foreach($types as $t) {{ $t['label'] }} @endforeach {{ __('Art des Services') }} {{ __('Anonym') }} {{ __('Service ohne Autorenangabe') }}
{{ __('Beschreibung') }} {{ __('Kurze Beschreibung des Services') }}
{{ __('URLs & Erreichbarkeit') }}
{{ __('URL (Clearnet)') }} {{ __('Normale Web-URL') }} {{ __('URL (Onion/Tor)') }} {{ __('Tor Hidden Service URL') }} {{ __('URL (I2P)') }} {{ __('I2P Adresse') }} {{ __('URL (pkdns)') }} {{ __('Pkarr DNS Adresse') }}
{{ __('Kontaktinformation') }} {{ __('Beliebige Kontaktinformationen (Signal, SimpleX, Email, etc.)') }}
{{ __('Abbrechen') }}
@if (session('status')) {{ session('status') }} @endif {{ __('Service aktualisieren') }}