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