noscript varianten eingebaut, matomo integration erweitert und als konfiguration aufgenommen.

This commit is contained in:
Codex Agent
2025-12-05 17:02:03 +01:00
parent 946d09764a
commit c1bd4c1eb3
15 changed files with 331 additions and 95 deletions

View File

@@ -463,10 +463,17 @@ class EventPublicController extends BaseController
$fallbacks = $this->localeFallbackChain($locale, $eventDefaultLocale);
$rows = DB::table('tasks')
->join('task_collection_task', 'tasks.id', '=', 'task_collection_task.task_id')
->join('event_task_collection', 'task_collection_task.task_collection_id', '=', 'event_task_collection.task_collection_id')
->leftJoin('task_collection_task', 'tasks.id', '=', 'task_collection_task.task_id')
->leftJoin('event_task_collection', 'task_collection_task.task_collection_id', '=', 'event_task_collection.task_collection_id')
->leftJoin('event_task', function ($join) use ($eventId) {
$join->on('tasks.id', '=', 'event_task.task_id')
->where('event_task.event_id', '=', $eventId);
})
->leftJoin('emotions', 'tasks.emotion_id', '=', 'emotions.id')
->where('event_task_collection.event_id', $eventId)
->where(function ($query) use ($eventId) {
$query->where('event_task_collection.event_id', $eventId)
->orWhereNotNull('event_task.event_id');
})
->select([
'tasks.id',
'tasks.title',
@@ -474,10 +481,12 @@ class EventPublicController extends BaseController
'tasks.example_text',
'tasks.emotion_id',
'tasks.sort_order',
'event_task.sort_order as direct_sort_order',
'event_task_collection.sort_order as collection_sort_order',
'emotions.name as emotion_name',
'emotions.id as emotion_lookup_id',
])
->orderBy('event_task_collection.sort_order')
->orderByRaw('COALESCE(event_task_collection.sort_order, event_task.sort_order, tasks.sort_order, 0)')
->orderBy('tasks.sort_order')
->limit(20)
->get();