filters added

This commit is contained in:
Benjamin Takats
2022-12-04 13:34:44 +01:00
parent a4734bcdc5
commit 7152446895
16 changed files with 901 additions and 83 deletions

View File

@@ -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,
],
]
]);
}
}