xref: /webtrees/resources/views/statistics/other/top10-list.phtml (revision ad7270802ba57a28d195fc58fcc55f26458a779a)
1<?php
2declare(strict_types=1);
3
4use Fisharebest\Webtrees\I18N;
5use Fisharebest\Webtrees\Place;
6
7/* @var array $records */
8/* @var Place $place */
9?>
10
11<ul class="list-group list-group-flush">
12    <?php foreach ($records as $record): ?>
13        <?php $place = $record['place']; ?>
14        <li class="list-group-item d-flex justify-content-between align-items-center">
15            <a href="<?= e($place->url()) ?>"><?= $place->fullName() ?></a>
16            <span class="badge badge-secondary badge-pill ml-3"><?= I18N::number($record['count']) ?></span>
17        </li>
18    <?php endforeach; ?>
19</ul>
20