<div class="tab-content">
    <?php $user_id = $login_user->id; ?>

    <?php echo form_open("", array("class" => "general-form dashed-row white", "role" => "form")); ?>
    <div class="card border-top-0 rounded-top-0">
        <div class=" card-header">
            <h4><?php echo app_lang("gdpr"); ?></h4>
        </div>
        <div class="card-body">

            <?php if (get_setting("allow_clients_to_export_their_data")) { ?>
                <div class="form-group">
                    <div class="row">
                        <label for="export_my_data" class=" col-md-2"><?php echo app_lang('export_my_data'); ?></label>
                        <div class=" col-md-10">
                            <?php echo anchor(get_uri("clients/export_my_data/"), app_lang("export"), array("class" => "btn btn-primary", "title" => app_lang('export_my_data'))); ?>
                        </div>
                    </div>
                </div>
            <?php } ?>

            <?php if (get_setting("clients_can_request_account_removal")) { ?>
                <div class="form-group">
                    <div class="row">
                        <label for="request_my_account_removal" class=" col-md-2"><?php echo app_lang('i_want_to_remove_my_account'); ?></label>
                        <div class=" col-md-10">
                            <?php if ($user_info->requested_account_removal) { ?>
                                <span class="badge bg-danger large"><?php echo app_lang("applied"); ?></span> <?php echo anchor(get_uri("clients/request_my_account_removal/1"), app_lang("undo"), array("class" => "btn btn-primary", "title" => app_lang('i_want_to_remove_my_account'))); ?>
                            <?php
                            } else {
                                echo anchor(get_uri("clients/request_my_account_removal/"), app_lang("apply"), array("class" => "btn btn-danger", "title" => app_lang('i_want_to_remove_my_account')));
                            }
                            ?>
                        </div>
                    </div>
                </div>
            <?php } ?>

        </div>
    </div>
    <?php echo form_close(); ?>
</div>

<script type="text/javascript">
    $(document).ready(function() {

    });
</script>