mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
filters added
This commit is contained in:
@@ -67,4 +67,19 @@ class VenueTable extends DataTableComponent
|
||||
])
|
||||
->whereHas('city.country', fn($query) => $query->where('code', $this->country));
|
||||
}
|
||||
|
||||
public function venueSearch($id)
|
||||
{
|
||||
$venue = Venue::query()->find($id);
|
||||
|
||||
return to_route('search.event', [
|
||||
'#table',
|
||||
'country' => $this->country,
|
||||
'table' => [
|
||||
'filters' => [
|
||||
'venue' => $venue->name,
|
||||
],
|
||||
]
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user