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