first upload all files
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::text('first_name', trans('user::attributes.users.first_name'), $errors, $user, ['required' => true]) }}
|
||||
{{ Form::text('last_name', trans('user::attributes.users.last_name'), $errors, $user, ['required' => true]) }}
|
||||
{{ Form::email('email', trans('user::attributes.users.email'), $errors, $user, ['required' => true]) }}
|
||||
{{ Form::text('phone', trans('user::attributes.users.phone'), $errors, $user, ['required' => true]) }}
|
||||
{{ Form::select('roles', trans('user::attributes.users.roles'), $errors, $roles, $user, ['multiple' => true, 'required' => true, 'class' => 'selectize prevent-creation']) }}
|
||||
|
||||
@if (request()->routeIs('admin.users.create'))
|
||||
{{ Form::password('password', trans('user::attributes.users.password'), $errors, null, ['required' => true]) }}
|
||||
{{ Form::password('password_confirmation', trans('user::attributes.users.password_confirmation'), $errors, null, ['required' => true]) }}
|
||||
@endif
|
||||
|
||||
@if (request()->routeIs('admin.users.edit'))
|
||||
{{ Form::checkbox('activated', trans('user::attributes.users.activated'), trans('user::users.form.activated'), $errors, $user, ['disabled' => $user->id === $currentUser->id, 'checked' => old('activated', $user->isActivated())]) }}
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,14 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::password('password', trans('user::attributes.users.new_password'), $errors) }}
|
||||
{{ Form::password('password_confirmation', trans('user::attributes.users.confirm_new_password'), $errors) }}
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<h4>{{ trans('user::users.or_reset_password') }}</h4>
|
||||
|
||||
<a href="{{ route('admin.users.reset_password', $user) }}" class="btn btn-primary btn-reset-password" data-loading>
|
||||
{{ trans('user::users.send_reset_password_email') }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user