@php $avatarData = getUserAvatarDetails($user->first_name, $user->last_name); $roleLabel = $user->role?->title() ?? '--'; $statusLabel = $user->status?->label() ?? '--'; $registeredAt = optional($user->created_at)->format('M d, Y'); @endphp
{{ __('Back to Users') }}
@if($user->avatar) {{ $user->name }} @else {{ $avatarData['initials'] }} @endif

{{ $user->first_name . ' ' . $user->last_name }}

{{ $user->username }} @if($user->email) {{ maskSensitive($user->email) }} @endif @if($user->country) {{ $user->country }} @endif
{{ $roleLabel }} {{ $statusLabel }} @if($registeredAt) {{ __('Joined :date', ['date' => $registeredAt]) }} @endif
@can('custom-notify-users') @endcan @can('user-balance-manage') @endcan @can('user-login-as') {{-- target="_blank" is only added when demo mode is off. In demo mode the DemoMode middleware short-circuits this route with a notifyEvs() toast — that toast lives in the session flash of the request that hit the route, so it must redirect back into the SAME tab the admin is looking at, otherwise the toast renders in a brand new tab the admin never sees. --}} @endcan @can('user-manage') @if($user->isUser()) @endif @endcan @can('user-delete') @endcan