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