User Account Details

Review roles, security status, login history and linked member information.

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @php $statusClass = match ($user->account_status_label) { 'Active' => 'bg-green-100 text-green-700', 'Suspended' => 'bg-yellow-100 text-yellow-700', 'Disabled' => 'bg-red-100 text-red-700', 'Locked' => 'bg-purple-100 text-purple-700', default => 'bg-slate-100 text-slate-700', }; $isOnline = $user->last_activity_at && $user->last_activity_at->greaterThanOrEqualTo( now()->subMinutes(5) ); @endphp
← Back to Users
Edit User @if($user->isLocked())
@csrf @method('PATCH')
@endif
@csrf @method('PATCH')
@if(auth()->id() !== $user->id)
@csrf @method('DELETE')
@endif

Account Status

{{ $user->account_status_label }}

Roles

{{ number_format($user->roles->count()) }}

Failed Logins

{{ number_format($user->failed_login_attempts ?? 0) }}

Last Login

{{ $user->last_login_at ? $user->last_login_at->diffForHumans() : 'Never' }}

Current Activity

{{ $isOnline ? 'Online' : 'Offline' }}

Account Information

{{ strtoupper(substr($user->name, 0, 1)) }}

{{ $user->name }}

{{ $user->email }}

@forelse($user->roles as $role) {{ ucwords( str_replace( ['-', '_'], ' ', $role->name ) ) }} @empty No role assigned @endforelse
User ID
#{{ $user->id }}
Account Status
{{ $user->status }}
Email Verified
{{ $user->email_verified_at ? $user->email_verified_at->format('d M Y, h:i A') : 'Not verified' }}
Password Change Required
{{ $user->must_change_password ? 'Yes' : 'No' }}
Account Created
{{ $user->created_at?->format('d M Y, h:i A') }}
Last Updated
{{ $user->updated_at?->format('d M Y, h:i A') }}

Security Information

Last Successful Login

{{ $user->last_login_at ? $user->last_login_at->format('d M Y, h:i A') : 'Never logged in' }}

Last Login IP

{{ $user->last_login_ip ?: 'Not recorded' }}

Last Activity

{{ $user->last_activity_at ? $user->last_activity_at->format('d M Y, h:i A') : 'No activity recorded' }}

Password Last Changed

{{ $user->password_changed_at ? $user->password_changed_at->format('d M Y, h:i A') : 'Not recorded' }}

Failed Login Attempts

Account Lock

@if($user->isLocked()) Locked until {{ $user->locked_until->format('d M Y, h:i A') }} @else Account is not locked @endif

Recent Account Activity

Recent audit records connected to this user.

@forelse($activityLogs as $activityLog) @php $eventClass = match ($activityLog->event) { 'login' => 'bg-green-100 text-green-700', 'logout' => 'bg-slate-200 text-slate-700', 'login_failed' => 'bg-red-100 text-red-700', 'password_reset', 'password_changed' => 'bg-purple-100 text-purple-700', 'account_unlocked' => 'bg-yellow-100 text-yellow-700', 'created' => 'bg-green-100 text-green-700', 'updated' => 'bg-blue-100 text-blue-700', 'deleted' => 'bg-red-100 text-red-700', default => 'bg-cyan-100 text-cyan-700', }; @endphp
{{ ucwords( str_replace( '_', ' ', $activityLog->event ) ) }} {{ $activityLog->created_at?->diffForHumans() }}

{{ $activityLog->description }}

{{ $activityLog->created_at?->format('d M Y, h:i A') }} IP: {{ $activityLog->ip_address ?: 'Unknown' }}
View Log
@empty
No account activity has been recorded.
@endforelse

Assigned Roles

@forelse($user->roles as $role)

{{ ucwords( str_replace( ['-', '_'], ' ', $role->name ) ) }}

{{ $role->permissions->count() }} permission(s)

@empty

No roles assigned.

@endforelse

Created By

Administrator

{{ $user->creator?->name ?: 'System' }}

Created Date

{{ $user->created_at?->format('d M Y, h:i A') }}

Account Security

Password resets generate a temporary password and require the user to create a new secure password at the next login.