xref: /webtrees/resources/views/individual-page-title.phtml (revision 27021e098ccbe20b6939efbf1d038db302b35d0f)
1<?php
2
3use Fisharebest\Webtrees\Http\RequestHandlers\UserListPage;
4use Fisharebest\Webtrees\Individual;
5use Fisharebest\Webtrees\User;
6use Illuminate\Support\Collection;
7
8/**
9 * @var string               $age
10 * @var Individual           $record
11 * @var Collection<int,User> $users
12 */
13?>
14
15<?php if ($record->getBirthDate()->isOK() || $record->getDeathDate()->isOK()) : ?>
16    <?= $record->fullName() ?>, <?= $record->lifespan() ?>
17<?php else: ?>
18    <?= $record->fullName() ?>
19<?php endif ?></?>
20<?= $age ?>
21<?php foreach ($users as $user) : ?>
22    — <a href="<?= e(route(UserListPage::class, ['filter' => $user->email()])) ?>">
23        <?= e($user->userName()) ?>
24    </a>
25<?php endforeach ?>