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; 70f5fd22fSGreg Roachuse Fisharebest\Webtrees\Media; 80f5fd22fSGreg Roachuse Fisharebest\Webtrees\Note; 90f5fd22fSGreg Roachuse Fisharebest\Webtrees\Source; 100f5fd22fSGreg Roachuse Fisharebest\Webtrees\Tree; 110f5fd22fSGreg Roachuse Illuminate\Support\Collection; 120f5fd22fSGreg Roach 130f5fd22fSGreg Roach/** 14*c0ad9daaSGreg Roach * @var Collection<int,Fact>|null $clipboard_facts 15*c0ad9daaSGreg Roach * @var Collection<int,Family>|null $linked_families 16*c0ad9daaSGreg Roach * @var Collection<int,Individual>|null $linked_individuals 17*c0ad9daaSGreg Roach * @var Collection<int,Media>|null $linked_media_objects 18*c0ad9daaSGreg Roach * @var Collection<int,Note>|null $linked_notes 19*c0ad9daaSGreg Roach * @var Collection<int,Source>|null $linked_sources 200f5fd22fSGreg Roach * @var GedcomRecord $record 210f5fd22fSGreg Roach * @var Tree $tree 220f5fd22fSGreg Roach */ 230f5fd22fSGreg Roach 240f5fd22fSGreg Roach?> 250f5fd22fSGreg Roach 260f5fd22fSGreg Roach<?= view('record-page-pending', ['record' => $record]) ?> 270f5fd22fSGreg Roach 280f5fd22fSGreg Roach<div class="d-flex mb-4"> 290f5fd22fSGreg Roach <h2 class="wt-page-title mx-auto"> 300f5fd22fSGreg Roach <?= $record->fullName() ?> 310f5fd22fSGreg Roach </h2> 320f5fd22fSGreg Roach <?php if ($record->canEdit()) : ?> 330f5fd22fSGreg Roach <?= view('record-page-menu', ['clipboard_facts' => $clipboard_facts, 'record' => $record]) ?> 340f5fd22fSGreg Roach <?php endif ?> 350f5fd22fSGreg Roach</div> 360f5fd22fSGreg Roach 370f5fd22fSGreg Roach<div class="wt-page-content"> 380f5fd22fSGreg Roach <?php if ($linked_families instanceof Collection || $linked_individuals instanceof Collection || $linked_media_objects instanceof Collection || $linked_notes instanceof Collection || $linked_sources instanceof Collection) : ?> 390f5fd22fSGreg Roach <?= view('record-page-links', [ 400f5fd22fSGreg Roach 'details' => view('record-page-details', ['record' => $record]), 410f5fd22fSGreg Roach 'linked_families' => $linked_families, 420f5fd22fSGreg Roach 'linked_individuals' => $linked_individuals, 430f5fd22fSGreg Roach 'linked_media_objects' => $linked_media_objects, 440f5fd22fSGreg Roach 'linked_notes' => $linked_notes, 450f5fd22fSGreg Roach 'linked_sources' => $linked_sources, 460f5fd22fSGreg Roach 'tree' => $tree, 470f5fd22fSGreg Roach ]) ?> 480f5fd22fSGreg Roach <?php else : ?> 490f5fd22fSGreg Roach <?= view('record-page-details', ['clipboard_facts' => $clipboard_facts, 'record' => $record]) ?> 500f5fd22fSGreg Roach <?php endif ?> 510f5fd22fSGreg Roach</div> 520f5fd22fSGreg Roach 530f5fd22fSGreg Roach<?= view('modals/ajax') ?> 54