xref: /webtrees/resources/views/individual-page.phtml (revision 0ea4a3f27557abd0fc7491da72d684de4d58648b)
12c3dad18SGreg Roach<?php
2852ede8cSGreg Roach
3dc270d8cSGreg Roachuse Fisharebest\Webtrees\Fact;
4828e3b20SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserListPage;
52c3dad18SGreg Roachuse Fisharebest\Webtrees\I18N;
62c3dad18SGreg Roachuse Fisharebest\Webtrees\Individual;
7dc270d8cSGreg Roachuse Fisharebest\Webtrees\Media;
8dc270d8cSGreg Roachuse Fisharebest\Webtrees\Module\ModuleSidebarInterface;
9dc270d8cSGreg Roachuse Fisharebest\Webtrees\Module\ModuleTabInterface;
10054771e9SGreg Roachuse Fisharebest\Webtrees\Tree;
11828e3b20SGreg Roachuse Fisharebest\Webtrees\User;
122c3dad18SGreg Roachuse Illuminate\Support\Collection;
132c3dad18SGreg Roach
142c3dad18SGreg Roach/**
15054771e9SGreg Roach * @var string                             $age
16*0ea4a3f2SGreg Roach * @var bool                               $can_upload_media
170f5fd22fSGreg Roach * @var Collection<Fact>                   $clipboard_facts
18dc270d8cSGreg Roach * @var Collection<Media>                  $individual_media
190f5fd22fSGreg Roach * @var Individual                         $record
20853f2b8aSGreg Roach * @var Collection<string>                 $shares
210f5fd22fSGreg Roach * @var Collection<ModuleSidebarInterface> $sidebars
227c2c99faSGreg Roach * @var Collection<ModuleTabInterface>     $tabs
23054771e9SGreg Roach * @var Tree                               $tree
24828e3b20SGreg Roach * @var Collection<User>                   $users
252c3dad18SGreg Roach */
262c3dad18SGreg Roach?>
27dd6b2bfcSGreg Roach
280f5fd22fSGreg Roach<?= view('individual-page-pending', ['record' => $record]) ?>
29dd6b2bfcSGreg Roach
30dd6b2bfcSGreg Roach<div class="d-flex mb-4">
31dd6b2bfcSGreg Roach    <h2 class="wt-page-title mx-auto">
32828e3b20SGreg Roach        <?= $record->fullName() ?>, <?= $record->lifespan() ?> <?= $age ?>
33828e3b20SGreg Roach        <?php foreach ($users as $user) : ?>
34828e3b20SGreg Roach            — <a href="<?= e(route(UserListPage::class, ['filter' => $user->email()])) ?>">
35828e3b20SGreg Roach                <?= e($user->userName()) ?>
36828e3b20SGreg Roach            </a>
37828e3b20SGreg Roach        <?php endforeach ?>
38dd6b2bfcSGreg Roach    </h2>
390f5fd22fSGreg Roach
400f5fd22fSGreg Roach    <?php if ($record->canEdit()) : ?>
41*0ea4a3f2SGreg Roach        <?= view('individual-page-menu', ['can_upload_media' => $can_upload_media, 'clipboard_facts' => $clipboard_facts, 'record' => $record, 'shares' => $shares]) ?>
42dd6b2bfcSGreg Roach    <?php endif ?>
43dd6b2bfcSGreg Roach</div>
44dd6b2bfcSGreg Roach
45dd6b2bfcSGreg Roach<div class="row">
460f5fd22fSGreg Roach    <div class="col">
47dd6b2bfcSGreg Roach        <div class="row mb-4">
48*0ea4a3f2SGreg Roach            <?= view('individual-page-images', ['can_upload_media' => $can_upload_media, 'individual_media' => $individual_media, 'record' => $record, 'tree' => $tree]) ?>
49dd6b2bfcSGreg Roach
50a53fba7eSGreg Roach            <?= view('individual-page-names', ['record' => $record]) ?>
51dd6b2bfcSGreg Roach        </div>
52dd6b2bfcSGreg Roach
530f5fd22fSGreg Roach        <?= view('individual-page-tabs', ['record' => $record, 'tabs' => $tabs]) ?>
540f5fd22fSGreg Roach    </div>
556a4003b9SGreg Roach
56c72fc94cSGreg Roach    <?php if ($sidebars->isNotEmpty()) : ?>
570f5fd22fSGreg Roach        <?= view('individual-page-sidebars', ['record' => $record, 'sidebars' => $sidebars]) ?>
58c72fc94cSGreg Roach    <?php endif ?>
59dd6b2bfcSGreg Roach</div>
60dd6b2bfcSGreg Roach
61dd6b2bfcSGreg Roach<?= view('modals/ajax') ?>
620f5fd22fSGreg Roach<?= view('modals/shares', ['shares' => $shares, 'title' => I18N::translate('Share') . ' — ' . $record->fullName()]) ?>
63