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