xref: /webtrees/resources/views/lists/given-names-list.phtml (revision 1270d2767576ed4a83917769b0ee3613e3b010bf)
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