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