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