if ($event->attendees->count()) {
$count_attendees = $event->attendees->filter(
function ($att, $k) use ($calendar) {
if ($att->range_id != $calendar->getRangeId()) {
return $att;
}
})->count();
} else {
$count_attendees = 0;
}
?>
if ($count_attendees) : ?>
if ($count_attendees < $event->attendees->count()) : ?>
= sprintf(ngettext('(%s weitere/r Teilnehmende/r)', '(%s weitere Teilnehmende)', $count_attendees), $count_attendees) ?>
else : ?>
= sprintf(_('(%s Teilnehmende)'), $count_attendees) ?>
endif; ?>
endif; ?>
-
= Icon::create('trash', 'clickable')->asImg(16, ['class' => 'text-bottom']) ?>
if ($event->isNew()) : ?>
-
= htmlReady($event->owner->getFullname()) ?>
= Icon::create('trash', 'clickable')->asImg(16, ['class' => 'text-bottom']) ?>
endif; ?>
$group_status = [
CalendarEvent::PARTSTAT_TENTATIVE => _('Abwartend'),
CalendarEvent::PARTSTAT_ACCEPTED => _('Angenommen'),
CalendarEvent::PARTSTAT_DECLINED => _('Abgelehnt'),
CalendarEvent::PARTSTAT_DELEGATED => _('Angenommen (keine Teilnahme)'),
CalendarEvent::PARTSTAT_NEEDS_ACTION => ''] ?>
foreach ($event->attendees as $attendee) : ?>
if ($attendee->owner) : ?>
-
= htmlReady($attendee->owner->getFullname()) ?>
if ($event->havePermission(Event::PERMISSION_OWN, $attendee->owner->id)) : ?>
(= _('Organisator') ?>)
elseif ($group_status[$attendee->group_status]) : ?>
(= $group_status[$attendee->group_status] ?>)
endif; ?>
= Icon::create('trash', 'clickable', ['title' => _('Teilnehmende/n entfernen')])->asImg(16, ['class' => 'text-bottom']) ?>
endif; ?>
endforeach ?>
= $quick_search->render() ?>