}> $sections * @var bool $includeInternal * @var bool $hasInternal Poll has private slides * @var \Cake\I18n\DateTime $exportedAt */ $this->assign('title', $poll->title); $number = fn(float $value, int $places = 0) => $this->Number->format($value, [ 'places' => $places, 'precision' => max(1, $places), 'locale' => 'de_DE', ]); $bar = function (float $percent, bool $ok = false): string { $width = max(0, min(100, $percent)); if ($width <= 0) { // An empty fill would still be drawn as a hairline. return '
'; } return '
'; }; ?>

title) ?>

· i18nFormat('dd.MM.yyyy')) ?>

type === 'scale'; // Short sections stay on one page, long lists may break across pages. $long = count($r['answers'] ?? []) > 8 || count($r['words'] ?? []) > 15 || count($r['questions'] ?? []) > 10 || count($r['comments'] ?? []) > 5; ?>

· typeLabel()) ?> ·

question) ?>

description) : ?>
Format->text($slide->description) ?>

type === 'choice') : ?>
%
type === 'quiz') : ?>

>
%
type === 'order') : ?>

. ( %)
type === 'wordcloud') : $hasDown = array_sum(array_column($r['words'], 'down')) > 0; ?>
type === 'open') : ?>

()

:

$bucket) : $label = match (true) { $i === 0 => (string)$r['minLabel'], $i === count($r['buckets']) - 1 => (string)$r['maxLabel'], default => '', }; ?> >ratingText((int)$bucket['value'])) ?> ()
%
hasComments()) : ?>

  1. (ratingText((int)$comment['value']))) ?>)
type === 'qa') : ?>

0; ?> $question) : ?>
#
.