xref: /webtrees/resources/views/lists/given-names-table.phtml (revision 12a0693f1b6760e019806135ae71270602315868)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5?>
6
7<table class="table table-bordered table-sm datatables wt-table-given-name" data-info="false" data-paging="false" data-searching="false" data-state-save="true" data-order="<?= e(json_encode($order ?? [[1, 'desc']])) ?>">
8    <caption class="sr-only">
9        <?= I18N::translate('Given names') ?>
10    </caption>
11    <thead>
12        <tr>
13            <th>
14                <?= I18N::translate('Given name') ?>
15            </th>
16            <th>
17                <?= I18N::translate('Individuals') ?>
18            </th>
19        </tr>
20    </thead>
21    <tbody>
22        <?php foreach ($given_names as $given_name => $count) : ?>
23        <tr>
24            <td>
25                <?= e($given_name) ?>
26            </td>
27            <td>
28                <?= I18N::number($count) ?>
29            </td>
30        </tr>
31        <?php endforeach ?>
32    </tbody>
33</table>
34