<div class="modal" id="create-asset" tabindex="-1" role="dialog">
	
	<div class="modal-dialog">
		
		<div class="modal-content animated fadeIn">
			
			<div class="modal-header">
				
				<h4 class="modal-title">Create Asset - <span id="create-asset-serial"></span></h4>
				
			</div>
			
			<div class="modal-body">
				<form class="form-horizontal" action="{{ route('workspace-one-assets-create') }}" method="post"
				id="create-asset-form">
				
				<input type="hidden" id="no_user_location" name="no_user_location" value="0">
				<input type="hidden" id="workspace-one-asset-id" name="workspace-one-asset-id" value="">
				{{csrf_field()}}
				
				
				<div class="form-group">
					
					
					<div class="col-lg-12">
						<div class="form-group">
							<label class=" control-label">Hardware Standard</label>
							
							<select style="width: 100%" required name="make_and_model_id" id="make_and_model_id"
							class="form-control chosen-select ">
							<option value="">--Select--</option>
						</select>
						<div class="errorText"></div>
						
					</div>
				</div>
				
				
				
				<div class="col-lg-12">
					<div class="form-group">
						<label class=" control-label">Tech Specs</label>
						
						<select style="width: 100%" required name="technical_spec_id" id="technical_spec_id"
						class="form-control chosen-select">
						<option value="">--Select--</option>
					</select>
					<div class="errorText"></div>
					
				</div>
			</div>
			
			<div class="col-lg-12">
				<div class="form-group">
					<label class=" control-label">Status</label>
					
					<select style="width: 100%" required name="status_id" id="status_id"
					class="form-control chosen-select">
					<option value="">--Select--</option>
					@foreach($assetStatuses as $assetStatus)
					<option data-hasuser="{{ $assetStatus->has_user }}"
						data-haslocation="{{ $assetStatus->has_location }}"
						value="{{ $assetStatus->id }}">{{ $assetStatus->name }}</option>
						@endforeach
					</select>
					<div class="errorText"></div>
					
				</div>
			</div>
			
			
			<div class="col-lg-12 location-select-div" style="display: none;">
				<div class="form-group">
					<label class=" control-label">Location</label>
					
					@include('partials.dropdowns.location-search-input', ['filterClass' => 'filter-field-storage-location','required'=>'required'])
					
					<div class="errorText"></div>
					
				</div>
			</div>
			
			<div class="col-lg-12 user-select-div" style="display: none;">
				<div class="form-group">
					<label class=" control-label">User</label>
					
					<select style="width: 100%" id="user_id" name="user_id" class="assigned-user-ajax"
					required>
				</select>
				
				
				<div class="errorText"></div>
				
			</div>
		</div>
		
		
	</div>
	
</form>

</div>

<div class="modal-footer">
	<button type="button" class="btn btn-link" data-dismiss="modal">Cancel</button>
	<button type="button" class="btn btn-primary submit-form">Submit</button>
	
</div>

</div>

</div>

</div>