$answers * @var array|null $scale Distribution of a scale slide, null for open questions * @var list $comments Comments of a scale, oldest first */ use Cake\I18n\DateTime; $this->assign('title', $slide->question); $this->assign('noindex', '1'); $count = $scale !== null ? array_sum(array_column($scale['buckets'], 'count')) : count($answers); ?>

←

typeLabel()) ?> isPrivate()) : ?>· 🔒

question) ?>

isPrivate()) : ?>

: Number->format((float)$scale['average'], ['places' => 1, 'precision' => 1, 'locale' => 'de_DE'])) ?> /

$bucket) : $label = match (true) { $i === 0 && $scale['minLabel'] !== '' => $scale['minLabel'], $i === count($scale['buckets']) - 1 && $scale['maxLabel'] !== '' => $scale['maxLabel'], default => '', }; ?>
() Number->format((float)$bucket['percent'], ['places' => 0, 'precision' => 1, 'locale' => 'de_DE'])) ?> %
hasComments()) : ?>