<div class="modal" id="editUserModal" 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 Agency</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_user_form" class="form-styled" data-toggle="validator"
                      action="{{route('update-agency')}}" method="POST" enctype="multipart/form-data">
                    @csrf
                    <input type="hidden" name="user_id" id="user_id">
                    <div class="row">
                        <div class="col-xs-12 col-lg-6">
                            <div class="form-group has-feedback">
                                <label>Agency Name*</label>
                                <input type="text" id="agency_name" name="agency_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>
                        <div class="col-xs-12 col-lg-6">
                            <div class="form-group has-feedback">
                                <label>Registration Number*</label>
                                <input type="text" id="agency_reg_number" name="agency_reg_number" 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>
                        <div class="col-xs-12 col-lg-6">
                            <div class="form-group has-feedback">
                                <label>Email*</label>
                                <input type="email" id="agency_email" name="agency_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 type="text" id="agency_phone" name="agency_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>Agency Logo</label>
                                <input style="padding: 3px" type="file" class="form-control"
                                       name="agency_logo">
                                <span class="help-block with-errors"></span>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-6">
                            <div class="form-group has-feedback">
                                <label>RERA licence</label>
                                <input type="file" style="padding: 3px" class="form-control"
                                       name="agency_rera_licence">
                                <span class="help-block with-errors"></span>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-6">
                            <div class="form-group has-feedback">
                                <label>Broker card</label>
                                <input type="file" style="padding: 3px" class="form-control"
                                       name="agency_broker_card">
                                <span class="help-block with-errors"></span>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-6">
                            <div class="form-group has-feedback">
                                <label>Owner ID</label>
                                <input type="file" style="padding: 3px" class="form-control"
                                       name="agency_owner_id">
                                <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" name="agency_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>
