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