1<?php 2 3declare(strict_types=1); 4 5use Fisharebest\Webtrees\Fact; 6use Fisharebest\Webtrees\I18N; 7use Illuminate\Support\Collection; 8 9/** 10 * @var int $limit_high 11 * @var int $limit_low 12 * @var Collection<int,Fact> $tasks 13 */ 14 15?> 16 17<table 18 class="table table-bordered table-sm wt-table-tasks datatables d-none" 19 <?= view('lists/datatables-attributes') ?> 20 data-paging="<?= $tasks->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 class="d-none d-md-table-cell wt-side-block-optional"> 29 <?= I18N::translate('Date') ?> 30 </th> 31 <th> 32 <?= I18N::translate('Record') ?> 33 </th> 34 <th class="d-none d-md-table-cell wt-side-block-optional"> 35 <?= I18N::translate('Username') ?> 36 </th> 37 <th> 38 <?= I18N::translate('Research task') ?> 39 </th> 40 </tr> 41 </thead> 42 43 <tbody> 44 <?php foreach ($tasks as $task) : ?> 45 <tr> 46 <td data-sort="<?= $task->date()->julianDay() ?>" class="d-none d-md-table-cell wt-side-block-optional"> 47 <?= $task->date()->display() ?> 48 </td> 49 <td data-sort="<?= e($task->record()->sortName()) ?>"> 50 <a href="<?= e($task->record()->url()) ?>"> 51 <?= $task->record()->fullName() ?> 52 </a> 53 </td> 54 <td class="d-none d-md-table-cell wt-side-block-optional"> 55 <?= e($task->attribute('_WT_USER')) ?> 56 </td> 57 <td dir="auto"> 58 <?= e($task->value()) ?> 59 </td> 60 </tr> 61 <?php endforeach ?> 62 </tbody> 63</table> 64