Add event management to meetups landing pages

- Added route for event pages within meetups.
- Updated meetups landing page to display upcoming events.
- Implemented individual event detail pages.
- Enhanced meetups table with the next event column.
This commit is contained in:
HolgerHatGarKeineNode
2025-11-21 10:55:01 +01:00
parent fbcba97bda
commit c086d7f7c2
5 changed files with 186 additions and 2 deletions

View File

@@ -118,12 +118,13 @@ class Meetup extends Model implements HasMedia
return Attribute::make(
get: fn() => $nextEvent ? [
'start' => $nextEvent->start->toDateTimeString(),
'portalLink' => url()->route('meetup.event.landing', ['country' => $this->city->country, 'meetupEvent' => $nextEvent]),
'start' => $nextEvent->start,
'portalLink' => url()->route('meetups.landingpage-event', ['country' => $this->city->country, 'meetup' => $this, 'event' => $nextEvent]),
'location' => $nextEvent->location,
'description' => $nextEvent->description,
'link' => $nextEvent->link,
'attendees' => count($nextEvent->attendees ?? []),
'might_attendees' => count($nextEvent->might_attendees ?? []),
'nostr_note' => str($nextEvent->nostr_status)->after('Sent event ')->before(' to '),
] : null,
);