xref: /webtrees/resources/views/statistics/individuals/top10-list.phtml (revision 11eb858145c6c7c490e5c0cd7b0bd51e519264f0)
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