<!-- Modal -->
<div class="modal" id="editPropertyTypeModal" data-keyboard="false" data-backdrop="static">
    <div class="modal-dialog modal-lg">
        <div class="modal-content border-primary">
            <div class="modal-header bg-primary">
                <h5 class="modal-title text-white">Edit Property Type</h5>
                <button type="button" class="close text-white" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <form data-toggle="validator" autocomplete="off" class="form-styled" id="edit_propertyType_form">
                    @csrf
                    <input type="hidden" id="propertyType_id">
                    <div class="row">
                        <div class="col-xs-12 col-lg-6">
                            <div class="form-group has-feedback">
                                <label class="control-label">Title*</label>
                                <input type="text" id="edit_propertyType_name" maxlength="300" required data-minlength="1"
                                    data-error="Must be at least 1 character" class="form-control"><span
                                    class="help-block with-errors"></span>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-6">
                            <div class="form-group has-feedback">
                                <label class="control-label">Parent</label>
                                <select data-live-search="true" id="edit_propertyType_parent" class="form-control">
                                    <option value="">Select Parent</option>
                                    @foreach(getAttributesByType('propertyType') as $attr)
                                        <option value="{{$attr->id}}">{{$attr->name}}</option>
                                    @endforeach
                                </select>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-12">
                            <div class="form-group">
                                <label class="control-label">SEO Meta Title</label>
                                <input type="text" id="edit_propertyType_meta_title" maxlength="300" class="form-control">
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-12">
                            <div class="form-group">
                                <label class="control-label">SEO Meta Keywords</label>
                                <input type="text" id="edit_propertyType_meta_keywords" maxlength="300" class="form-control">
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-12">
                            <div class="form-group">
                                <label class="control-label">SEO Meta Description</label>
                                <input type="text" id="edit_propertyType_meta_description" maxlength="300" class="form-control">
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-12">
                            <div class="form-group">
                                <label class="control-label">Full Description</label>
                                <textarea type="text" id="edit_propertyType_full_description" maxlength="3000"
                                    class="form-control content_area"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12 col-lg-12">
                            <div class="form-group">
                                <button type="submit" id="edit_submit_btn" name="submit" class="btn btn-success"><i
                                        class="fa fa-check fa-lg"> </i>&nbsp;Submit
                                </button>
                                <button type="button" class="btn btn-secondary" data-dismiss="modal"><i
                                        class="fa fa-times fa-lg"></i> Close
                                </button>
                                <div class="alert alert-danger edit_errors" style="display: none">
                                    <ul></ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>