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