{{ html()->select('role_id', $roles->pluck('display_name', 'id'), old('role_id', $user->roles->first()->id ?? null))
->class([
'form-select',
$errors->has('role_id') ? 'is-invalid' : ''
])
->id('role_id')
->attribute('data-control', 'select2')
->attribute('data-placeholder', 'Seleccione un rol')
->required() }}
@error('role_id')
{{ $message }}
@enderror