selected = PressReleasePlaceholder::fromValueOrDefault($current)->value; } public function choose(string $variant): void { $this->selected = PressReleasePlaceholder::fromValueOrDefault($variant)->value; } public function confirm(): void { $this->dispatch('placeholder-selected', variant: $this->selected); Flux::modal('placeholder-picker')->close(); } public function with(): array { return [ 'variants' => PressReleasePlaceholder::cases(), ]; } }; ?>
{{ __('Titelbild-Platzhalter wählen') }} {{ __('Wird verwendet, solange kein eigenes Titelbild hochgeladen ist.') }}
@foreach ($variants as $variant) @endforeach
{{ __('Abbrechen') }} {{ __('Übernehmen') }}