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