<div class="modal inmodal" id="editHwSpecsModal" tabindex="-1" role="dialog">

    <div class="modal-dialog">

        <div class="modal-content animated fadeIn">

            <div class="modal-header">

                <button type="button" class="close" data-dismiss="modal"><span>×</span><span
                        class="sr-only">Close</span></button>

                <h4 class="modal-title">Edit Hardware Info</h4>

            </div>
            <form class="form-horizontal" action="" method="post" id="edit-hw-specs-form">

                <input type="hidden" name="asset_id" id="asset_id" value="{{ $asset->id??'' }}">

                <div class="modal-body">

                    @include('partials.error')

                    {{csrf_field()}}

                    <div class="form-group">

                        <label class="col-lg-4 control-label">Asset Type<span class="text-danger">*</span></label>

                        <div class="col-lg-8">

                            <select class="form-control chosen-select asset-type" name="asset_type_id" required>
                                <option value="">Select</option>
                                @foreach(\App\Models\AssetType::select('id','name')->orderBy('slug')->get() as $assettype)
                                @if($assettype->name!='Computer Accessories')
                                <option value="{{$assettype->id}}">{{$assettype->name}}</option>
                                @endif
                                @endforeach
                            </select>
                            <span class="errorText text-danger"></span>

                        </div>

                    </div>


                    <div class="form-group">

                        <label class="col-lg-4 control-label">Hardware Standard<span class="text-danger">*</span></label>

                        <div class="col-lg-8">

                            <select name="make_and_model_id" class="form-control chosen-select make-and-model">
                                <option value="">--Select--</option>
                            </select>
                            <span class="errorText text-danger"></span>
                        </div>

                    </div>

                    <div class="form-group">
                        <label class="col-lg-4 control-label">Tech Specs<span class="text-danger">*</span></label>
                        <div class="col-lg-8">
                            <select required name="technical_spec_id" class="form-control chosen-select technical-spec" >
                                <option value="">--Select--</option>
                            </select>
                            <span class="errorText text-danger"></span>
                        </div>
                    </div>

                </div>

                <div class="modal-footer">

                    <button type="button" class="btn btn-link" data-dismiss="modal">Cancel</button>

                    <button type="button" class="btn btn-primary" id="edit-hw-specs-submit">Save</button>

                </div>
            </form>

        </div>

    </div>

</div>