117dd427eSGreg Roach<?php 217dd427eSGreg Roach 37c2c99faSGreg Roachuse Fisharebest\Webtrees\Fact; 402467d32SGreg Roachuse Fisharebest\Webtrees\Family; 517dd427eSGreg Roachuse Fisharebest\Webtrees\I18N; 67c2c99faSGreg Roachuse Illuminate\Support\Collection; 77c2c99faSGreg Roach 87c2c99faSGreg Roach/** 908f0fd1cSGreg Roach * @var bool $can_upload_media 10*36779af1SGreg Roach * @var Collection<int,Fact> $clipboard_facts 11*36779af1SGreg Roach * @var Collection<int,Fact> $facts 127c2c99faSGreg Roach * @var Family $record 137c2c99faSGreg Roach */ 1417dd427eSGreg Roach 1517dd427eSGreg Roach?> 16dd6b2bfcSGreg Roach 170f5fd22fSGreg Roach<?= view('family-page-pending', ['record' => $record]) ?> 18dd6b2bfcSGreg Roach 19dd6b2bfcSGreg Roach<div class="d-flex mb-4"> 20dd6b2bfcSGreg Roach <h2 class="wt-page-title mx-auto"> 2139ca88baSGreg Roach <?= $record->fullName() ?> 22dd6b2bfcSGreg Roach </h2> 231450f098SGreg Roach <?php if ($record->canEdit()) : ?> 2408f0fd1cSGreg Roach <?= view('family-page-menu', ['can_upload_media' => $can_upload_media, 'clipboard_facts' => $clipboard_facts, 'record' => $record]) ?> 25dd6b2bfcSGreg Roach <?php endif ?> 26dd6b2bfcSGreg Roach</div> 27dd6b2bfcSGreg Roach 28dd6b2bfcSGreg Roach<div class="wt-page-content"> 2917dd427eSGreg Roach <div class="wt-family-members d-flex"> 3017dd427eSGreg Roach <?= view('family-page-children', ['family' => $record]) ?> 3117dd427eSGreg Roach <?= view('family-page-parents', ['family' => $record]) ?> 3217dd427eSGreg Roach </div> 3317dd427eSGreg Roach 3417dd427eSGreg Roach <h3 class="mt-4"><?= I18N::translate('Facts and events') ?></h3> 35dd6b2bfcSGreg Roach <table class="table wt-facts-table"> 3639ca88baSGreg Roach <?php if ($facts->isEmpty()) : ?> 37dd6b2bfcSGreg Roach <tr> 38d224ae93SGreg Roach <td colspan="2"> 39dd6b2bfcSGreg Roach <?= I18N::translate('No facts exist for this family.') ?> 40dd6b2bfcSGreg Roach </td> 41dd6b2bfcSGreg Roach </tr> 42dd6b2bfcSGreg Roach <?php else : ?> 43dd6b2bfcSGreg Roach <?php foreach ($facts as $fact) : ?> 44b315f3e1SGreg Roach <?= view('fact', ['fact' => $fact, 'record' => $record]) ?> 45dd6b2bfcSGreg Roach <?php endforeach ?> 46dd6b2bfcSGreg Roach <?php endif ?> 47dd6b2bfcSGreg Roach 48b315f3e1SGreg Roach <?php if ($record->canEdit()) : ?> 49b315f3e1SGreg Roach <?= view('fact-add-new', ['record' => $record]) ?> 50dd6b2bfcSGreg Roach <?php endif ?> 51dd6b2bfcSGreg Roach </table> 52dd6b2bfcSGreg Roach</div> 53dd6b2bfcSGreg Roach 54dd6b2bfcSGreg Roach<?= view('modals/ajax') ?> 55