Veranstaltungsübersicht

readFromDb( MainController::KOMPASS_EVENTS_EVENTS, ['archived' => false]) as $event_data) { $event = \Bdp\Modules\EventParticipants\Models\Event::loadById($event_data->id); $participant_count = 0; $amount = 0; foreach ($event->groups as $group => $participants) { $participant_count += count($participants); foreach ($participants as $group_participant) { $amount += $group_participant->beitrag; } } echo ''; echo ''; echo ''; echo ''; echo ''; } ?>
' . $event->event_name .'' . $participant_count . '
' . number_format($amount, 2, ',') . ' Euro
'; echo number_format($participant_count > 0 ? $amount / $participant_count : 0, 2, ',') . ' Euro / Teili
' . '' . __('Edit', BDP_LV_PLUGIN_SLUG) . '
' . ($event->signup_allowed ? '' . __('Deny registration', BDP_LV_PLUGIN_SLUG) . '' : '' . __('Allow registration', BDP_LV_PLUGIN_SLUG) . '') . '
' . '' . __('Move to Archive', BDP_LV_PLUGIN_SLUG) . '