xref: /webtrees/resources/views/individual-page.phtml (revision 77c72ee5b2feabccd404f30f83ff89f5637dd0e0)
1<?php
2
3use Fisharebest\Webtrees\Fact;
4use Fisharebest\Webtrees\I18N;
5use Fisharebest\Webtrees\Individual;
6use Fisharebest\Webtrees\Media;
7use Fisharebest\Webtrees\Module\ModuleSidebarInterface;
8use Fisharebest\Webtrees\Module\ModuleTabInterface;
9use Fisharebest\Webtrees\Tree;
10use Illuminate\Support\Collection;
11
12/**
13 * @var string                             $age
14 * @var Collection<Fact>                   $clipboard_facts
15 * @var Collection<Media>                  $individual_media
16 * @var Individual                         $record
17 * @var Collection<string>                 $shares
18 * @var Collection<ModuleSidebarInterface> $sidebars
19 * @var Collection<ModuleTabInterface>     $tabs
20 * @var Tree                               $tree
21 * @var string                             $user_link
22 */
23?>
24
25<?= view('individual-page-pending', ['record' => $record]) ?>
26
27<div class="d-flex mb-4">
28    <h2 class="wt-page-title mx-auto">
29        <?= $record->fullName() ?><?= $user_link ?>, <?= $record->lifespan() ?> <?= $age ?>
30    </h2>
31
32    <?php if ($record->canEdit()) : ?>
33        <?= view('individual-page-menu', ['clipboard_facts' => $clipboard_facts, 'record' => $record, 'shares' => $shares]) ?>
34    <?php endif ?>
35</div>
36
37<div class="row">
38    <div class="col">
39        <div class="row mb-4">
40            <?= view('individual-page-images', ['individual_media' => $individual_media, 'record' => $record, 'tree' => $tree]) ?>
41
42            <?= view('individual-page-names', ['record' => $record]) ?>
43        </div>
44
45        <?= view('individual-page-tabs', ['record' => $record, 'tabs' => $tabs]) ?>
46    </div>
47
48    <?php if ($sidebars->isNotEmpty()) : ?>
49        <?= view('individual-page-sidebars', ['record' => $record, 'sidebars' => $sidebars]) ?>
50    <?php endif ?>
51</div>
52
53<?= view('modals/ajax') ?>
54<?= view('modals/shares', ['shares' => $shares, 'title' => I18N::translate('Share') . ' — ' . $record->fullName()]) ?>
55