@php $roles = $user->getSortedRoles(); $primaryRole = $user->getPrimaryRole(); $roleColor = $primaryRole?->color ?? '#8e8e8e'; $socialNetworks = $user->socialNetworks; $unhiddenSocialNetworks = []; foreach ($socialNetworks as $network) { if (((bool) $network->hidden !== true || user()->can('admin.users') || user()->can('admin.users.view')) && !empty($network->url)) { $unhiddenSocialNetworks[] = $network; } } @endphp
{{ $user->name }}
{{ $user->name }}

{!! $user->getDisplayName(withColor: false) !!}

@if ($user->approved) @elseif (user()->can('admin.boss')) @endif
{{ $user->isOnline() ? __('def.online') : $user->getLastLoggedPhrase() }}
@if (count($roles) > 0) @php $maxVisible = 5; $visibleRoles = array_slice($roles, 0, $maxVisible); @endphp
@foreach ($visibleRoles as $role) @endforeach @if (count($roles) > $maxVisible) +{{ count($roles) - $maxVisible }}
    @for ($i = $maxVisible; $i < count($roles); $i++) @php $role = $roles[$i]; @endphp
  • {{ $role->name }}
  • @endfor
@endif
@endif @if (isset($sections['user-card'])) {!! $sections['user-card'] !!} @endif
@if (sizeof($unhiddenSocialNetworks) > 0)
@foreach ($unhiddenSocialNetworks as $network) @endforeach
@endif {{ __('profile.view') }}