<div id="wlpr-main">
    <section class="full-width">
        <div class="row full-width">
            <div class="columns twelve mtb-2">
                <div class="lpr-row side-elements">
                    <a class="button lpr-btn-back"
                       href="<?php echo admin_url('admin.php?' . http_build_query(array('page' => WLPR_PLUGIN_SLUG, 'view' => 'dashboard'))) ?>"><?php esc_html_e('Back', WLPR_TEXT_DOMAIN); ?></a>
                </div>
            </div>
            <div class="lpr-row lpr-card-customer-main">
                <div class="lpr-card-customer">
                    <div class="lpr_card">
                        <div class="lpr_card-header">
                            <h4><?php esc_html_e('Customer Point Import', WLPR_TEXT_DOMAIN); ?></h4>
                        </div>
                        <div class="lpr_card-body">
                            <form action="<?php echo $base_url; ?>" method="post" id="import_user_point_form" name="import_user_point" enctype="multipart/form-data">
                                <div class="row row-brd side-elements">
                                    <div class="lpr-label-text">
                                        <label><?php esc_html_e('Import File', WLPR_TEXT_DOMAIN); ?></label>
                                    </div>
                                    <div class="lpr-label-input">
                                        <input id="wlpr-import-file" type="file" name="importfile" value="" accept=".csv"/>
                                    </div>
                                </div>

                                <div class="row row-brd side-elements">
                                    <div class="lpr-label-text">
                                        <label><?php esc_html_e('Update the points when customer already exists', WLPR_TEXT_DOMAIN); ?></label>
                                    </div>
                                    <div class="lpr-label-input">
                                        <select name="need_update">
                                            <option value="no"><?php echo __('No',WLPR_TEXT_DOMAIN)?></option>
                                            <option value="yes"><?php echo __('Yes',WLPR_TEXT_DOMAIN)?></option>
                                        </select>
                                    </div>
                                </div>
                                <div class="row row-brd side-elements">
                                    <div class="lpr-label-text">
                                        <label><?php esc_html_e('How many records to import per batch', WLPR_TEXT_DOMAIN); ?></label>
                                    </div>
                                    <div class="lpr-label-input">

                                        <select id="wlpr-file-limit" name="limit">
                                            <?php foreach (array(10, 20, 40, 50, 75, 100, 200) as $file_limit): ?>
                                                <option value="<?php echo $file_limit;?>>"><?php echo $file_limit;?></option>
                                            <?php endforeach; ?>
                                        </select>
                                    </div>
                                    <input type="hidden" name="delimiter" value=","/>
                                    <input type="hidden" name="page" value="<?php echo WLPR_PLUGIN_SLUG; ?>"/>
                                    <input type="hidden" name="action" value="wlpr_import_popup_preview"/>
                                    <input type="hidden" name="file_format" value="CSV"/>
                                    <input type="hidden" name="wlpr_none" value="<?php echo $wlpr_none;?>"/>

                                </div>
                                <div class="row row-brd">
                                    <div class="lpr-label-input float-right">
                                        <a class="lpr-button-btn" onclick="wlpr.importUsers()"><?php echo __('Import',WLPR_TEXT_DOMAIN);?></a>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>
