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