10f5fd22fSGreg Roach<?php 20f5fd22fSGreg Roach 30f5fd22fSGreg Roachuse Fisharebest\Webtrees\Fact; 40f5fd22fSGreg Roachuse Fisharebest\Webtrees\Family; 50f5fd22fSGreg Roachuse Fisharebest\Webtrees\GedcomRecord; 60f5fd22fSGreg Roachuse Fisharebest\Webtrees\Individual; 74991f205SGreg Roachuse Fisharebest\Webtrees\Location; 80f5fd22fSGreg Roachuse Fisharebest\Webtrees\Media; 90f5fd22fSGreg Roachuse Fisharebest\Webtrees\Note; 104991f205SGreg Roachuse Fisharebest\Webtrees\Repository; 110f5fd22fSGreg Roachuse Fisharebest\Webtrees\Source; 12*5962a3c2SGreg Roachuse Fisharebest\Webtrees\Submitter; 130f5fd22fSGreg Roachuse Fisharebest\Webtrees\Tree; 140f5fd22fSGreg Roachuse Illuminate\Support\Collection; 150f5fd22fSGreg Roach 160f5fd22fSGreg Roach/** 17c0ad9daaSGreg Roach * @var Collection<int,Fact>|null $clipboard_facts 18c0ad9daaSGreg Roach * @var Collection<int,Family>|null $linked_families 19c0ad9daaSGreg Roach * @var Collection<int,Individual>|null $linked_individuals 204991f205SGreg Roach * @var Collection<int,Location>|null $linked_locations 21c0ad9daaSGreg Roach * @var Collection<int,Media>|null $linked_media_objects 22c0ad9daaSGreg Roach * @var Collection<int,Note>|null $linked_notes 234991f205SGreg Roach * @var Collection<int,Repository>|null $linked_repositories 24c0ad9daaSGreg Roach * @var Collection<int,Source>|null $linked_sources 25*5962a3c2SGreg Roach * @var Collection<int,Submitter>|null $linked_submitters 260f5fd22fSGreg Roach * @var GedcomRecord $record 270f5fd22fSGreg Roach * @var Tree $tree 280f5fd22fSGreg Roach */ 290f5fd22fSGreg Roach 300f5fd22fSGreg Roach?> 310f5fd22fSGreg Roach 320f5fd22fSGreg Roach<?= view('record-page-pending', ['record' => $record]) ?> 330f5fd22fSGreg Roach 340f5fd22fSGreg Roach<div class="d-flex mb-4"> 350f5fd22fSGreg Roach <h2 class="wt-page-title mx-auto"> 360f5fd22fSGreg Roach <?= $record->fullName() ?> 370f5fd22fSGreg Roach </h2> 380f5fd22fSGreg Roach <?php if ($record->canEdit()) : ?> 390f5fd22fSGreg Roach <?= view('record-page-menu', ['clipboard_facts' => $clipboard_facts, 'record' => $record]) ?> 400f5fd22fSGreg Roach <?php endif ?> 410f5fd22fSGreg Roach</div> 420f5fd22fSGreg Roach 430f5fd22fSGreg Roach<div class="wt-page-content"> 444991f205SGreg Roach <?php if ($linked_families instanceof Collection || $linked_individuals instanceof Collection || $linked_locations instanceof Collection || $linked_media_objects instanceof Collection || $linked_notes instanceof Collection || $linked_repositories instanceof Collection || $linked_sources instanceof Collection) : ?> 450f5fd22fSGreg Roach <?= view('record-page-links', [ 460f5fd22fSGreg Roach 'details' => view('record-page-details', ['record' => $record]), 470f5fd22fSGreg Roach 'linked_families' => $linked_families, 480f5fd22fSGreg Roach 'linked_individuals' => $linked_individuals, 494991f205SGreg Roach 'linked_locations' => $linked_locations, 500f5fd22fSGreg Roach 'linked_media_objects' => $linked_media_objects, 510f5fd22fSGreg Roach 'linked_notes' => $linked_notes, 524991f205SGreg Roach 'linked_repositories' => $linked_repositories, 530f5fd22fSGreg Roach 'linked_sources' => $linked_sources, 54*5962a3c2SGreg Roach 'linked_submitters' => $linked_submitters, 550f5fd22fSGreg Roach 'tree' => $tree, 560f5fd22fSGreg Roach ]) ?> 570f5fd22fSGreg Roach <?php else : ?> 580f5fd22fSGreg Roach <?= view('record-page-details', ['clipboard_facts' => $clipboard_facts, 'record' => $record]) ?> 590f5fd22fSGreg Roach <?php endif ?> 600f5fd22fSGreg Roach</div> 610f5fd22fSGreg Roach 620f5fd22fSGreg Roach<?= view('modals/ajax') ?> 63