label('Kurs anlegen') ->visible(fn (): bool => ContentElementResource::editor()) ->schema([ TextInput::make('designation')->label('Bezeichnung')->required(), ]) ->action(function (array $data): void { $this->report(function () use ($data): void { app(ContentService::class)->createComposition($data['designation']); }, 'Der Kurs ist angelegt.'); }), ]; } }