summaryrefslogtreecommitdiff
path: root/resources/views/statistics/families/top10-list-grand.phtml
blob: 08bf46a8a8ead96dfcbd17fac6f6287b4874a0e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php

declare(strict_types=1);

use Fisharebest\Webtrees\I18N;

/**
 * @var array<array> $records
 */

?>

<?php if ($records) : ?>
    <ul class="list-group list-group-flush">
        <?php foreach ($records as $record) : ?>
            <?php $family = $record['family']; ?>
            <li class="list-group-item d-flex justify-content-between align-items-center">
                <a href="<?= e($family->url()) ?>"><?= $family->fullName() ?></a>
                <span class="badge badge-secondary badge-pill ml-3">
                    <?= I18N::plural('%s grandchild', '%s grandchildren', $record['count'], I18N::number($record['count'])) ?>
                </span>
            </li>
        <?php endforeach; ?>
    </ul>
<?php else : ?>
    <div class="card-body">
        <?= I18N::translate('This information is not available.') ?>
    </div>
<?php endif; ?>