<!-- Modal -->
<div class="modal" id="addUserModal" 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 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="user_form" class="form-styled" data-toggle="validator"
                      action="{{route('create-agency')}}" method="POST" enctype="multipart/form-data">
                    @csrf
                    <div class="row">
                        <div class="col-xs-12 col-lg-6">
                            <div class="form-group has-feedback">
                                <label>Agency Name*</label>
                                <input type="text" 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" 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" 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" 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" required 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 required 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 required 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 required 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" id="agency_password" name="agency_password"
                                       data-minlength="6" required
                                       data-error="Must be at least 6 characters"
                                       class="form-control"><span class="help-block with-errors"></span>
                            </div>
                        </div>
                        <div class="col-xs-12 col-lg-6">
                            <label>Confirm Password*</label>
                            <div class="form-group has-feedback">
                                <input type="password" name="agency_password_confirmation" required
                                       minlength="6"
                                       maxlength="20"
                                       data-match="#agency_password"
                                       data-match-error="Password must be same"
                                       data-error="Password must be same"
                                       class="form-control input-shadow">
                                <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>
