xref: /webtrees/resources/views/note-page.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
1d70512abSGreg Roach<?php
2d70512abSGreg Roach
3*10e06497SGreg Roachdeclare(strict_types=1);
4*10e06497SGreg Roach
5f81a37eeSGreg Roachuse Fisharebest\Webtrees\Fact;
6f81a37eeSGreg Roachuse Fisharebest\Webtrees\Family;
7f81a37eeSGreg Roachuse Fisharebest\Webtrees\Individual;
84991f205SGreg Roachuse Fisharebest\Webtrees\Location;
9f81a37eeSGreg Roachuse Fisharebest\Webtrees\Media;
1002467d32SGreg Roachuse Fisharebest\Webtrees\Note;
114991f205SGreg Roachuse Fisharebest\Webtrees\Repository;
12f81a37eeSGreg Roachuse Fisharebest\Webtrees\Source;
134991f205SGreg Roachuse Fisharebest\Webtrees\Submitter;
14f81a37eeSGreg Roachuse Fisharebest\Webtrees\Tree;
15f81a37eeSGreg Roachuse Illuminate\Support\Collection;
16f81a37eeSGreg Roach
17f81a37eeSGreg Roach/**
180f5fd22fSGreg Roach * @var Note                       $record
1936779af1SGreg Roach * @var Collection<int,Fact>       $clipboard_facts
2036779af1SGreg Roach * @var Collection<int,Family>     $linked_families
2136779af1SGreg Roach * @var Collection<int,Individual> $linked_individuals
224991f205SGreg Roach * @var Collection<int,Location>   $linked_locations
2336779af1SGreg Roach * @var Collection<int,Media>      $linked_media_objects
244991f205SGreg Roach * @var Collection<int,Repository> $linked_repositories
2536779af1SGreg Roach * @var Collection<int,Source>     $linked_sources
264991f205SGreg Roach * @var Collection<int,Submitter>  $linked_submitters
27f81a37eeSGreg Roach * @var Tree                       $tree
28f81a37eeSGreg Roach */
29d70512abSGreg Roach
30d70512abSGreg Roach?>
31dd6b2bfcSGreg Roach
320f5fd22fSGreg Roach<?= view('note-page-pending', ['record' => $record]) ?>
33dd6b2bfcSGreg Roach
34dd6b2bfcSGreg Roach<div class="d-flex mb-4">
35dd6b2bfcSGreg Roach    <h2 class="wt-page-title mx-auto">
360f5fd22fSGreg Roach        <?= $record->fullName() ?>
37dd6b2bfcSGreg Roach    </h2>
380f5fd22fSGreg Roach    <?php if ($record->canEdit()) : ?>
390f5fd22fSGreg Roach        <?= view('record-page-menu', ['clipboard_facts' => $clipboard_facts, 'record' => $record]) ?>
40dd6b2bfcSGreg Roach    <?php endif ?>
41dd6b2bfcSGreg Roach</div>
42dd6b2bfcSGreg Roach
43dd6b2bfcSGreg Roach<div class="wt-page-content">
440f5fd22fSGreg Roach    <?= view('record-page-links', [
450f5fd22fSGreg Roach        'details'              => view('note-page-details', ['clipboard_facts' => $clipboard_facts, 'record' => $record]),
460f5fd22fSGreg Roach        'linked_families'      => $linked_families,
470f5fd22fSGreg Roach        'linked_individuals'   => $linked_individuals,
484991f205SGreg Roach        'linked_locations'     => $linked_locations,
490f5fd22fSGreg Roach        'linked_media_objects' => $linked_media_objects,
500f5fd22fSGreg Roach        'linked_notes'         => null,
514991f205SGreg Roach        'linked_repositories'  => $linked_repositories,
520f5fd22fSGreg Roach        'linked_sources'       => $linked_sources,
534991f205SGreg Roach        'linked_submitters'    => $linked_submitters,
540f5fd22fSGreg Roach        'tree'                 => $tree,
550f5fd22fSGreg Roach    ]) ?>
56dd6b2bfcSGreg Roach</div>
57dd6b2bfcSGreg Roach
58dd6b2bfcSGreg Roach<?= view('modals/ajax') ?>
59