<!-- Modal -->
<div class="modal" id="rolesListModal" aria-hidden="true" data-keyboard="false" data-backdrop="static">
    <div class="modal-dialog modal-lg" style="max-width: 1000px">
        <div class="modal-content border-primary">
            <div class="modal-header bg-primary">
                <h5 class="modal-title text-white">Roles...!</h5>
                <input type="hidden" class="user_main_id">
                <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">
                <div class="row">
                    <div class="col-12">
                        <button id="show_role_form" type="button" class="btn btn-primary pull-right"><i
                                class="fa fa-plus zero-margin"></i></button>
                    </div>
                </div>
                <hr>
                <div class="row">
                    <div class="col-12">
                        <form data-toggle="validator" autocomplete="off" class="form-styled" id="add_role_to_user_form" style="display: none">
                            @csrf
                            <div class="row">
                                <div class="col-xs-12 col-lg-12">
                                    <div class="form-group has-feedback">
                                        <label for="roles_list" class="control-label">Roles*</label>
                                        <select data-live-search="true" data-actions-box="true" class="form-control selectpicker" multiple="multiple" id="roles_list" name="roles_list" data-error="Please select roles" required>
                                        </select>
                                        <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="roles_btn" name="submit" class="btn btn-success"><i class="fa fa-check fa-lg"> </i>&nbsp;Assign</button>
                                        <div class="alert alert-danger roles_errors" style="display: none"><ul></ul></div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <hr>
                <div class="table-responsive">
                    <table id="userRolesListTable" class="table table-bordered" style="width: 100%"></table>
                </div>
            </div>
            <div class="modal-footer attach_modal_footer">
                <button type="button" id="remove_all_attach_roles_btn" class="btn btn-danger"><i class="fa fa-trash"></i>
                    Remove all
                </button>
            </div>
        </div>
    </div>
</div>
