1<?php 2 3use Fisharebest\Webtrees\Fact; 4use Fisharebest\Webtrees\I18N; 5use Illuminate\Support\Collection; 6 7/** 8 * @var Collection<Fact> $family_anniversaries 9 * @var Collection<Fact> $individual_anniversaries 10 */ 11 12?> 13 14<table class="w-100" role="presentation"> 15 <tr> 16 <td class="wt-page-options-label text-center w-50"> 17 <?= view('icons/individual') ?> 18 <?= I18N::plural('%s individual', '%s individuals', $individual_anniversaries->count(), I18N::number($individual_anniversaries->count())) ?> 19 </td> 20 21 <td class="wt-page-options-label text-center w-50"> 22 <?= view('icons/family') ?> 23 <?= I18N::plural('%s family', '%s families', $family_anniversaries->count(), I18N::number($family_anniversaries->count())) ?> 24 </td> 25 </tr> 26 27 <tr> 28 <td class="wt-page-options-value align-top"> 29 <ul class="list-unstyled"> 30 <?php foreach ($individual_anniversaries as $fact) : ?> 31 <li> 32 <a href="<?= e($fact->record()->url()) ?>"> 33 <?= $fact->record()->fullName() ?> 34 </a> 35 36 <div class="indent"> 37 <?= $fact->label() ?> — <?= $fact->date()->display($fact->record()->tree()) ?> 38 <?php if ($fact->attribute('PLAC') !== '') : ?> 39 — <?= $fact->attribute('PLAC') ?> 40 <?php endif ?> 41 </div> 42 </li> 43 <?php endforeach ?> 44 </ul> 45 </td> 46 <td class="wt-page-options-value align-top"> 47 <ul class="list-unstyled"> 48 <?php foreach ($family_anniversaries as $fact) : ?> 49 <li> 50 <a href="<?= e($fact->record()->url()) ?>"> 51 <?= $fact->record()->fullName() ?> 52 </a> 53 54 <div class="indent"> 55 <?= $fact->label() ?> — <?= $fact->date()->display($fact->record()->tree()) ?> 56 <?php if ($fact->attribute('PLAC') !== '') : ?> 57 — <?= $fact->attribute('PLAC') ?> 58 <?php endif ?> 59 </div> 60 </li> 61 <?php endforeach ?> 62 </ul> 63 </td> 64 </tr> 65</table> 66