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