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