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

@@ -66,4 +66,17 @@ class CourseTable extends DataTableComponent
->whereHas('events.venue.city.country',
fn($query) => $query->where('countries.code', $this->country));
}
public function courseSearch($id)
{
return to_route('search.event', [
'#table',
'country' => $this->country,
'table' => [
'filters' => [
'course_id' => $id,
],
]
]);
}
}