'Der Gast', 'landlord' => 'Wir (Vermieter)', 'portal' => 'Das Portal']; /** * @return array */ protected function casts(): array { return [ 'status' => ChangeStatus::class, 'basis' => ChangeBasis::class, 'effective_on' => 'immutable_date', 'agreed_at' => 'immutable_datetime', 'before' => 'array', 'after' => 'array', 'consequences' => 'array', 'expires_at' => 'immutable_datetime', 'decided_at' => 'immutable_datetime', 'applied_at' => 'immutable_datetime', 'confirmation_sent_at' => 'immutable_datetime', ]; } /** @return BelongsTo */ public function booking(): BelongsTo { return $this->belongsTo(Booking::class); } /** * The change in one line, e.g. "07.11.–10.11.2026 → 07.11.–12.11.2026 · 2 → 3 Personen · 368,00 € → 450,00 €". */ public function summary(): string { return implode(' · ', (array) ($this->consequences['summary'] ?? [])); } }