1<?php 2 3declare(strict_types=1); 4 5use Fisharebest\Webtrees\I18N; 6use Illuminate\Support\Collection; 7 8/** 9 * @var int $limit_high 10 * @var int $limit_low 11 * @var Collection<int,object> $yahrzeits 12 */ 13 14?> 15 16<div class="table-responsive"> 17 <table 18 class="table table-sm datatable wt-table-yahrzeits" 19 <?= view('lists/datatables-attributes') ?> 20 data-paging="<?= $yahrzeits->count() >= $limit_high ? 'true' : 'false' ?>" 21 data-filter="false" 22 data-info="false" 23 data-length-change="false" 24 data-page-length="<?= e($limit_low) ?>" 25 > 26 <thead> 27 <tr> 28 <th><?= I18N::translate('Name') ?></th> 29 <th><?= I18N::translate('Death') ?></th> 30 <th> 31 <span title="<?= I18N::translate('Anniversary') ?>"> 32 <?= view('icons/anniversary') ?> 33 </span> 34 35 </th> 36 <th><?= I18N::translate('Yahrzeit') ?></th> 37 </tr> 38 </thead> 39 <tbody> 40 41 <?php foreach ($yahrzeits as $yahrzeit) : ?> 42 <tr> 43 <td data-sort="<?= e($yahrzeit->individual->sortName()) ?>"> 44 <a href="<?= e($yahrzeit->individual->url()) ?>"> 45 <?= $yahrzeit->individual->fullName() ?> 46 <?php if ($yahrzeit->individual->alternateName()) : ?> 47 <br> 48 <?= $yahrzeit->individual->alternateName() ?> 49 <?php endif ?> 50 </a> 51 </td> 52 <td data-sort="<?= e($yahrzeit->yahrzeit_date->julianDay()) ?>"> 53 <?= $yahrzeit->fact_date->display($yahrzeit->individual->tree()) ?> 54 </td> 55 <td data-sort="<?= e($yahrzeit->fact->anniv) ?>"> 56 <?= I18N::number($yahrzeit->fact->anniv) ?> 57 </td> 58 <td data-sort="<?= e($yahrzeit->yahrzeit_date->julianDay()) ?>"> 59 <?= $yahrzeit->yahrzeit_date->display($yahrzeit->individual->tree()) ?> 60 </td> 61 </tr> 62 <?php endforeach ?> 63 </tbody> 64 </table> 65</div> 66 67<script> 68 $(".wt-table-yahrzeits").dataTable(); 69</script> 70