1d70512abSGreg Roach<?php 2d70512abSGreg Roach 37c2c99faSGreg Roachuse Fisharebest\Webtrees\Fact; 402467d32SGreg Roachuse Fisharebest\Webtrees\I18N; 502467d32SGreg Roachuse Fisharebest\Webtrees\Individual; 67c2c99faSGreg Roachuse Illuminate\Support\Collection; 77c2c99faSGreg Roach 87c2c99faSGreg Roach/** 97c2c99faSGreg Roach * @var bool $can_edit 107c2c99faSGreg Roach * @var Collection<Fact> $clipboard_facts 117c2c99faSGreg Roach * @var Collection<Fact> $facts 1291a257a4SGreg Roach * @var bool $has_associate_facts 1391a257a4SGreg Roach * @var bool $has_historic_facts 1491a257a4SGreg Roach * @var bool $has_relative_facts 157c2c99faSGreg Roach * @var Individual $individual 167c2c99faSGreg Roach */ 17d70512abSGreg Roach 18d70512abSGreg Roach?> 19dd6b2bfcSGreg Roach 204a2590a5SGreg Roach<div class="wt-tab-facts py-4"> 213340ecd2SGreg Roach <table class="table wt-facts-table" style="table-layout: fixed"> 223340ecd2SGreg Roach <colgroup> 233340ecd2SGreg Roach <col style="width:25%"> 243340ecd2SGreg Roach <col style="width:75%"> 253340ecd2SGreg Roach </colgroup> 26dd6b2bfcSGreg Roach <tbody> 27dd6b2bfcSGreg Roach <tr> 28dd6b2bfcSGreg Roach <td colspan="2"> 2991a257a4SGreg Roach <?php if ($has_associate_facts) : ?> 3091a257a4SGreg Roach <label> 312d8276baSGreg Roach <input id="show-associate-facts" type="checkbox" data-bs-toggle="collapse" data-bs-target=".wt-associate-fact" data-wt-persist="associates"> 3291a257a4SGreg Roach <?= I18N::translate('Associated events') ?> 3391a257a4SGreg Roach </label> 3491a257a4SGreg Roach <?php endif ?> 3591a257a4SGreg Roach 3691a257a4SGreg Roach <?php if ($has_relative_facts) : ?> 37dd6b2bfcSGreg Roach <label> 382d8276baSGreg Roach <input id="show-relatives-facts" type="checkbox" data-bs-toggle="collapse" data-bs-target=".wt-relation-fact" data-wt-persist="relatives"> 39dd6b2bfcSGreg Roach <?= I18N::translate('Events of close relatives') ?> 40dd6b2bfcSGreg Roach </label> 4191a257a4SGreg Roach <?php endif ?> 4291a257a4SGreg Roach 4391a257a4SGreg Roach <?php if ($has_historic_facts) : ?> 44dd6b2bfcSGreg Roach <label> 452d8276baSGreg Roach <input id="show-historical-facts" type="checkbox" data-bs-toggle="collapse" data-bs-target=".wt-historic-fact" data-wt-persist="historic-facts"> 46051c822dSGreg Roach <?= I18N::translate('Historic events') ?> 47dd6b2bfcSGreg Roach </label> 48dd6b2bfcSGreg Roach <?php endif ?> 49dd6b2bfcSGreg Roach </td> 50dd6b2bfcSGreg Roach </tr> 51dd6b2bfcSGreg Roach 52dd6b2bfcSGreg Roach <?php foreach ($facts as $fact) : ?> 53*b315f3e1SGreg Roach <?= view('fact', ['fact' => $fact, 'record' => $individual]) ?> 54dd6b2bfcSGreg Roach <?php endforeach ?> 55dd6b2bfcSGreg Roach 5639ca88baSGreg Roach <?php if ($facts->isEmpty()) : ?> 57dd6b2bfcSGreg Roach <tr> 58dd6b2bfcSGreg Roach <td colspan="2"> 59dd6b2bfcSGreg Roach <?= I18N::translate('There are no facts for this individual.') ?> 60dd6b2bfcSGreg Roach </td> 61dd6b2bfcSGreg Roach </tr> 62dd6b2bfcSGreg Roach <?php endif ?> 63dd6b2bfcSGreg Roach 64dd6b2bfcSGreg Roach <?php if ($individual->canEdit()) : ?> 65*b315f3e1SGreg Roach <?= view('fact-add-new', ['record' => $individual]) ?> 66dd6b2bfcSGreg Roach <?php endif ?> 67dd6b2bfcSGreg Roach </tbody> 68dd6b2bfcSGreg Roach </table> 69dd6b2bfcSGreg Roach</div> 70