xref: /webtrees/resources/views/record-page.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
10f5fd22fSGreg Roach<?php
20f5fd22fSGreg Roach
3*10e06497SGreg Roachdeclare(strict_types=1);
4*10e06497SGreg Roach
50f5fd22fSGreg Roachuse Fisharebest\Webtrees\Fact;
60f5fd22fSGreg Roachuse Fisharebest\Webtrees\Family;
70f5fd22fSGreg Roachuse Fisharebest\Webtrees\GedcomRecord;
80f5fd22fSGreg Roachuse Fisharebest\Webtrees\Individual;
94991f205SGreg Roachuse Fisharebest\Webtrees\Location;
100f5fd22fSGreg Roachuse Fisharebest\Webtrees\Media;
110f5fd22fSGreg Roachuse Fisharebest\Webtrees\Note;
124991f205SGreg Roachuse Fisharebest\Webtrees\Repository;
130f5fd22fSGreg Roachuse Fisharebest\Webtrees\Source;
145962a3c2SGreg Roachuse Fisharebest\Webtrees\Submitter;
150f5fd22fSGreg Roachuse Fisharebest\Webtrees\Tree;
160f5fd22fSGreg Roachuse Illuminate\Support\Collection;
170f5fd22fSGreg Roach
180f5fd22fSGreg Roach/**
19c0ad9daaSGreg Roach * @var Collection<int,Fact>|null       $clipboard_facts
20c0ad9daaSGreg Roach * @var Collection<int,Family>|null     $linked_families
21c0ad9daaSGreg Roach * @var Collection<int,Individual>|null $linked_individuals
224991f205SGreg Roach * @var Collection<int,Location>|null   $linked_locations
23c0ad9daaSGreg Roach * @var Collection<int,Media>|null      $linked_media_objects
24c0ad9daaSGreg Roach * @var Collection<int,Note>|null       $linked_notes
254991f205SGreg Roach * @var Collection<int,Repository>|null $linked_repositories
26c0ad9daaSGreg Roach * @var Collection<int,Source>|null     $linked_sources
275962a3c2SGreg Roach * @var Collection<int,Submitter>|null  $linked_submitters
280f5fd22fSGreg Roach * @var GedcomRecord                    $record
290f5fd22fSGreg Roach * @var Tree                            $tree
300f5fd22fSGreg Roach */
310f5fd22fSGreg Roach
320f5fd22fSGreg Roach?>
330f5fd22fSGreg Roach
340f5fd22fSGreg Roach<?= view('record-page-pending', ['record' => $record]) ?>
350f5fd22fSGreg Roach
360f5fd22fSGreg Roach<div class="d-flex mb-4">
370f5fd22fSGreg Roach    <h2 class="wt-page-title mx-auto">
380f5fd22fSGreg Roach        <?= $record->fullName() ?>
390f5fd22fSGreg Roach    </h2>
400f5fd22fSGreg Roach    <?php if ($record->canEdit()) : ?>
410f5fd22fSGreg Roach        <?= view('record-page-menu', ['clipboard_facts' => $clipboard_facts, 'record' => $record]) ?>
420f5fd22fSGreg Roach    <?php endif ?>
430f5fd22fSGreg Roach</div>
440f5fd22fSGreg Roach
450f5fd22fSGreg Roach<div class="wt-page-content">
464991f205SGreg 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) : ?>
470f5fd22fSGreg Roach        <?= view('record-page-links', [
480f5fd22fSGreg Roach            'details'              => view('record-page-details', ['record' => $record]),
490f5fd22fSGreg Roach            'linked_families'      => $linked_families,
500f5fd22fSGreg Roach            'linked_individuals'   => $linked_individuals,
514991f205SGreg Roach            'linked_locations'     => $linked_locations,
520f5fd22fSGreg Roach            'linked_media_objects' => $linked_media_objects,
530f5fd22fSGreg Roach            'linked_notes'         => $linked_notes,
544991f205SGreg Roach            'linked_repositories'  => $linked_repositories,
550f5fd22fSGreg Roach            'linked_sources'       => $linked_sources,
565962a3c2SGreg Roach            'linked_submitters'    => $linked_submitters,
570f5fd22fSGreg Roach            'tree'                 => $tree,
580f5fd22fSGreg Roach        ]) ?>
590f5fd22fSGreg Roach    <?php else : ?>
600f5fd22fSGreg Roach        <?= view('record-page-details', ['clipboard_facts' => $clipboard_facts, 'record' => $record]) ?>
610f5fd22fSGreg Roach    <?php endif ?>
620f5fd22fSGreg Roach</div>
630f5fd22fSGreg Roach
640f5fd22fSGreg Roach<?= view('modals/ajax') ?>
65