1d70512abSGreg Roach<?php 2d70512abSGreg Roach 3*cd51dbdfSGreg Roachuse Fisharebest\Webtrees\Fact; 4d70512abSGreg Roachuse Fisharebest\Webtrees\I18N; 5*cd51dbdfSGreg Roachuse Fisharebest\Webtrees\Individual; 6*cd51dbdfSGreg Roachuse Fisharebest\Webtrees\View; 7*cd51dbdfSGreg Roachuse Illuminate\Support\Collection; 8d70512abSGreg Roach 942a132ddSGreg Roach/** 10*cd51dbdfSGreg Roach * @var Collection<Fact> $facts 1142a132ddSGreg Roach */ 1242a132ddSGreg Roach 13d70512abSGreg Roach?> 1448f08416SGreg Roach 1542a132ddSGreg Roach<div class="table-responsive"> 1648f08416SGreg Roach <table class="table table-sm datatable wt-table-events" data-info="false" data-paging="false" data-searching="false" data-sorting="<?= e('[[1, "asc" ]]') ?>"> 1748f08416SGreg Roach <thead> 1848f08416SGreg Roach <tr> 1948f08416SGreg Roach <th> 2048f08416SGreg Roach <?= I18N::translate('Record') ?> 2148f08416SGreg Roach </th> 2248f08416SGreg Roach <th> 2348f08416SGreg Roach <?= I18N::translate('Date') ?> 2448f08416SGreg Roach </th> 2548f08416SGreg Roach <th> 2648f08416SGreg Roach <?= view('icons/anniversary') ?> 2748f08416SGreg Roach <span class="sr-only"><?= I18N::translate('Anniversary') ?></span> 2848f08416SGreg Roach </th> 2948f08416SGreg Roach <th> 3048f08416SGreg Roach <?= I18N::translate('Event') ?> 3148f08416SGreg Roach </th> 3248f08416SGreg Roach </tr> 3348f08416SGreg Roach </thead> 3448f08416SGreg Roach <tbody> 3548f08416SGreg Roach <?php foreach ($facts as $fact) : ?> 3648f08416SGreg Roach <?php $record = $fact->record(); ?> 3748f08416SGreg Roach <tr> 3848f08416SGreg Roach <td data-sort="<?= e($record->sortName()) ?>"> 3948f08416SGreg Roach <a href="<?= e($record->url()) ?>"> 4048f08416SGreg Roach <?= $record->fullName() ?> 4148f08416SGreg Roach </a> 4248f08416SGreg Roach <?php if ($record instanceof Individual) : ?> 4308362db4SGreg Roach <small><?= view('icons/sex', ['sex' => $record->sex()]) ?></small> 4448f08416SGreg Roach <?php endif ?> 4548f08416SGreg Roach </td> 46*cd51dbdfSGreg Roach <td data-sort="<?= $fact->jd ?>"> 4739c990acSGreg Roach <?= $fact->date()->display(true) ?> 4848f08416SGreg Roach </td> 4948f08416SGreg Roach <td data-sort="<?= $fact->anniv ?>"> 5048f08416SGreg Roach <?= $fact->anniv ?> 5148f08416SGreg Roach </td> 5248f08416SGreg Roach <td data-sort="<?= $fact->label() ?>"> 5348f08416SGreg Roach <?= $fact->label() ?> 5448f08416SGreg Roach </td> 5548f08416SGreg Roach </tr> 5648f08416SGreg Roach <?php endforeach ?> 5748f08416SGreg Roach </tbody> 5848f08416SGreg Roach </table> 5942a132ddSGreg Roach</div> 6048f08416SGreg Roach 6148f08416SGreg Roach<?php View::push('javascript') ?> 6248f08416SGreg Roach<script> 6348f08416SGreg Roach $(".wt-table-events").dataTable(); 6448f08416SGreg Roach</script> 6548f08416SGreg Roach<?php View::endpush() ?> 66