xref: /webtrees/resources/views/record-page.phtml (revision 4991f2057a6647447a648c5d6743dab00378e98e)
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;
7*4991f205SGreg Roachuse Fisharebest\Webtrees\Location;
80f5fd22fSGreg Roachuse Fisharebest\Webtrees\Media;
90f5fd22fSGreg Roachuse Fisharebest\Webtrees\Note;
10*4991f205SGreg Roachuse Fisharebest\Webtrees\Repository;
110f5fd22fSGreg Roachuse Fisharebest\Webtrees\Source;
120f5fd22fSGreg Roachuse Fisharebest\Webtrees\Tree;
130f5fd22fSGreg Roachuse Illuminate\Support\Collection;
140f5fd22fSGreg Roach
150f5fd22fSGreg Roach/**
16c0ad9daaSGreg Roach * @var Collection<int,Fact>|null       $clipboard_facts
17c0ad9daaSGreg Roach * @var Collection<int,Family>|null     $linked_families
18c0ad9daaSGreg Roach * @var Collection<int,Individual>|null $linked_individuals
19*4991f205SGreg Roach * @var Collection<int,Location>|null   $linked_locations
20c0ad9daaSGreg Roach * @var Collection<int,Media>|null      $linked_media_objects
21c0ad9daaSGreg Roach * @var Collection<int,Note>|null       $linked_notes
22*4991f205SGreg Roach * @var Collection<int,Repository>|null $linked_repositories
23c0ad9daaSGreg Roach * @var Collection<int,Source>|null     $linked_sources
240f5fd22fSGreg Roach * @var GedcomRecord                    $record
250f5fd22fSGreg Roach * @var Tree                            $tree
260f5fd22fSGreg Roach */
270f5fd22fSGreg Roach
280f5fd22fSGreg Roach?>
290f5fd22fSGreg Roach
300f5fd22fSGreg Roach<?= view('record-page-pending', ['record' => $record]) ?>
310f5fd22fSGreg Roach
320f5fd22fSGreg Roach<div class="d-flex mb-4">
330f5fd22fSGreg Roach    <h2 class="wt-page-title mx-auto">
340f5fd22fSGreg Roach        <?= $record->fullName() ?>
350f5fd22fSGreg Roach    </h2>
360f5fd22fSGreg Roach    <?php if ($record->canEdit()) : ?>
370f5fd22fSGreg Roach        <?= view('record-page-menu', ['clipboard_facts' => $clipboard_facts, 'record' => $record]) ?>
380f5fd22fSGreg Roach    <?php endif ?>
390f5fd22fSGreg Roach</div>
400f5fd22fSGreg Roach
410f5fd22fSGreg Roach<div class="wt-page-content">
42*4991f205SGreg 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) : ?>
430f5fd22fSGreg Roach        <?= view('record-page-links', [
440f5fd22fSGreg Roach            'details'              => view('record-page-details', ['record' => $record]),
450f5fd22fSGreg Roach            'linked_families'      => $linked_families,
460f5fd22fSGreg Roach            'linked_individuals'   => $linked_individuals,
47*4991f205SGreg Roach            'linked_locations'     => $linked_locations,
480f5fd22fSGreg Roach            'linked_media_objects' => $linked_media_objects,
490f5fd22fSGreg Roach            'linked_notes'         => $linked_notes,
50*4991f205SGreg Roach            'linked_repositories'  => $linked_repositories,
510f5fd22fSGreg Roach            'linked_sources'       => $linked_sources,
520f5fd22fSGreg Roach            'tree'                 => $tree,
530f5fd22fSGreg Roach        ]) ?>
540f5fd22fSGreg Roach    <?php else : ?>
550f5fd22fSGreg Roach        <?= view('record-page-details', ['clipboard_facts' => $clipboard_facts, 'record' => $record]) ?>
560f5fd22fSGreg Roach    <?php endif ?>
570f5fd22fSGreg Roach</div>
580f5fd22fSGreg Roach
590f5fd22fSGreg Roach<?= view('modals/ajax') ?>
60