xref: /webtrees/resources/views/statistics/other/top10-list.phtml (revision da58fa21ddd29f92b1fde63c8ee425cf3d7f4eee)
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<?php if ($records): ?>
12    <ul class="list-group list-group-flush">
13        <?php foreach ($records as $record): ?>
14            <?php $place = $record['place']; ?>
15            <li class="list-group-item d-flex justify-content-between align-items-center">
16                <a href="<?= e($place->url()) ?>"><?= $place->fullName() ?></a>
17                <span class="badge badge-secondary badge-pill ml-3"><?= I18N::number($record['count']) ?></span>
18            </li>
19        <?php endforeach; ?>
20    </ul>
21<?php else: ?>
22    <div class="card-body">
23        <?= I18N::translate('This information is not available.'); ?>
24    </div>
25<?php endif; ?>
26