1d70512abSGreg Roach<?php 2d70512abSGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 5d70512abSGreg Roachuse Fisharebest\Webtrees\I18N; 6d70512abSGreg Roach 77c2c99faSGreg Roach/** 87c2c99faSGreg Roach * @var array<string,int> $given_names 9c9128110SGreg Roach * @var array<array<int,string>> $order 107c2c99faSGreg Roach */ 117c2c99faSGreg Roach 12d70512abSGreg Roach?> 1395768326SGreg Roach 14b4139381SGreg Roach<table 15b4139381SGreg Roach class="table table-bordered table-sm wt-table-given-name datatables d-none" 16b4139381SGreg Roach <?= view('lists/datatables-attributes') ?> 17b4139381SGreg Roach data-info="false" 18b4139381SGreg Roach data-paging="false" 19b4139381SGreg Roach data-searching="false" 20c9128110SGreg Roach data-order="<?= e(json_encode($order, JSON_THROW_ON_ERROR)) ?>" 21b4139381SGreg Roach> 22315eb316SGreg Roach <caption class="visually-hidden"> 2395768326SGreg Roach <?= I18N::translate('Given names') ?> 2495768326SGreg Roach </caption> 2595768326SGreg Roach <thead> 2695768326SGreg Roach <tr> 2795768326SGreg Roach <th> 2895768326SGreg Roach <?= I18N::translate('Given name') ?> 2995768326SGreg Roach </th> 3095768326SGreg Roach <th> 3195768326SGreg Roach <?= I18N::translate('Individuals') ?> 3295768326SGreg Roach </th> 3395768326SGreg Roach </tr> 3495768326SGreg Roach </thead> 3595768326SGreg Roach <tbody> 3695768326SGreg Roach <?php foreach ($given_names as $given_name => $count) : ?> 3795768326SGreg Roach <tr> 3895768326SGreg Roach <td> 3995768326SGreg Roach <?= e($given_name) ?> 4095768326SGreg Roach </td> 4195768326SGreg Roach <td> 4295768326SGreg Roach <?= I18N::number($count) ?> 4395768326SGreg Roach </td> 4495768326SGreg Roach </tr> 4595768326SGreg Roach <?php endforeach ?> 4695768326SGreg Roach </tbody> 4795768326SGreg Roach</table> 48