@extends('layouts.app') @section('title', 'Edit User') @section('breadcrumb') @endsection @section('content')
{{-- Edit Form --}}
User Details
@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
id === auth()->id() ? 'readonly style=background:#f8f9fa' : '' }}> @if($user->id === auth()->id())
You cannot change your own username.
@endif @error('username')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
is_active) ? 'checked':'' }} {{ $user->id === auth()->id() ? 'disabled' : '' }}>
is_active) ? 'checked':'' }} {{ $user->id === auth()->id() ? 'disabled' : '' }}>
is_admin) ? 'checked':'' }} {{ $user->id === auth()->id() ? 'disabled' : '' }}>

@forelse($roles as $role)
id, old('roles', $userRoleIds)) ? 'checked':'' }}>
@empty
No roles available.
@endforelse
Cancel
{{-- Reset Password --}}
Reset Password
@csrf
{{-- User Info --}}
Account Info
Created{{ $user->created_at->format('d M Y, H:i') }}
Last Login{{ $user->last_login_at ? $user->last_login_at->format('d M Y, H:i') : 'Never' }}
Last Login IP{{ $user->last_login_ip ?? '—' }}
Password Changed{{ $user->password_changed_at ? $user->password_changed_at->format('d M Y') : 'Never' }}
Force Pw Change @if($user->force_password_change) Yes @else No @endif
@endsection @push('scripts') @endpush