xref: /webtrees/resources/views/statistics/families/top10-list-grand.phtml (revision 4ab569c4c8308c69f44f469a505a990cdf849c72)
18add1155SRico Sonntag<?php
2d70512abSGreg Roach
38add1155SRico Sonntagdeclare(strict_types=1);
48add1155SRico Sonntag
58add1155SRico Sonntaguse Fisharebest\Webtrees\I18N;
68add1155SRico Sonntag
7dc270d8cSGreg Roach/**
8dc270d8cSGreg Roach * @var array<array> $records
9dc270d8cSGreg Roach */
10dc270d8cSGreg Roach
118add1155SRico Sonntag?>
128add1155SRico Sonntag
13dd7dd2a1SRico Sonntag<?php if ($records) : ?>
148add1155SRico Sonntag    <ul class="list-group list-group-flush">
158add1155SRico Sonntag        <?php foreach ($records as $record) : ?>
168add1155SRico Sonntag            <?php $family = $record['family']; ?>
178add1155SRico Sonntag            <li class="list-group-item d-flex justify-content-between align-items-center">
1839ca88baSGreg Roach                <a href="<?= e($family->url()) ?>"><?= $family->fullName() ?></a>
19*4ab569c4SGreg Roach                <span class="badge bg-secondary rounded-pill ms-3">
208add1155SRico Sonntag                    <?= I18N::plural('%s grandchild', '%s grandchildren', $record['count'], I18N::number($record['count'])) ?>
218add1155SRico Sonntag                </span>
228add1155SRico Sonntag            </li>
238add1155SRico Sonntag        <?php endforeach; ?>
248add1155SRico Sonntag    </ul>
25dd7dd2a1SRico Sonntag<?php else : ?>
26dd7dd2a1SRico Sonntag    <div class="card-body">
2739c990acSGreg Roach        <?= I18N::translate('This information is not available.') ?>
28dd7dd2a1SRico Sonntag    </div>
29dd7dd2a1SRico Sonntag<?php endif; ?>
30