xref: /webtrees/resources/views/statistics/families/top10-list-spouses.phtml (revision e3c147d0d53873311b7c137c41b4439e01d4189e)
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