xref: /webtrees/resources/views/individual-page-title.phtml (revision 1775966933a2136aed0d5aad3e184770b632c436)
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
152cf5a6a9SGreg Roach<?php if ($record->getBirthDate()->isOK() || $record->getDeathDate()->isOK()) : ?>
16*17759669SGreg Roach    <?= $record->fullName() ?>, <?= $record->lifespan() ?>
17*17759669SGreg Roach<?php else: ?>
18*17759669SGreg Roach    <?= $record->fullName() ?>
192cf5a6a9SGreg Roach<?php endif ?></?>
202cf5a6a9SGreg Roach<?= $age ?>
21e12592bcSGreg Roach<?php foreach ($users as $user) : ?>
22e12592bcSGreg Roach    — <a href="<?= e(route(UserListPage::class, ['filter' => $user->email()])) ?>">
23e12592bcSGreg Roach        <?= e($user->userName()) ?>
24e12592bcSGreg Roach    </a>
25e12592bcSGreg Roach<?php endforeach ?>