{{ html()->form('POST', route('user.store'))->class('needs-validation')->attributes(['novalidate'])->open() }} @isset($user) {{ html()->hidden('id', $user->id) }} @endisset
{{ html()->label('Name')->for('name') }} {{ html()->span('*')->class('text-danger') }} {{ html()->text('name')->value($user->name ?? old('name'))->class('form-control')->placeholder('Enter Name')->required() }} {{ html()->div('Please enter a name.')->class('invalid-feedback') }}
{{ html()->label('Email')->for('email') }} {{ html()->span('*')->class('text-danger') }} {{ html()->email('email')->value($user->email ?? old('email'))->class('form-control')->placeholder('Enter Email')->required() }} {{ html()->div('Please enter a email.')->class('invalid-feedback') }}
{{ html()->label('Password')->for('password') }} {{ html()->span('*')->class('text-danger') }} {{ html()->password('password')->class('form-control')->placeholder('Enter Password')->required(!isset($user)) }} {{ html()->div('Please enter a password.')->class('invalid-feedback') }}
{{ html()->label('Confirm Password')->for('password_confirmation') }} {{ html()->span('*')->class('text-danger') }} {{ html()->password('password_confirmation')->class('form-control')->placeholder('Enter Password')->required(!isset($user)) }} {{ html()->div('Please enter a password.')->class('invalid-feedback') }}
{{ html()->form()->close() }}