format($format); } catch (\Exception $e) { $hireDateLabel = $hireDate; } } $avatarUuid = (string) ($values['uuid'] ?? ''); $hasAvatar = $avatarUuid !== '' && UserAvatarService::hasAvatar($avatarUuid); $initials = ''; if ($displayName !== '') { $parts = array_filter(array_map('trim', preg_split('/\s+/', $displayName) ?: [])); $chars = ''; foreach ($parts as $part) { if (function_exists('mb_substr')) { $chars .= mb_substr($part, 0, 1); } else { $chars .= substr($part, 0, 1); } } $initials = strtoupper($chars !== '' ? $chars : '?'); } $tenantGroups = $values['tenant_groups'] ?? []; $roleLabels = $values['role_labels'] ?? []; $hasContact = ($email !== '' || $phone !== '' || $mobile !== '' || $shortDial !== ''); $hasAddress = ($address !== '' || $postalCode !== '' || $city !== '' || $region !== '' || $country !== ''); $hasOrganization = (!empty($tenantGroups) || !empty($roleLabels)); $aboutSummary = ''; if ($profileDescription !== '') { foreach (preg_split('/\\r\\n|\\r|\\n/', $profileDescription) as $line) { $line = trim((string) $line); if ($line !== '') { $aboutSummary = $line; break; } } } ?>

() -

-

-