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