Fix event package display and add missing translations
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

- Correct Event->eventPackage relationship to HasOne
- Add missing translations for event packages and table columns
This commit is contained in:
Codex Agent
2026-01-21 10:50:51 +01:00
parent fa33e7cbcf
commit ebab856137
3 changed files with 14 additions and 2 deletions

View File

@@ -95,9 +95,9 @@ class Event extends Model
->withTimestamps(); ->withTimestamps();
} }
public function eventPackage(): BelongsTo public function eventPackage(): HasOne
{ {
return $this->belongsTo(EventPackage::class); return $this->hasOne(EventPackage::class)->latestOfMany();
} }
public function eventPackages(): HasMany public function eventPackages(): HasMany

View File

@@ -371,6 +371,12 @@ return [
'join' => 'Beitreten', 'join' => 'Beitreten',
'join_tokens_total' => 'Einladungen: :count', 'join_tokens_total' => 'Einladungen: :count',
'join_tokens_missing' => 'Noch keine Einladungen erstellt', 'join_tokens_missing' => 'Noch keine Einladungen erstellt',
'package' => 'Paket',
],
'relation_managers' => [
'event_packages' => [
'title' => 'Event-Pakete',
],
], ],
'actions' => [ 'actions' => [
'toggle_active' => 'Aktiv umschalten', 'toggle_active' => 'Aktiv umschalten',

View File

@@ -371,6 +371,12 @@ return [
'join' => 'Join', 'join' => 'Join',
'join_tokens_total' => 'Invitations: :count', 'join_tokens_total' => 'Invitations: :count',
'join_tokens_missing' => 'No invitations created yet', 'join_tokens_missing' => 'No invitations created yet',
'package' => 'Package',
],
'relation_managers' => [
'event_packages' => [
'title' => 'Event Packages',
],
], ],
'actions' => [ 'actions' => [
'toggle_active' => 'Toggle Active', 'toggle_active' => 'Toggle Active',