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