<!-- Modal -->
<div class="modal" id="addCallingDatabaseModal" 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">Add new</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="create_callingDatabase_form">
                    <?php echo csrf_field(); ?>
                    <div class="row">
                        <div class="col-xs-12 col-lg-4">
                            <div class="form-group has-feedback">
                                <label class="control-label">Phone* (+971 XX XXXXXXX)</label>
                                <input type="text" id="cd_phone" maxlength="20" required data-minlength="1"
                                       data-error="Must be at least 3 character" class="form-control"><span
                                    class="help-block with-errors"></span>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-4">
                            <div class="form-group has-feedback">
                                <label class="control-label">Name</label>
                                <input type="text" id="cd_name" maxlength="50" class="form-control">
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-4">
                            <div class="form-group has-feedback">
                                <label class="control-label">Unit Number</label>
                                <input type="text" id="cd_unit_no" maxlength="20" class="form-control">
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-6">
                            <div class="form-group">
                                <label class="control-label">Community</label>
                                <select data-live-search="true" id="cd_community"
                                        class="form-control selectpicker show-tick">
                                    <option value="">Select Community</option>
                                    <?php $__currentLoopData = App\Models\Attribute::whereType('district')->orderBy('name')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($attr->id); ?>"><?php echo e($attr->name); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-6">
                            <div class="form-group">
                                <label class="control-label">Tower</label>
                                <select data-live-search="true" id="cd_project"
                                        class="form-control selectpicker show-tick">
                                    <option value="">Select Tower</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-4">
                            <div class="form-group">
                                <label class="control-label">Property Type</label>
                                <select data-live-search="true" id="cd_property_type"
                                        class="form-control selectpicker show-tick">
                                    <option value="">Select Property Type</option>
                                    <?php $__currentLoopData = App\Models\Attribute::orderBy('name')->with('parent')->where('type', 'propertyType')->whereNotNull('parent_id')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($attr->id); ?>">
                                            <?php echo e($attr->parent ? $attr->name . ' (' . $attr->parent->name . ')' : $attr->name); ?>

                                        </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-4">
                            <div class="form-group">
                                <label class="control-label">Lead Status</label>
                                <select data-live-search="true" id="cd_lead_status"
                                        class="form-control selectpicker show-tick">
                                    <option value="">Select Lead Status</option>
                                    <?php $__currentLoopData = App\Models\Attribute::orderBy('name')->where('type', 'leadStatus')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($attr->id); ?>">
                                            <?php echo e($attr->name); ?>

                                        </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-4">
                            <div class="form-group">
                                <label class="control-label">Lead Category</label>
                                <select data-live-search="true" id="cd_lead_category"
                                        class="form-control selectpicker show-tick">
                                    <option value="">Select Lead Status</option>
                                    <?php $__currentLoopData = App\Models\Attribute::orderBy('name')->where('type', 'leadCategory')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($attr->id); ?>">
                                            <?php echo e($attr->name); ?>

                                        </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-4">
                            <div class="form-group">
                                <label class="control-label">Price</label>
                                <input type="text" id="cd_price" maxlength="10"
                                       class="form-control">
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-4">
                            <div class="form-group">
                                <label class="control-label">Area (Sqft)</label>
                                <input type="text" id="cd_area" maxlength="10" class="form-control">
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-4">
                            <div class="form-group">
                                <label class="control-label">Beds</label>
                                <input type="text" id="cd_beds" maxlength="10" class="form-control">
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-4">
                            <div class="form-group">
                                <label class="control-label">Baths</label>
                                <input type="text" id="cd_baths" maxlength="5"
                                       class="form-control">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12 col-lg-12">
                            <div class="form-group">
                                <button type="submit" id="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 add_errors" style="display: none">
                                    <ul></ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<?php /**PATH E:\xampp\htdocs\propco\resources\views/admin/callingDatabase/modals/addCallingDatabaseModal.blade.php ENDPATH**/ ?>