xref: /webtrees/resources/views/note-page.phtml (revision 4991f2057a6647447a648c5d6743dab00378e98e)
1d70512abSGreg Roach<?php
2d70512abSGreg Roach
3f81a37eeSGreg Roachuse Fisharebest\Webtrees\Fact;
4f81a37eeSGreg Roachuse Fisharebest\Webtrees\Family;
5f81a37eeSGreg Roachuse Fisharebest\Webtrees\Individual;
6*4991f205SGreg Roachuse Fisharebest\Webtrees\Location;
7f81a37eeSGreg Roachuse Fisharebest\Webtrees\Media;
802467d32SGreg Roachuse Fisharebest\Webtrees\Note;
9*4991f205SGreg Roachuse Fisharebest\Webtrees\Repository;
10f81a37eeSGreg Roachuse Fisharebest\Webtrees\Source;
11*4991f205SGreg Roachuse Fisharebest\Webtrees\Submitter;
12f81a37eeSGreg Roachuse Fisharebest\Webtrees\Tree;
13f81a37eeSGreg Roachuse Illuminate\Support\Collection;
14f81a37eeSGreg Roach
15f81a37eeSGreg Roach/**
160f5fd22fSGreg Roach * @var Note                       $record
1736779af1SGreg Roach * @var Collection<int,Fact>       $clipboard_facts
1836779af1SGreg Roach * @var Collection<int,Family>     $linked_families
1936779af1SGreg Roach * @var Collection<int,Individual> $linked_individuals
20*4991f205SGreg Roach * @var Collection<int,Location>   $linked_locations
2136779af1SGreg Roach * @var Collection<int,Media>      $linked_media_objects
22*4991f205SGreg Roach * @var Collection<int,Repository> $linked_repositories
2336779af1SGreg Roach * @var Collection<int,Source>     $linked_sources
24*4991f205SGreg Roach * @var Collection<int,Submitter>  $linked_submitters
25f81a37eeSGreg Roach * @var Tree                       $tree
26f81a37eeSGreg Roach */
27d70512abSGreg Roach
28d70512abSGreg Roach?>
29dd6b2bfcSGreg Roach
300f5fd22fSGreg Roach<?= view('note-page-pending', ['record' => $record]) ?>
31dd6b2bfcSGreg Roach
32dd6b2bfcSGreg Roach<div class="d-flex mb-4">
33dd6b2bfcSGreg Roach    <h2 class="wt-page-title mx-auto">
340f5fd22fSGreg Roach        <?= $record->fullName() ?>
35dd6b2bfcSGreg Roach    </h2>
360f5fd22fSGreg Roach    <?php if ($record->canEdit()) : ?>
370f5fd22fSGreg Roach        <?= view('record-page-menu', ['clipboard_facts' => $clipboard_facts, 'record' => $record]) ?>
38dd6b2bfcSGreg Roach    <?php endif ?>
39dd6b2bfcSGreg Roach</div>
40dd6b2bfcSGreg Roach
41dd6b2bfcSGreg Roach<div class="wt-page-content">
420f5fd22fSGreg Roach    <?= view('record-page-links', [
430f5fd22fSGreg Roach        'details'              => view('note-page-details', ['clipboard_facts' => $clipboard_facts, 'record' => $record]),
440f5fd22fSGreg Roach        'linked_families'      => $linked_families,
450f5fd22fSGreg Roach        'linked_individuals'   => $linked_individuals,
46*4991f205SGreg Roach        'linked_locations'     => $linked_locations,
470f5fd22fSGreg Roach        'linked_media_objects' => $linked_media_objects,
480f5fd22fSGreg Roach        'linked_notes'         => null,
49*4991f205SGreg Roach        'linked_repositories'  => $linked_repositories,
500f5fd22fSGreg Roach        'linked_sources'       => $linked_sources,
51*4991f205SGreg Roach        'linked_submitters'    => $linked_submitters,
520f5fd22fSGreg Roach        'tree'                 => $tree,
530f5fd22fSGreg Roach    ]) ?>
54dd6b2bfcSGreg Roach</div>
55dd6b2bfcSGreg Roach
56dd6b2bfcSGreg Roach<?= view('modals/ajax') ?>
57