1d70512abSGreg Roach<?php 2d70512abSGreg Roach 3cd51dbdfSGreg Roachuse Fisharebest\Webtrees\Fact; 4d70512abSGreg Roachuse Fisharebest\Webtrees\I18N; 5cd51dbdfSGreg Roachuse Fisharebest\Webtrees\Individual; 6cd51dbdfSGreg Roachuse Fisharebest\Webtrees\View; 7cd51dbdfSGreg Roachuse Illuminate\Support\Collection; 8d70512abSGreg Roach 942a132ddSGreg Roach/** 10cd51dbdfSGreg Roach * @var Collection<Fact> $facts 1101221f27SGreg Roach * @var int $limit_high 1201221f27SGreg Roach * @var int $limit_low 130999990bSGreg Roach * @var array<mixed> $order 1442a132ddSGreg Roach */ 1542a132ddSGreg Roach 16d70512abSGreg Roach?> 1748f08416SGreg Roach 1842a132ddSGreg Roach<div class="table-responsive"> 19e24053e5SGreg Roach <table 20e24053e5SGreg Roach class="table table-sm datatable wt-table-events" 21e24053e5SGreg Roach <?= view('lists/datatables-attributes') ?> 22dc270d8cSGreg Roach data-paging="<?= $facts->count() >= $limit_high ? 'true' : 'false' ?>" 23e24053e5SGreg Roach data-filter="false" 24e24053e5SGreg Roach data-info="false" 25e24053e5SGreg Roach data-length-change="false" 2601221f27SGreg Roach data-page-length="<?= e($limit_low) ?>" 270999990bSGreg Roach data-order="<?= e(json_encode($order ?? [])) ?>" 28e24053e5SGreg Roach > 2948f08416SGreg Roach <thead> 3048f08416SGreg Roach <tr> 3148f08416SGreg Roach <th> 3248f08416SGreg Roach <?= I18N::translate('Record') ?> 3348f08416SGreg Roach </th> 3448f08416SGreg Roach <th> 3548f08416SGreg Roach <?= I18N::translate('Date') ?> 3648f08416SGreg Roach </th> 3748f08416SGreg Roach <th> 3848f08416SGreg Roach <?= view('icons/anniversary') ?> 39*315eb316SGreg Roach <span class="visually-hidden"><?= I18N::translate('Anniversary') ?></span> 4048f08416SGreg Roach </th> 4148f08416SGreg Roach <th> 4248f08416SGreg Roach <?= I18N::translate('Event') ?> 4348f08416SGreg Roach </th> 4448f08416SGreg Roach </tr> 4548f08416SGreg Roach </thead> 4648f08416SGreg Roach <tbody> 4748f08416SGreg Roach <?php foreach ($facts as $fact) : ?> 4848f08416SGreg Roach <?php $record = $fact->record(); ?> 4948f08416SGreg Roach <tr> 5048f08416SGreg Roach <td data-sort="<?= e($record->sortName()) ?>"> 5148f08416SGreg Roach <a href="<?= e($record->url()) ?>"> 5248f08416SGreg Roach <?= $record->fullName() ?> 5348f08416SGreg Roach </a> 5448f08416SGreg Roach <?php if ($record instanceof Individual) : ?> 5508362db4SGreg Roach <small><?= view('icons/sex', ['sex' => $record->sex()]) ?></small> 5648f08416SGreg Roach <?php endif ?> 5748f08416SGreg Roach </td> 58cd51dbdfSGreg Roach <td data-sort="<?= $fact->jd ?>"> 5939c990acSGreg Roach <?= $fact->date()->display(true) ?> 6048f08416SGreg Roach </td> 6148f08416SGreg Roach <td data-sort="<?= $fact->anniv ?>"> 6248f08416SGreg Roach <?= $fact->anniv ?> 6348f08416SGreg Roach </td> 6448f08416SGreg Roach <td data-sort="<?= $fact->label() ?>"> 6548f08416SGreg Roach <?= $fact->label() ?> 6648f08416SGreg Roach </td> 6748f08416SGreg Roach </tr> 6848f08416SGreg Roach <?php endforeach ?> 6948f08416SGreg Roach </tbody> 7048f08416SGreg Roach </table> 7142a132ddSGreg Roach</div> 7248f08416SGreg Roach 7348f08416SGreg Roach<?php View::push('javascript') ?> 7448f08416SGreg Roach<script> 7548f08416SGreg Roach $(".wt-table-events").dataTable(); 7648f08416SGreg Roach</script> 7748f08416SGreg Roach<?php View::endpush() ?> 78