xref: /webtrees/resources/views/lists/given-names-table.phtml (revision 8121b9bec19818120092699199161a1357bb8f3f)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<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']])) ?>">
4    <caption class="sr-only">
5        <?= I18N::translate('Given names') ?>
6    </caption>
7    <thead>
8        <tr>
9            <th>
10                <?= I18N::translate('Given name') ?>
11            </th>
12            <th>
13                <?= I18N::translate('Individuals') ?>
14            </th>
15        </tr>
16    </thead>
17    <tbody>
18        <?php foreach ($given_names as $given_name => $count): ?>
19        <tr>
20            <td>
21                <?= e($given_name) ?>
22            </td>
23            <td>
24                <?= I18N::number($count) ?>
25            </td>
26        </tr>
27        <?php endforeach ?>
28    </tbody>
29</table>
30