xref: /webtrees/resources/views/statistics/families/top10-list-spouses.phtml (revision ad7270802ba57a28d195fc58fcc55f26458a779a)
1<?php
2declare(strict_types=1);
3
4use Fisharebest\Webtrees\Family;
5
6/* @var array  $records */
7/* @var Family $family */
8?>
9
10<ul class="list-group list-group-flush">
11    <?php foreach ($records as $record): ?>
12        <?php $family = $record['family']; ?>
13        <li class="list-group-item d-flex justify-content-between align-items-center">
14            <a href="<?= e($family->url()) ?>"><?= $family->getFullName() ?></a>
15            <span class="badge badge-secondary badge-pill ml-3"><?= $record['age'] ?></span>
16        </li>
17    <?php endforeach; ?>
18</ul>
19