xref: /webtrees/resources/views/individual-page-title.phtml (revision 6172e7f6cb6d9b42e9feef9b728f7561b0d70dc9)
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<?= $record->fullName() ?>,
16<?php if ($record->getBirthDate()->isOK() || $record->getDeathDate()->isOK()) : ?>
17    <?= $record->lifespan() ?>
18<?php endif ?></?>
19<?= $age ?>
20<?php foreach ($users as $user) : ?>
21    — <a href="<?= e(route(UserListPage::class, ['filter' => $user->email()])) ?>">
22        <?= e($user->userName()) ?>
23    </a>
24<?php endforeach ?>