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