direct links

This commit is contained in:
Benjamin Takats
2023-01-17 20:07:23 +01:00
parent 42a8f4b65b
commit c9c7119c3a
2 changed files with 8 additions and 13 deletions

View File

@@ -13,13 +13,12 @@ class MeetupTable extends Component
public function filterByMarker($id) public function filterByMarker($id)
{ {
return to_route('meetup.table.meetup', [ $meetup = Meetup::with(['city.country'])
'country' => $this->country->code, ->find($id);
'table' => [
'filters' => [ return to_route('meetup.landing', [
'byid' => $id, 'country' => $meetup->city->country->code,
], 'meetup' => $meetup,
]
]); ]);
} }

View File

@@ -17,13 +17,9 @@ class WorldMap extends Component
$meetup = Meetup::with(['city.country']) $meetup = Meetup::with(['city.country'])
->find($id); ->find($id);
return to_route('meetup.table.meetup', [ return to_route('meetup.landing', [
'country' => $meetup->city->country->code, 'country' => $meetup->city->country->code,
'table' => [ 'meetup' => $meetup,
'filters' => [
'byid' => $id,
],
]
]); ]);
} }