<!-- Modal -->
<div class="modal" id="editMarketingModal" 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">Edit Marketing Details</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="marketing">
                    <div class="row">
                        <div class="col-xs-12 col-lg-12">
                            <div class="form-group has-feedback">
                                <label class="control-label">Gender*</label>
                                <select required name="gender" class="form-control">
                                    <option value="">Select an option</option>
                                    <option <?php echo e($contact->gender == '1' ? 'selected' : ''); ?> value="1">Male</option>
                                    <option <?php echo e($contact->gender == '2' ? 'selected' : ''); ?> value="2">Female</option>
                                </select>
                                <span
                                    class="help-block with-errors"></span>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-12">
                            <div class="form-group has-feedback">
                                <label class="control-label">Date of Birth*</label>
                                <input required type="date"
                                       value="<?php echo e($contact->dob); ?>" name="dob"
                                       class="form-control">
                                <span
                                    class="help-block with-errors"></span>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-12">
                            <div class="form-group">
                                <label class="control-label">Enquiry source</label>
                                <select name="enquiry_source_id"
                                        class="form-control">
                                    <option value="">Select Enquiry source</option>
                                    <?php $__currentLoopData = App\Models\Attribute::orderBy('name')->where('type', 'enquirySource')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option <?php echo e($contact->enquiry_source_id == $attr->id ? 'selected' : ''); ?> 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-12">
                            <div class="form-group has-feedback">
                                <label class="control-label">Enquiry Method</label>
                                <input value="<?php echo e($contact->enquiry_method); ?>" type="text" name="enquiry_method" maxlength="50"
                                       class="form-control">
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-12">
                            <div class="form-group">
                                <label class="control-label">Lead Source</label>
                                <select name="source_id"
                                        class="form-control">
                                    <option value="">Select Lead source</option>
                                    <?php $__currentLoopData = App\Models\Attribute::orderBy('name')->where('type', 'leadSource')->whereNull('is_primary')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option <?php echo e($contact->source_id == $attr->id ? 'selected' : ''); ?> 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-12">
                            <div class="form-group has-feedback">
                                <label class="control-label">Postcode</label>
                                <input value="<?php echo e($contact->post_code); ?>" type="text" name="post_code" maxlength="10"
                                       class="form-control">
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-12">
                            <div class="form-group has-feedback">
                                <label class="control-label">Last Contact</label>
                                <input type="date"
                                       value="<?php echo e($contact->last_contact); ?>" name="last_contact"
                                       class="form-control">
                            </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/editMarketingModal.blade.php ENDPATH**/ ?>