xref: /webtrees/resources/views/statistics/families/top10-list.phtml (revision 39ca88ba08cefcfcaf891abfcf748f9c808eb326)
18add1155SRico Sonntag<?php
28add1155SRico Sonntagdeclare(strict_types=1);
38add1155SRico Sonntag
48add1155SRico Sonntaguse Fisharebest\Webtrees\Family;
58add1155SRico Sonntaguse Fisharebest\Webtrees\I18N;
68add1155SRico Sonntag
78add1155SRico Sonntag/* @var array  $records */
88add1155SRico Sonntag/* @var Family $family */
98add1155SRico Sonntag?>
108add1155SRico Sonntag
11dd7dd2a1SRico Sonntag<?php if ($records): ?>
128add1155SRico Sonntag    <ul class="list-group list-group-flush">
138add1155SRico Sonntag        <?php foreach ($records as $record): ?>
148add1155SRico Sonntag            <?php $family = $record['family']; ?>
158add1155SRico Sonntag            <li class="list-group-item d-flex justify-content-between align-items-center">
16*39ca88baSGreg Roach                <a href="<?= e($family->url()) ?>"><?= $family->fullName() ?></a>
178add1155SRico Sonntag                <span class="badge badge-secondary badge-pill ml-3">
188add1155SRico Sonntag                    <?= I18N::plural('%s child', '%s children', $record['count'], I18N::number($record['count'])) ?>
198add1155SRico Sonntag                </span>
208add1155SRico Sonntag            </li>
218add1155SRico Sonntag        <?php endforeach; ?>
228add1155SRico Sonntag    </ul>
23dd7dd2a1SRico Sonntag<?php else: ?>
24dd7dd2a1SRico Sonntag    <div class="card-body">
25dd7dd2a1SRico Sonntag        <?= I18N::translate('This information is not available.'); ?>
26dd7dd2a1SRico Sonntag    </div>
27dd7dd2a1SRico Sonntag<?php endif; ?>
28