{!! html()->label('Name')->for('name') !!} {!! html()->text('name', $user->name) ->class('form-control' . ($errors->has('name') ? ' is-invalid' : '')) ->placeholder('Name') ->required() !!} {!! $errors->first('name', '
:message
') !!}
{!! html()->label('Email')->for('email') !!} {!! html()->text('email', $user->email) ->class('form-control' . ($errors->has('email') ? ' is-invalid' : '')) ->placeholder('Email') ->required() !!} {!! $errors->first('email', '
:message
') !!}
{!! html()->label('Password')->for('password') !!} {!! html()->password('password') ->class('form-control' . ($errors->has('password') ? ' is-invalid' : '')) ->placeholder('Password') ->id('password') !!} {!! $errors->first('password', '
:message
') !!}
{!! html()->label('Confirm Password')->for('confirm_password') !!} {!! html()->password('confirm_password') ->class('form-control' . ($errors->has('confirm_password') ? ' is-invalid' : '')) ->placeholder('Confirm Password') !!} {!! $errors->first('confirm_password', '
:message
') !!}
{!! html()->label('Roles')->for('roles') !!} {!! html()->select('roles[]', roles(), $user->roles) ->class('form-control select m-b-10 select2-multiple' . ($errors->has('roles') ? ' is-invalid' : '')) ->attribute('data-placeholder', '--Select--') ->multiple() ->required() !!} {!! $errors->first('roles', '
:message
') !!}
{!! html()->submit('Submit') ->class('btn btn-primary ms-3') ->attribute('aria-label', 'Submit Form') ->html('Submit ') !!}