@php
$currentRole = old(
'role',
$user->roles->first()?->name
);
@endphp
Changing the role will replace the user's current role and permissions.
@error('role')
{{ $message }}
@enderror
{{--
Disabled form controls are not submitted.
When editing your own account, preserve the
current active status explicitly.
--}}
@if (auth()->id() === $user->id)
You cannot deactivate your own account.
@else
Inactive users should not be allowed to access the system.
@endif
@error('is_active')
{{ $message }}
@enderror