Current File : /home/e/t/i/eticmes/www/wp-content/plugins/newsletter-import/admin/progress.php
<?php $stats = get_option('newsletter_import_stats', []); ?>
<?php if ($stats) { ?>
    <p style="font-size: 1.5rem; font-weight: bold;">Progress: <?php echo esc_html($this->get_progress())?>%</p>

    <table class="widefat" style="width: auto">
        <thead>
            <tr>
                <th>Parameter</th>
                <th>Value</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <th>
                    Total lines
                </th>
                <td>
                    <?php echo esc_html($stats['total']) ?>

                </td>
            </tr>
            <tr>
                <th>
                    New subscribers
                </th>
                <td>
                    <?php echo esc_html($stats['new']) ?>

                </td>
            </tr>
            <tr>
                <th>
                    Updated subscribers
                </th>
                <td>
                    <?php echo esc_html($stats['updated']) ?>

                </td>
            </tr>
            <tr>
                <th>
                    Skipped subscribers
                </th>
                <td>
                    <?php echo esc_html($stats['skipped']) ?>

                </td>
            </tr>
            <tr>
                <th>
                    Errors
                </th>
                <td>
                    <?php echo esc_html($stats['errors']) ?>
                    <?php if (!empty($stats['errors'])) { ?>
                        Details can be found <a href="?page=newsletter_main_logs" target="_blank">on log files</a>.
                    <?php } ?>
                </td>
            </tr>
            <tr>
                <th>
                    Empty lines
                </th>
                <td>
                    <?php echo esc_html($stats['empty']) ?>
                </td>
            </tr>
        </tbody>

    </table>
<?php } ?>