<div class="modal inmodal" id="addMapping" tabindex="-1" role="dialog" data-backdrop="static" data-keyboard="false">
    
    <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">Add New Mapping</h4>
                    
                </div>
                
                <div class="modal-body">
                    
                    @include('partials.error')
                    
                    <form class="form-horizontal" action="" method="post" id="mapping-form">
                        
                        {{csrf_field()}}
                        
                        <div class="form-group" id="discryption">
                            
                        </div>
                        
                        <div class="form-group">
                            
                            <label class="col-lg-4 control-label">Hardware Standard (Teqtivity)</label>
                            
                            <div class="col-lg-8">
                                
                                <select class="form-control make_model add_make_and_model chosen-select"
                                id="make_and_model_id" name="make_and_model" data-placeholder="Select" required="">
                                <option value="">Select</option>
                                @foreach($hardwareStandards as $hardwareStandard)
                                <option value="{{$hardwareStandard->id}}">{{$hardwareStandard->hardware}}</option>
                                @endforeach
                                
                            </select>
                            
                        </div>
                        
                    </div>
                    
                    
                    
                    <div class="form-group">
                        
                        <label class="col-lg-4 control-label">Make/Model (Chrome Device)</label>
                        
                        <div class="col-lg-8">
                            
                            <select class="form-control make_model add_chrome_computer chosen-select" id="chrome_model"
                            name="chrome_model" data-placeholder="Select" required="">
                            <option value="">Select</option>
                            @foreach($chromeComputer as $hardwareStandard)
                            @if (!in_array($hardwareStandard->model, $mappedChrome)) 
                                <option value="{{$hardwareStandard->model}}">{{$hardwareStandard->model}}</option>
                                @endif
                                @endforeach
                            </select>
                            
                        </div>
                        
                    </div>
                    
                    <div class="form-group">
                        
                        <label class="col-lg-4 control-label">Make/Model (Intune)</label>
                        
                        <div class="col-lg-8">
                            
                            <select class="form-control make_model add_intune_computer chosen-select" id="intune_model"
                            name="intune_model" data-placeholder="Select" required="">
                            <option value="">Select</option>
                            @foreach($intuneComputer as $hardwareStandard)
                            @if (!in_array($hardwareStandard->model, $mappedIntune)) 
                                <option value="{{$hardwareStandard->model}}">{{$hardwareStandard->model}}</option>
                                @endif
                                @endforeach
                            </select>
                            
                        </div>
                        
                    </div>
                    
                    <div class="form-group">
                        
                        <label class="col-lg-4 control-label">Make/Model (Jamf)</label>
                        
                        <div class="col-lg-8">
                            
                            <select class="form-control make_model add_jamf_computer chosen-select" id="jamf_model"
                            name="jamf_model" data-placeholder="Select" required="">
                            <option value="">Select</option>
                            @foreach($jamfComputer as $hardwareStandard)
                            @if (!in_array($hardwareStandard->model, $mappedJamf)) 
                                <option value="{{$hardwareStandard->model}}">{{$hardwareStandard->model}}</option>
                                @endif
                                @endforeach
                            </select>
                            
                        </div>
                        
                    </div>
                    
                    <div class="form-group">
                        
                        <label class="col-lg-4 control-label">Make/Model (Workspace ONE)</label>
                        
                        <div class="col-lg-8">
                            
                            <select class="form-control make_model add_workspace_one_computer chosen-select"
                            id="workspace_one_model" name="workspace_one_model" data-placeholder="Select"
                            required="">
                            <option value="">Select</option>
                            @foreach($workspaceOneComputer as $hardwareStandard)
                            @if (!in_array($hardwareStandard->model, $mappedWorkspaceOne)) 
                                <option value="{{$hardwareStandard->model}}">{{$hardwareStandard->model}}</option>
                                @endif
                                @endforeach
                            </select>
                            
                        </div>
                        
                    </div>

                    <div class="form-group">
                        
                        <label class="col-lg-4 control-label">Make/Model (Kandji)</label>
                        
                        <div class="col-lg-8">
                            
                            <select class="form-control make_model add_kandji_computer chosen-select"
                            id="kandji_model" name="kandji_model" data-placeholder="Select"
                            required="">
                            <option value="">Select</option>
                            @foreach($kandjiComputer as $hardwareStandard)
                            @if (!in_array($hardwareStandard->model, $mappedKandji)) 
                                <option value="{{$hardwareStandard->model}}">{{$hardwareStandard->model}}</option>
                                @endif
                                @endforeach
                            </select>
                            
                        </div>
                        
                    </div>

                    <div class="form-group">
                        
                        <label class="col-lg-4 control-label">Make/Model (Mobile Iron)</label>
                        
                        <div class="col-lg-8">
                            
                            <select class="form-control make_model add_mobile_iron chosen-select"
                            id="mobile_iron_model" name="mobile_iron_model" data-placeholder="Select"
                            required="">
                            <option value="">Select</option>
                            @foreach($mobileIrons as $hardwareStandard)
                            @if (!in_array($hardwareStandard->model, $mappedMobileIrons)) 
                                <option value="{{$hardwareStandard->model}}">{{$hardwareStandard->model}}</option>
                                @endif
                                @endforeach
                            </select>
                            
                        </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" id="submit">Save</button>
                
            </div>
            
        </div>
        
    </div>
    
</div>