<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' => 'customer'))) ?>"><?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-body">
                            <form action="<?php echo $base_url;?>" method="post" class="wlpr-imprt-preview" id="wlpr-imprt-preview-id"  enctype="multipart/form-data">
                                <!-- file data -->
                                <input type="hidden" name="name" value="<?php echo (isset($file['name'])&&!empty($file['name'])) ? $file['name']: ''; ?>"/>
                                <input type="hidden" name="type" value="<?php echo (isset($file['type'])&&!empty($file['type'])) ? $file['type']: ''; ?>"/>
                                <input type="hidden" name="tmp_name" value="<?php echo (isset($file['tmp_name'])&&!empty($file['tmp_name'])) ? $file['tmp_name']: ''; ?>"/>
                                <input type="hidden" name="error" value="<?php echo (isset($file['error'])&&!empty($file['error'])) ? $file['error']: ''; ?>"/>
                                <input type="hidden" name="size" value="<?php echo (isset($file['size'])&&!empty($file['size'])) ? $file['size']: ''; ?>"/>
                                <input type="hidden" id="wlpr-total-count" name="total_count" value="<?php echo (isset($total_count)&&!empty($total_count)) ? $total_count: 0; ?>"/>
                                <input type="hidden" id="wlpr-need-update" name="need_update" value="<?php echo (isset($need_update)&&!empty($need_update)) ? $need_update: 'no'; ?>"/>
                                <table>
                                    <tr>
                                        <td><?php echo __('Total items:',WLPR_TEXT_DOMAIN);?></td>
                                        <td><?php echo sprintf('%s',$total_count);?></td>
                                    </tr>
                                    <tr>
                                        <td><?php echo __('Processed items:',WLPR_TEXT_DOMAIN);?></td>
                                        <td><span id="wlpr-process-count"><?php echo $process_count;?></span></td>
                                    </tr>
                                </table>
                                <table>
                                    <tr>
                                        <td><?php echo __('Field Name',WLPR_TEXT_DOMAIN);?></td>
                                        <td><?php echo __('Field Value',WLPR_TEXT_DOMAIN);?></td>
                                    </tr>
                                    <?php if(isset($header) && !empty($header)): ?>
                                    <?php foreach (	$header as $header_key => $header_value):

                                            ?>
                                        <tr>
                                            <td><?php echo $header_key;?></td>
                                            <td><?php echo $header_value;?></td>
                                        </tr>
                                    <?php endforeach;?>
                                    <?php endif; ?>
                                </table>
                                <input type="hidden" name="page" value="<?php echo WLPR_PLUGIN_SLUG; ?>"/>
                                <input type="hidden" name="action" value="wlpr_process_import"/>
                                <input type="hidden" name="file_format" value="CSV"/>
                                <input type="hidden" id="limit_start" name="limit_start" value="0"/>
                                <input type="hidden" name="wlpr_none" value="<?php echo $wlpr_none;?>"/>
                                <input type="hidden" id="limit" name="limit" value="<?php echo (isset($limit) && !empty($limit)) ? $limit: 5;?>"/>
                                <div class="row row-brd">
                                    <div class="lpr-label-input float-right">
                                        <a id="wlpr-process-import-button" onclick="wlpr.startImport()" class="lpr-button-btn"> <?php echo __('Import',WLPR_TEXT_DOMAIN);?></a>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                <div id="notification" class="lpr-notification">

                </div>
            </div>
        </div>
    </section>
</div>