version : LegalDocument::currentAgbVersion(); $date = $agb !== null ? $agb->effectiveFromFormatted() : Carbon::parse((string) config('legal.agb_effective_from'))->locale('de')->isoFormat('D. MMMM YYYY'); return [ 'agb_version' => $version, 'agb_date' => $date, 'agb_url' => $agbUrl ?? rtrim((string) config('app.url'), '/').'/de/agb', 'portals' => 'presseecho.de und businessportal24.com', ]; } public function renderLong(LegalText $text, ?string $agbUrl = null): string { return $text->render($this->variables($agbUrl)); } public function renderShort(LegalText $text, ?string $agbUrl = null): string { return $text->render($this->variables($agbUrl), short: true); } }