117dd427eSGreg Roach<?php 217dd427eSGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 57c2c99faSGreg Roachuse Fisharebest\Webtrees\Fact; 602467d32SGreg Roachuse Fisharebest\Webtrees\Family; 717dd427eSGreg Roachuse Fisharebest\Webtrees\I18N; 87c2c99faSGreg Roachuse Illuminate\Support\Collection; 97c2c99faSGreg Roach 107c2c99faSGreg Roach/** 1108f0fd1cSGreg Roach * @var bool $can_upload_media 1236779af1SGreg Roach * @var Collection<int,Fact> $clipboard_facts 1336779af1SGreg Roach * @var Collection<int,Fact> $facts 147c2c99faSGreg Roach * @var Family $record 157c2c99faSGreg Roach */ 1617dd427eSGreg Roach 1717dd427eSGreg Roach?> 18dd6b2bfcSGreg Roach 190f5fd22fSGreg Roach<?= view('family-page-pending', ['record' => $record]) ?> 20dd6b2bfcSGreg Roach 21dd6b2bfcSGreg Roach<div class="d-flex mb-4"> 22dd6b2bfcSGreg Roach <h2 class="wt-page-title mx-auto"> 2339ca88baSGreg Roach <?= $record->fullName() ?> 24dd6b2bfcSGreg Roach </h2> 251450f098SGreg Roach <?php if ($record->canEdit()) : ?> 2608f0fd1cSGreg Roach <?= view('family-page-menu', ['can_upload_media' => $can_upload_media, 'clipboard_facts' => $clipboard_facts, 'record' => $record]) ?> 27dd6b2bfcSGreg Roach <?php endif ?> 28dd6b2bfcSGreg Roach</div> 29dd6b2bfcSGreg Roach 30dd6b2bfcSGreg Roach<div class="wt-page-content"> 3117dd427eSGreg Roach <div class="wt-family-members d-flex"> 3217dd427eSGreg Roach <?= view('family-page-children', ['family' => $record]) ?> 3317dd427eSGreg Roach <?= view('family-page-parents', ['family' => $record]) ?> 3417dd427eSGreg Roach </div> 3517dd427eSGreg Roach 3617dd427eSGreg Roach <h3 class="mt-4"><?= I18N::translate('Facts and events') ?></h3> 37dd6b2bfcSGreg Roach <table class="table wt-facts-table"> 3839ca88baSGreg Roach <?php if ($facts->isEmpty()) : ?> 39dd6b2bfcSGreg Roach <tr> 40d224ae93SGreg Roach <td colspan="2"> 41dd6b2bfcSGreg Roach <?= I18N::translate('No facts exist for this family.') ?> 42dd6b2bfcSGreg Roach </td> 43dd6b2bfcSGreg Roach </tr> 44dd6b2bfcSGreg Roach <?php else : ?> 45dd6b2bfcSGreg Roach <?php foreach ($facts as $fact) : ?> 46b315f3e1SGreg Roach <?= view('fact', ['fact' => $fact, 'record' => $record]) ?> 47dd6b2bfcSGreg Roach <?php endforeach ?> 48dd6b2bfcSGreg Roach <?php endif ?> 49dd6b2bfcSGreg Roach 50b315f3e1SGreg Roach <?php if ($record->canEdit()) : ?> 51b315f3e1SGreg Roach <?= view('fact-add-new', ['record' => $record]) ?> 52dd6b2bfcSGreg Roach <?php endif ?> 53dd6b2bfcSGreg Roach </table> 54dd6b2bfcSGreg Roach</div> 55dd6b2bfcSGreg Roach 56dd6b2bfcSGreg Roach<?= view('modals/ajax') ?> 57