{{ Form::open(['route' => 'Admin.Core.Auth.User.store', 'id' => 'user-form', 'autocomplete' => 'off']) }}

	<input type="hidden" name="id" value="{{ $user['id'] ?? null }}">

	<div class="row">
		<div class="col-9">

			<div class="row mb-3">
				<div class="col-12 col-md-6">
					<label for="last_name">{{ __('name') }} <sup>*</sup></label>
					@include('components.form.input', ['name' => 'last_name', 'value' => $user['last_name'] ?? ''])
				</div>

				<div class="col-12 col-md-6">
					<label for="first_name">{{ __('firstname') }} <sup>*</sup></label>
					@include('components.form.input', ['name' => 'first_name', 'value' => $user['first_name'] ?? ''])
				</div>
			</div>

			<div class="row mb-3">
				<div class="col-12 col-md-6">
					<label for="username">{{ __('login') }} <sup>*</sup></label>
					@include('components.form.input', ['name' => 'username', 'value' => $user['username'] ?? ''])
				</div>
				<div class="col-12 col-md-6">
					<label for="password">{{ __('password') }} <sup>*</sup></label>
					@include('components.password', ['name' => 'password'])
				</div>
			</div>

			<div class="row mb-3">
				<div class="col-12 col-md-6">
					<label for="email">{{ __('email') }} <sup>*</sup></label>
					@include('components.form.input', ['name' => 'email', 'value' => $user['email'] ?? null])
				</div>

				<div class="col-12 col-md-6">
					<label for="phone">{{ __('phone') }}</label>
					@include('components.form.input', ['name' => 'phone', 'value' => $user['phone'] ?? null])
				</div>
			</div>

		</div>

		<div class="col-3">
			<div class="col-12">
				<label class="control-label light" for="avatar">{{ __('avatar') }}</label>
				@include('components.file', ['name' => 'avatar'])
			</div>
		</div>
	</div>

	@include('admin.Core.Auth.User.roles')

</form>

<script>
	$(function() {
		initUpload();
	});
</script>
