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