xref: /webtrees/resources/views/lists/given-names-list.phtml (revision ac71572d8462e396ed5a307f05b29381e49f9e6e)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6
7/**
8 * @var array<string,int> $given_names
9 * @var bool              $show_totals
10 */
11
12?>
13
14<ul>
15    <?php foreach ($given_names as $given_name => $count) : ?>
16        <li>
17            <bdi><?= e($given_name) ?></bdi>
18            <?php if ($show_totals) : ?>
19             (<?= I18N::number($count) ?>)
20            <?php endif ?>
21        </li>
22    <?php endforeach ?>
23</ul>
24