xref: /webtrees/resources/views/modules/top10_pageviews/list.phtml (revision 61351a03dbeb5920221fcb08c904615fe551fd3a)
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