xref: /webtrees/resources/views/individual-page-title.phtml (revision b9e8cdd7b6bc9db49e42ee7159f4eade938a5c32)
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 ?>