'', 'time_from' => '', 'time_to' => '', 'note' => '']]; $recurrenceRuleValue = $editingListing ? (string)($editListing['recurrence_rule'] ?? '') : ''; $recurrenceUntilValue = ''; if ($editingListing && !empty($editListing['recurrence_until'])) { $recurrenceUntilValue = date('Y-m-d', strtotime((string)$editListing['recurrence_until'])); } $recurrenceModeValue = 'single'; if (str_contains($recurrenceRuleValue, 'FREQ=DAILY')) { $recurrenceModeValue = 'daily'; } elseif (str_contains($recurrenceRuleValue, 'FREQ=WEEKLY')) { $recurrenceModeValue = 'weekly'; } $categoryTitleMap = []; foreach (($listingCategories ?? []) as $categoryRow) { $categoryTitleMap[(string)($categoryRow['slug'] ?? '')] = (string)($categoryRow['title'] ?? ''); } $categoryInputValue = $categoryTitleMap[$categorySlugValue] ?? $categorySlugValue; $priceRows = []; if ($editingListing && !empty($editListing['prices']) && is_array($editListing['prices'])) { foreach ($editListing['prices'] as $priceRow) { $ageFrom = ''; $ageTo = ''; $noteValue = (string)($priceRow['note'] ?? ''); if (preg_match('/ab\s+(\d+)/u', $noteValue, $match)) { $ageFrom = $match[1]; } if (preg_match('/bis\s+(\d+)/u', $noteValue, $match)) { $ageTo = $match[1]; } $priceRows[] = [ 'amount' => (string)($priceRow['amount'] ?? ''), 'age_from' => $ageFrom, 'age_to' => $ageTo, ]; } } if ($priceRows === []) { $priceRows = [[ 'amount' => '', 'age_from' => '', 'age_to' => '', ]]; } $editingChild = isset($editChild) && $editChild !== null; $childAction = $editingChild ? 'child_update' : 'child_add'; $childModalTitle = $editingChild ? 'Kind bearbeiten' : 'Kind hinzufügen'; $sectionLinks = [ 'profile' => 'Profil', 'children' => 'Kinder', 'events' => 'Events', 'places' => 'Ausflugsziele', 'community' => 'Community', 'settings' => 'Einstellungen', ]; $showEventTypeChoice = !$editing && (($section ?? 'events') === 'places'); $modalSectionTarget = ($editingListing || ($section ?? '') === 'places') ? 'places' : 'events'; if (!empty($canManageSystemSettings)) { $sectionLinks['system'] = 'System'; } ?>

Hallo, !

Verwalte dein Profil, Kinder, Events und Teilnahmen.

Fehler: