@if ($showNotification)
@if($notificationType === 'success') @elseif($notificationType === 'error') @else @endif

{{ $notificationMessage }}

@endif @if($showChangesSummary)

Unsaved Changes

You have {{ count($changesSummary) }} unsaved change{{ count($changesSummary) > 1 ? 's' : '' }}:

    @foreach($changesSummary as $field => $change)
  • {{ $change['label'] }}: @if($field === 'permissions') Permissions updated @elseif($field === 'role') {{ ucfirst($change['from']) }} → {{ ucfirst($change['to']) }} @elseif($field === 'status') {{ ucfirst($change['from']) }} → {{ ucfirst($change['to']) }} @else @if(empty($change['from'])) Added: "{{ $change['to'] }}" @elseif(empty($change['to'])) Removed: "{{ $change['from'] }}" @else "{{ $change['from'] }}" → "{{ $change['to'] }}" @endif @endif
  • @endforeach
@endif

Edit User: {{ $user->name }}

{{ ucfirst($user->status) }} {{ ucfirst($user->role) }}

Update user information and permissions @if($showChangesSummary) • {{ count($changesSummary) }} unsaved change{{ count($changesSummary) > 1 ? 's' : '' }} @endif

@if($isUpdating)
Updating...
@endif
@if($user->id === auth()->id())

Note: You are editing your own account. Some restrictions apply to prevent self-lockout.

@endif

Basic Information

@error('name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
@error('phone')

{{ $message }}

@enderror
@error('department')

{{ $message }}

@enderror
@error('job_title')

{{ $message }}

@enderror

Security

Leave password fields empty to keep the current password

@error('password')

{{ $message }}

@enderror @if(!empty($password))

✓ New password entered ({{ strlen($password) }} characters)

Strength: @php $strength = 0; $strengthLabel = 'Weak'; $strengthColor = 'bg-red-500'; if (strlen($password) >= 8) $strength++; if (preg_match('/[A-Z]/', $password)) $strength++; if (preg_match('/[a-z]/', $password)) $strength++; if (preg_match('/[0-9]/', $password)) $strength++; if (preg_match('/[^A-Za-z0-9]/', $password)) $strength++; if ($strength >= 4) { $strengthLabel = 'Strong'; $strengthColor = 'bg-green-500'; } elseif ($strength >= 3) { $strengthLabel = 'Medium'; $strengthColor = 'bg-yellow-500'; } @endphp
{{ $strengthLabel }}
Requirements: 8+ chars, uppercase, lowercase, number, special character
@endif
@error('password_confirmation')

{{ $message }}

@enderror @if(!empty($password_confirmation))

{{ $password === $password_confirmation ? '✓ Passwords match' : '✗ Passwords do not match' }}

@endif

Role & Permissions

@error('role')

{{ $message }}

@enderror @if($user->id === auth()->id())

You cannot change your own role.

@elseif($role === 'external')

External users will have access to the future KYC system.

@elseif($role === 'lawyer')

Lawyers can review conflict of interest notifications.

@endif
@if($role === 'lawyer')
@error('lawyer_level')

{{ $message }}

@enderror

Senior: Can manage KYC, approve conflicts. Associate: Can read clients/proposals, manage KYC. Trainee: Can only review conflicts.

@endif
@error('status')

{{ $message }}

@enderror @if($user->id === auth()->id())

You cannot deactivate yourself.

@endif
@if($role !== 'admin' && $role !== 'lawyer')
@foreach($availablePermissions as $permission => $label)
@endforeach
@if($role === 'external')

External users have limited access to internal CRM features.

@endif @error('permissions')

{{ $message }}

@enderror
@elseif($role === 'admin')

Administrator Role: This user has full access to all system features and can manage other users.

@elseif($role === 'lawyer')

Lawyer Role: This user can review conflict of interest notifications and provide legal assessments.

@endif

Additional Information

@error('notes')

{{ $message }}

@enderror

Account Information

Account Created
{{ $user->created_at->format('M j, Y g:i A') }}
Last Updated
{{ $user->updated_at->format('M j, Y g:i A') }}
Last Login
{{ $user->last_login_at ? $user->last_login_at->format('M j, Y g:i A') : 'Never' }}
Email Verified
@if($user->email_verified_at) Verified @else Not Verified @endif