>} */ protected function initial(): array { $column = fn (string $heading, array $block) => ['id' => Str::random(12), 'blocks' => [ ['id' => Str::random(12), 'type' => 'heading', 'data' => ['text' => $heading, 'level' => '4']], ['id' => Str::random(12), ...$block], ]]; return $this->content->sanitize(['blocks' => [ ['id' => Str::random(12), 'type' => 'columns', 'data' => ['layout' => '1-1-1', 'stack' => 'md', 'gap' => 'normal', 'align' => 'start'], 'items' => [ $column('Über uns', ['type' => 'text', 'data' => ['html' => '

Kurzer Text über Ihr Haus – Anschrift, Telefon, Leitbild.

']]), $column('Schnell gefunden', ['type' => 'icon-list', 'data' => ['items' => [ ['icon' => 'phone', 'title' => 'Telefonbuch', 'text' => '', 'url' => '/personen'], ['icon' => 'calendar-days', 'title' => 'Termine', 'text' => '', 'url' => '/termine'], ['icon' => 'file-text', 'title' => 'Impressum', 'text' => '', 'url' => '/seiten/impressum'], ]]]), $column('Kontakt', ['type' => 'text', 'data' => ['html' => '

Zentrale: 0000 000000
info@example.org

']]), ]], ]]); } /** Gestaltete Fußzeile ausblenden – Versionen bleiben erhalten */ public function unpublish(): void { $this->settings->setMany(['footer.content' => null, 'footer.published_at' => now()->toIso8601String()]); } public function isActive(): bool { return ($this->published()['blocks'] ?? []) !== []; } /** * @return array{blocks: list>} */ public function render(User $user, bool $draft = false): array { return $this->content->render($draft ? $this->working() : ($this->published() ?? ['blocks' => []]), $user, ['footer' => true]); } }