1d70512abSGreg Roach<?php 2d70512abSGreg Roach 37c2c99faSGreg Roachuse Fisharebest\Webtrees\Fact; 4d70512abSGreg Roachuse Fisharebest\Webtrees\Functions\FunctionsPrint; 502467d32SGreg Roachuse Fisharebest\Webtrees\Functions\FunctionsPrintFacts; 602467d32SGreg Roachuse Fisharebest\Webtrees\I18N; 702467d32SGreg Roachuse Fisharebest\Webtrees\Individual; 802467d32SGreg Roachuse Fisharebest\Webtrees\View; 97c2c99faSGreg Roachuse Illuminate\Support\Collection; 107c2c99faSGreg Roach 117c2c99faSGreg Roach/** 127c2c99faSGreg Roach * @var bool $can_edit 137c2c99faSGreg Roach * @var Collection<Fact> $clipboard_facts 147c2c99faSGreg Roach * @var Collection<Fact> $facts 1591a257a4SGreg Roach * @var bool $has_associate_facts 1691a257a4SGreg Roach * @var bool $has_historic_facts 1791a257a4SGreg Roach * @var bool $has_relative_facts 187c2c99faSGreg Roach * @var Individual $individual 197c2c99faSGreg Roach */ 20d70512abSGreg Roach 21d70512abSGreg Roach?> 22dd6b2bfcSGreg Roach 234a2590a5SGreg Roach<div class="wt-tab-facts py-4"> 24dd6b2bfcSGreg Roach <table class="table wt-facts-table"> 25dd6b2bfcSGreg Roach <tbody> 26dd6b2bfcSGreg Roach <tr> 27dd6b2bfcSGreg Roach <td colspan="2"> 2891a257a4SGreg Roach <?php if ($has_associate_facts) : ?> 2991a257a4SGreg Roach <label> 30*2d8276baSGreg Roach <input id="show-associate-facts" type="checkbox" data-bs-toggle="collapse" data-bs-target=".wt-associate-fact" data-wt-persist="associates"> 3191a257a4SGreg Roach <?= I18N::translate('Associated events') ?> 3291a257a4SGreg Roach </label> 3391a257a4SGreg Roach <?php endif ?> 3491a257a4SGreg Roach 3591a257a4SGreg Roach <?php if ($has_relative_facts) : ?> 36dd6b2bfcSGreg Roach <label> 37*2d8276baSGreg Roach <input id="show-relatives-facts" type="checkbox" data-bs-toggle="collapse" data-bs-target=".wt-relation-fact" data-wt-persist="relatives"> 38dd6b2bfcSGreg Roach <?= I18N::translate('Events of close relatives') ?> 39dd6b2bfcSGreg Roach </label> 4091a257a4SGreg Roach <?php endif ?> 4191a257a4SGreg Roach 4291a257a4SGreg Roach <?php if ($has_historic_facts) : ?> 43dd6b2bfcSGreg Roach <label> 44*2d8276baSGreg Roach <input id="show-historical-facts" type="checkbox" data-bs-toggle="collapse" data-bs-target=".wt-historic-fact" data-wt-persist="historic-facts"> 45051c822dSGreg Roach <?= I18N::translate('Historic events') ?> 46dd6b2bfcSGreg Roach </label> 47dd6b2bfcSGreg Roach <?php endif ?> 48dd6b2bfcSGreg Roach </td> 49dd6b2bfcSGreg Roach </tr> 50dd6b2bfcSGreg Roach 51dd6b2bfcSGreg Roach <?php foreach ($facts as $fact) : ?> 52dd6b2bfcSGreg Roach <?php FunctionsPrintFacts::printFact($fact, $individual) ?> 53dd6b2bfcSGreg Roach <?php endforeach ?> 54dd6b2bfcSGreg Roach 5539ca88baSGreg Roach <?php if ($facts->isEmpty()) : ?> 56dd6b2bfcSGreg Roach <tr> 57dd6b2bfcSGreg Roach <td colspan="2"> 58dd6b2bfcSGreg Roach <?= I18N::translate('There are no facts for this individual.') ?> 59dd6b2bfcSGreg Roach </td> 60dd6b2bfcSGreg Roach </tr> 61dd6b2bfcSGreg Roach <?php endif ?> 62dd6b2bfcSGreg Roach 63dd6b2bfcSGreg Roach <?php if ($individual->canEdit()) : ?> 640f5fd22fSGreg Roach <?php FunctionsPrint::printAddNewFact($individual) ?> 65dd6b2bfcSGreg Roach <?php endif ?> 66dd6b2bfcSGreg Roach </tbody> 67dd6b2bfcSGreg Roach </table> 68dd6b2bfcSGreg Roach</div> 69