<!-- Modal -->
<div class="modal" id="addFeedbackModal" data-keyboard="false" data-backdrop="static">
    <div class="modal-dialog modal-lg" style="max-width: 500px">
        <div class="modal-content border-primary">
            <div class="modal-header bg-primary">
                <h5 class="modal-title text-white">Add Feedback</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 method="post" action="<?php echo e(route('updateContact', $contact->id)); ?>" data-toggle="validator"
                      autocomplete="off" class="form-styled">
                    <?php echo csrf_field(); ?>
                    <input type="hidden" name="type" value="feedback">
                    <div class="row">
                        <div class="col-xs-12 col-lg-12">
                            <div class="form-group has-feedback">
                                <label class="control-label">Type*</label>
                                <select required name="sub_type" class="form-control">
                                    <option value="Task">Task</option>
                                    <option value="SMS">SMS</option>
                                    <option value="Letter">Letter</option>
                                    <option value="Email">Email</option>
                                    <option value="Phone">Phone</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-12">
                            <div class="form-group has-feedback">
                                <label class="control-label">Date</label>
                                <input type="date" name="date" class="form-control">
                            </div>
                        </div>
                        <?php if(auth()->user()->type == 1 || auth()->user()->type == 2): ?>
                            <div class="col-xs-12 col-lg-12">
                                <div class="form-group">
                                    <label class="control-label">Agent</label>
                                    <select name="agent_id" class="form-control">
                                        <option value="">Select Agent</option>
                                        <?php if(auth()->user()->type == 1): ?>
                                            <?php $__currentLoopData = App\Models\User::orderBy('name')->where('type', 3)->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(); ?>
                                        <?php else: ?>
                                            <?php $__currentLoopData = App\Models\User::orderBy('name')->where('parent_id', auth()->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->name); ?>

                                                </option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    </select>
                                </div>
                            </div>
                        <?php endif; ?>
                        <div class="col-xs-12 col-lg-12">
                            <div class="form-group">
                                <label class="control-label">Feedback</label>
                                <textarea minlength="3" maxlength="1000" name="note" cols="30" rows="2"
                                          class="form-control content_area"></textarea>
                                <span class="help-block with-errors"></span>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12 col-lg-12">
                            <div class="form-group">
                                <button type="submit" 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>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<?php /**PATH E:\xampp\htdocs\propco\resources\views/admin/contacts/modals/addFeedbackModal.blade.php ENDPATH**/ ?>