mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-15 00:06:48 +00:00
🌍 Scope lecturers and courses by country across views and enhance sidebar with dynamic country flags
This commit is contained in:
@@ -18,6 +18,9 @@ class extends Component {
|
||||
public function mount(): void
|
||||
{
|
||||
$this->country = request()->route('country', config('app.domain_country'));
|
||||
$this->course->load([
|
||||
'courseEvents.registrations',
|
||||
]);
|
||||
}
|
||||
|
||||
public function with(): array
|
||||
@@ -26,7 +29,10 @@ class extends Component {
|
||||
'course' => $this->course->load('lecturer'),
|
||||
'events' => $this->course
|
||||
->courseEvents()
|
||||
->with(['venue.city'])
|
||||
->with([
|
||||
'venue.city',
|
||||
'registrations',
|
||||
])
|
||||
->where('from', '>=', now())
|
||||
->orderBy('from', 'asc')
|
||||
->get(),
|
||||
|
||||
Reference in New Issue
Block a user