xref: /webtrees/resources/views/modules/top10_pageviews/list.phtml (revision 4a9a60957058ca2a34e30a0d6f783e1540606590)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6
7/**
8 * @var array<string,mixed> $results
9 */
10
11?>
12<ul class="list-unstyled">
13    <?php foreach ($results as $result) : ?>
14        <li>
15            <span class="badge bg-secondary"><?= I18N::number($result['count']) ?></span>
16            <a href="<?= e($result['record']->url()) ?>">
17                <?= $result['record']->fullName() ?>
18            </a>
19        </li>
20    <?php endforeach ?>
21</ul>
22