'', 'time_from' => '', 'time_to' => '', 'note' => '']]; $recurrenceRuleValue = $editingListing ? (string)($editListing['recurrence_rule'] ?? '') : ''; $recurrenceUntilValue = ''; if ($editingListing && !empty($editListing['recurrence_until'])) { $recurrenceUntilValue = date('Y-m-d\TH:i', strtotime((string)$editListing['recurrence_until'])); } $recurrenceModeValue = 'single'; if (str_contains($recurrenceRuleValue, 'FREQ=DAILY')) { $recurrenceModeValue = 'daily'; } elseif (str_contains($recurrenceRuleValue, 'BYDAY=MO,TU,WE,TH,FR')) { $recurrenceModeValue = 'weekdays'; } elseif (str_contains($recurrenceRuleValue, 'BYDAY=')) { $recurrenceModeValue = 'custom_weekdays'; } elseif (str_contains($recurrenceRuleValue, 'FREQ=WEEKLY')) { $recurrenceModeValue = 'weekly'; } $selectedWeekdays = []; if (preg_match('/BYDAY=([A-Z,]+)/', $recurrenceRuleValue, $matches)) { $map = ['MO' => 'mo', 'TU' => 'di', 'WE' => 'mi', 'TH' => 'do', 'FR' => 'fr', 'SA' => 'sa', 'SU' => 'so']; foreach (explode(',', $matches[1]) as $day) { if (isset($map[$day])) { $selectedWeekdays[] = $map[$day]; } } } $priceRows = $editingListing && !empty($editListing['prices']) && is_array($editListing['prices']) ? $editListing['prices'] : [[ 'label' => '', 'audience' => 'general', 'price_type' => 'fixed', 'amount' => '', 'amount_secondary' => '', 'note' => '', ]]; $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', 'community' => 'Community', 'settings' => 'Einstellungen', ]; if (!empty($canManageSystemSettings)) { $sectionLinks['system'] = 'System'; } ?>

Mitgliederbereich

Hallo, !

Verwalte dein Profil, Kinder, Events und Teilnahmen.

Fehler: