1e12592bcSGreg Roach<?php 2e12592bcSGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 5c2b61a20SGreg Roachuse Fisharebest\Webtrees\Auth; 6e12592bcSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserListPage; 7e12592bcSGreg Roachuse Fisharebest\Webtrees\Individual; 8e12592bcSGreg Roachuse Fisharebest\Webtrees\User; 9e12592bcSGreg Roachuse Illuminate\Support\Collection; 10e12592bcSGreg Roach 11e12592bcSGreg Roach/** 12e12592bcSGreg Roach * @var string $age 13e12592bcSGreg Roach * @var Individual $record 1436779af1SGreg Roach * @var Collection<int,User> $users 15e12592bcSGreg Roach */ 16e12592bcSGreg Roach?> 17e12592bcSGreg Roach 182cf5a6a9SGreg Roach<?php if ($record->getBirthDate()->isOK() || $record->getDeathDate()->isOK()) : ?> 1917759669SGreg Roach <?= $record->fullName() ?>, <?= $record->lifespan() ?> 2017759669SGreg Roach<?php else : ?> 2117759669SGreg Roach <?= $record->fullName() ?> 222cf5a6a9SGreg Roach<?php endif ?></?> 232cf5a6a9SGreg Roach<?= $age ?> 24c2b61a20SGreg Roach<?php if (Auth::isAdmin()) : ?> 25e12592bcSGreg Roach <?php foreach ($users as $user) : ?> 26e12592bcSGreg Roach — <a href="<?= e(route(UserListPage::class, ['filter' => $user->email()])) ?>"> 27e12592bcSGreg Roach <?= e($user->userName()) ?> 28e12592bcSGreg Roach </a> 29e12592bcSGreg Roach <?php endforeach ?> 30c2b61a20SGreg Roach<?php endif ?> 31