1<?php 2 3declare(strict_types=1); 4 5use Fisharebest\Webtrees\I18N; 6 7/** 8 * @var array<array> $records 9 */ 10 11?> 12 13<?php if ($records !== []) : ?> 14 <ul class="list-group list-group-flush"> 15 <?php foreach ($records as $record) : ?> 16 <?php $person = $record['person']; ?> 17 <li class="list-group-item d-flex justify-content-between align-items-center"> 18 <a href="<?= e($person->url()) ?>"><?= $person->fullName() ?></a> 19 <span class="badge bg-secondary rounded-pill ms-3"><?= $record['age'] ?></span> 20 </li> 21 <?php endforeach; ?> 22 </ul> 23<?php else : ?> 24 <div class="card-body"> 25 <?= I18N::translate('This information is not available.') ?> 26 </div> 27<?php endif; ?> 28