🌍 Scope lecturers and courses by country across views and enhance sidebar with dynamic country flags

This commit is contained in:
HolgerHatGarKeineNode
2025-12-05 19:04:38 +01:00
parent 4b16efaf9c
commit c9971144da
4 changed files with 25 additions and 5 deletions

View File

@@ -32,6 +32,7 @@ class extends Component {
->where('name', 'ilike', '%'.$this->search.'%')
->orWhere('description', 'ilike', '%'.$this->search.'%'),
)
->whereHas('courseEvents.venue.city.country', fn($query) => $query->where('countries.code', request()->route('country')))
->orderByDesc('has_future_events')
->paginate(15),
];