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