<div class="modal" id="editAgentModal" 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 Agent</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 id="edit_agent_form" class="form-styled" data-toggle="validator"
                      action="<?php echo e(route('update-agent')); ?>" method="POST" enctype="multipart/form-data">
                    <?php echo csrf_field(); ?>
                    <input type="hidden" name="agent_id" id="agent_id">
                    <div class="row">
                        <div class="col-xs-12 col-lg-6">
                            <div class="form-group has-feedback">
                                <label>Full Name*</label>
                                <input type="text" id="agent_name" name="agent_name" maxlength="30" required
                                       data-minlength="3" data-error="Must be at least 3 characters"
                                       class="form-control"><span class="help-block with-errors"></span>
                            </div>
                        </div>
                        <?php if(auth()->user()->type == 1): ?>
                            <div class="col-xs-12 col-lg-6">
                                <div class="form-group has-feedback">
                                    <label>Agency (Optional)</label>
                                    <select id="agent_agency" name="agent_agency" class="form-control">
                                        <option value="">Select Agency</option>
                                        <?php $__currentLoopData = App\Models\User::where('type', 2)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($user->id); ?>"><?php echo e($user->name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                        <?php endif; ?>
                        <div class="col-xs-12 col-lg-6">
                            <div class="form-group has-feedback">
                                <label>Email*</label>
                                <input id="agent_email" type="email" name="agent_email" maxlength="30" required
                                       data-minlength="3"
                                       data-error="Email is required"
                                       class="form-control"><span aria-hidden="true"></span><span
                                    class="help-block with-errors"></span>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-6">
                            <div class="form-group has-feedback">
                                <label>Phone* (+971 XX XXXXXXX)</label>
                                <input id="agent_phone" type="text" name="agent_phone" maxlength="20" required
                                       data-minlength="3" data-error="Must be at least 3 characters"
                                       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>Emirates ID - Front</label>
                                <input style="padding: 3px" type="file" class="form-control"
                                       name="agent_emirates_id_front">
                                <span class="help-block with-errors"></span>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-6">
                            <div class="form-group has-feedback">
                                <label>Emirates ID - Back</label>
                                <input style="padding: 3px" type="file" class="form-control"
                                       name="agent_emirates_id_back">
                                <span class="help-block with-errors"></span>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-6">
                            <div class="form-group has-feedback">
                                <label>Copy of Passport</label>
                                <input type="file" style="padding: 3px" class="form-control"
                                       name="agent_copy_of_passport">
                                <span class="help-block with-errors"></span>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-6">
                            <div class="form-group has-feedback">
                                <label>Copy of Visa</label>
                                <input type="file" style="padding: 3px" class="form-control"
                                       name="agent_copy_of_visa">
                                <span class="help-block with-errors"></span>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-6">
                            <label>Password</label>
                            <div class="form-group has-feedback">
                                <input type="password" id="agent_password" name="agent_password"
                                       maxlength="20"
                                       class="form-control"><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 text-right">
                                <button type="submit"
                                        class="btn btn-success">
                                    <i class="fa fa-check fa-lg"></i> Save
                                </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/agents/modals/editAgentModal.blade.php ENDPATH**/ ?>