1<?php 2 3use Fisharebest\Webtrees\Fact; 4use Fisharebest\Webtrees\Family; 5use Fisharebest\Webtrees\GedcomRecord; 6use Fisharebest\Webtrees\Individual; 7use Fisharebest\Webtrees\Location; 8use Fisharebest\Webtrees\Media; 9use Fisharebest\Webtrees\Note; 10use Fisharebest\Webtrees\Repository; 11use Fisharebest\Webtrees\Source; 12use Fisharebest\Webtrees\Submitter; 13use Fisharebest\Webtrees\Tree; 14use Illuminate\Support\Collection; 15 16/** 17 * @var Collection<int,Fact>|null $clipboard_facts 18 * @var Collection<int,Family>|null $linked_families 19 * @var Collection<int,Individual>|null $linked_individuals 20 * @var Collection<int,Location>|null $linked_locations 21 * @var Collection<int,Media>|null $linked_media_objects 22 * @var Collection<int,Note>|null $linked_notes 23 * @var Collection<int,Repository>|null $linked_repositories 24 * @var Collection<int,Source>|null $linked_sources 25 * @var Collection<int,Submitter>|null $linked_submitters 26 * @var GedcomRecord $record 27 * @var Tree $tree 28 */ 29 30?> 31 32<?= view('record-page-pending', ['record' => $record]) ?> 33 34<div class="d-flex mb-4"> 35 <h2 class="wt-page-title mx-auto"> 36 <?= $record->fullName() ?> 37 </h2> 38 <?php if ($record->canEdit()) : ?> 39 <?= view('record-page-menu', ['clipboard_facts' => $clipboard_facts, 'record' => $record]) ?> 40 <?php endif ?> 41</div> 42 43<div class="wt-page-content"> 44 <?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) : ?> 45 <?= view('record-page-links', [ 46 'details' => view('record-page-details', ['record' => $record]), 47 'linked_families' => $linked_families, 48 'linked_individuals' => $linked_individuals, 49 'linked_locations' => $linked_locations, 50 'linked_media_objects' => $linked_media_objects, 51 'linked_notes' => $linked_notes, 52 'linked_repositories' => $linked_repositories, 53 'linked_sources' => $linked_sources, 54 'linked_submitters' => $linked_submitters, 55 'tree' => $tree, 56 ]) ?> 57 <?php else : ?> 58 <?= view('record-page-details', ['clipboard_facts' => $clipboard_facts, 'record' => $record]) ?> 59 <?php endif ?> 60</div> 61 62<?= view('modals/ajax') ?> 63