Fix event package display and add missing translations
- Correct Event->eventPackage relationship to HasOne - Add missing translations for event packages and table columns
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user