148f08416SGreg Roach<?php 248f08416SGreg Roach 348f08416SGreg Roachuse Fisharebest\Webtrees\Carbon; 448f08416SGreg Roachuse Fisharebest\Webtrees\Fact; 548f08416SGreg Roachuse Fisharebest\Webtrees\Individual; 648f08416SGreg Roach 748f08416SGreg Roach/** @var Fact[] $facts */ 848f08416SGreg Roach 948f08416SGreg Roach?> 1048f08416SGreg Roach 1148f08416SGreg Roach<?php foreach ($facts as $fact) : ?> 1248f08416SGreg Roach <?php $record = $fact->record(); ?> 1348f08416SGreg Roach <a href="<?= e($record->url()) ?>" class="list_item name2"> 1448f08416SGreg Roach <?= $record->fullName() ?> 1548f08416SGreg Roach </a> 1648f08416SGreg Roach <?php if ($record instanceof Individual) : ?> 1748f08416SGreg Roach <?= view('icons/sex-' . $record->sex()) ?> 1848f08416SGreg Roach <?php endif ?> 1948f08416SGreg Roach <div class="indent"> 20*39c990acSGreg Roach <?= $fact->label() . ' — ' . $fact->date()->display(true) ?> 21*39c990acSGreg Roach (<?= Carbon::now()->subYears($fact->anniv)->local()->diffForHumans() ?>) 2248f08416SGreg Roach <?php if ($fact->place()->gedcomName() !== '') : ?> 2348f08416SGreg Roach — <a href="<?= e($fact->place()->url()) ?>" title="<?= strip_tags($fact->place()->fullName()) ?>"> 2448f08416SGreg Roach <?= $fact->place()->shortName() ?> 2548f08416SGreg Roach </a> 2648f08416SGreg Roach <?php endif ?> 2748f08416SGreg Roach </div> 2848f08416SGreg Roach<?php endforeach ?> 29