mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
sort by coursesEvents
This commit is contained in:
@@ -164,10 +164,11 @@ class EventTable extends DataTableComponent
|
||||
{
|
||||
return CourseEvent::query()
|
||||
->withCount([
|
||||
'registrations',
|
||||
])
|
||||
'registrations',
|
||||
])
|
||||
->where('from', '>=', now())
|
||||
->whereHas('venue.city.country',
|
||||
fn($query) => $query->where('countries.code', $this->country));
|
||||
fn($query) => $query->where('countries.code', $this->country));
|
||||
}
|
||||
|
||||
public function viewHistoryModal($modelId): void
|
||||
|
||||
Reference in New Issue
Block a user