<!-- Modal -->
<div class="modal" id="addAdminModal">
    <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 Admin</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 data-toggle="validator" autocomplete="off" class="form-styled" id="create_admin_form">
                    @csrf
                    <div class="row">
                        <div class="col-xs-12 col-lg-12">
                            <div class="form-group has-feedback">
                                <label for="admin_name" class="control-label">Full Name*</label>
                                <input type="text" id="admin_name" maxlength="50" required placeholder="Enter full name"
                                       data-minlength="3" data-error="Must be at least 3 characters"
                                       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 has-feedback">
                                <label for="admin_email" class="control-label">Email*</label>
                                <input type="email" id="admin_email" maxlength="60" required data-minlength="3"
                                       placeholder="Enter email" data-error="Email is required"
                                       class="form-control"><span aria-hidden="true"></span><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 has-feedback">
                                <label for="admin_password" class="control-label">Password*</label>
                                <input type="password" id="admin_password" maxlength="20" data-minlength="6" required
                                       placeholder="Enter password" data-error="Must be at least 6 characters"
                                       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 has-feedback">
                                <label for="password-confirm" class="control-label">Confirm Password*</label>
                                <input type="password"
                                   name="password_confirmation"
                                   required
                                   class="form-control"
                                   maxlength="20"
                                   data-match="#admin_password"
                                   data-match-error="Must be the same as above"
                                   data-minlength="6"
                                   data-error="Please repeat new password"
                                   placeholder="Confirm Password"
                                   id="reg_password_confirm" />
                                <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" id="submit_btn" 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 class="alert alert-danger add_errors" style="display: none">
                                    <ul></ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
