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 <?= $record->fullName() ?>, <?= $record->lifespan() ?> <?= $age ?> 33 <?php foreach ($users as $user) : ?> 34 — <a href="<?= e(route(UserListPage::class, ['filter' => $user->email()])) ?>"> 35 <?= e($user->userName()) ?> 36 </a> 37 <?php endforeach ?> 38 </h2> 39 40 <?php if ($record->canEdit()) : ?> 41 <?= view('individual-page-menu', ['can_upload_media' => $can_upload_media, 'clipboard_facts' => $clipboard_facts, 'record' => $record, 'shares' => $shares]) ?> 42 <?php endif ?> 43</div> 44 45<div class="row"> 46 <div class="col"> 47 <div class="row mb-4"> 48 <?= view('individual-page-images', ['can_upload_media' => $can_upload_media, 'individual_media' => $individual_media, 'record' => $record, 'tree' => $tree]) ?> 49 50 <?= view('individual-page-names', ['record' => $record]) ?> 51 </div> 52 53 <?= view('individual-page-tabs', ['record' => $record, 'tabs' => $tabs]) ?> 54 </div> 55 56 <?php if ($sidebars->isNotEmpty()) : ?> 57 <?= view('individual-page-sidebars', ['record' => $record, 'sidebars' => $sidebars]) ?> 58 <?php endif ?> 59</div> 60 61<?= view('modals/ajax') ?> 62<?= view('modals/shares', ['shares' => $shares, 'title' => I18N::translate('Share') . ' — ' . $record->fullName()]) ?> 63