xref: /webtrees/resources/views/individual-page-title.phtml (revision c2b61a20d53f73898b0e4563ed7c60af2d060bbf)
1e12592bcSGreg Roach<?php
2e12592bcSGreg Roach
3*c2b61a20SGreg Roachuse Fisharebest\Webtrees\Auth;
4e12592bcSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserListPage;
5e12592bcSGreg Roachuse Fisharebest\Webtrees\Individual;
6e12592bcSGreg Roachuse Fisharebest\Webtrees\User;
7e12592bcSGreg Roachuse Illuminate\Support\Collection;
8e12592bcSGreg Roach
9e12592bcSGreg Roach/**
10e12592bcSGreg Roach * @var string               $age
11e12592bcSGreg Roach * @var Individual           $record
1236779af1SGreg Roach * @var Collection<int,User> $users
13e12592bcSGreg Roach */
14e12592bcSGreg Roach?>
15e12592bcSGreg Roach
162cf5a6a9SGreg Roach<?php if ($record->getBirthDate()->isOK() || $record->getDeathDate()->isOK()) : ?>
1717759669SGreg Roach    <?= $record->fullName() ?>, <?= $record->lifespan() ?>
1817759669SGreg Roach<?php else: ?>
1917759669SGreg Roach    <?= $record->fullName() ?>
202cf5a6a9SGreg Roach<?php endif ?></?>
212cf5a6a9SGreg Roach<?= $age ?>
22*c2b61a20SGreg Roach<?php if (Auth::isAdmin()) : ?>
23e12592bcSGreg Roach    <?php foreach ($users as $user) : ?>
24e12592bcSGreg Roach        — <a href="<?= e(route(UserListPage::class, ['filter' => $user->email()])) ?>">
25e12592bcSGreg Roach            <?= e($user->userName()) ?>
26e12592bcSGreg Roach        </a>
27e12592bcSGreg Roach    <?php endforeach ?>
28*c2b61a20SGreg Roach<?php endif ?>
29