mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-15 12:16:47 +00:00
🌍 Scope lecturers and courses by country across views and enhance sidebar with dynamic country flags
This commit is contained in:
@@ -35,6 +35,9 @@ class extends Component {
|
||||
->withCount([
|
||||
'coursesEvents as future_events_count' => fn($query) => $query->where('from', '>=', now()),
|
||||
])
|
||||
->whereHas('coursesEvents')
|
||||
->whereHas('coursesEvents.venue.city.country',
|
||||
fn($query) => $query->where('countries.code', $this->country))
|
||||
->when($this->search, fn($query)
|
||||
=> $query
|
||||
->where('name', 'ilike', '%'.$this->search.'%')
|
||||
|
||||
Reference in New Issue
Block a user