<div class="page-headline">
    <img src="<?php echo $this->imagePath; ?>/icons/settings.svg" alt="">
    <h3><?php _ex('Statistics', 'Headline right of icon', 'borlabs-cookie'); ?></h3>
</div>
<div class="content">

    <div class="messages">
    <?php echo \BorlabsCookie\Cookie\Backend\Backend::getInstance()->getMessages(); ?>
    </div>

    <?php
    if (\BorlabsCookie\Cookie\Backend\License::getInstance()->isPluginUnlocked()) {
    ?>
        <h4><?php _ex('Statistics - Last 7 days', 'Headline', 'borlabs-cookie'); ?></h4>
        <?php
        if ($hideStats == false) {
        ?>
        <ul class="stats">
            <li>
                <span class="title"><?php _ex('Option: Third-party', 'Column title', 'borlabs-cookie'); ?></span>
                <span class="number"><?php echo number_format_i18n($stats['all']); ?></span>
            </li>
            <li>
                <span class="title"><?php _ex('Option: First-party', 'Column title', 'borlabs-cookie'); ?></span>
                <span class="number"><?php echo number_format_i18n($stats['first-party']); ?></span>
            </li>
            <li>
                <span class="title"><?php _ex('Option: No cookies', 'Column title', 'borlabs-cookie'); ?></span>
                <span class="number"><?php echo number_format_i18n($stats['reject-all']); ?></span>
            </li>
            <li>
                <span class="title"><?php _ex('Opted out: Google', 'Column title', 'borlabs-cookie'); ?></span>
                <span class="number"><?php echo number_format_i18n($stats['opted-out-ga']); ?></span>
            </li>
            <li>
                <span class="title"><?php _ex('Opted out: Facebook', 'Column title', 'borlabs-cookie'); ?></span>
                <span class="number"><?php echo number_format_i18n($stats['opted-out-fb']); ?></span>
            </li>
        </ul>
        <?php
        } else {
            ?>
            <div class="messages">
                <p class="error"><?php echo sprintf(_x('Your MySQL version <strong>%s</strong> is outdated and not supported by Borlabs Cookie. Please upgrade to MySQL 5.6 or higher to see the statistics.', 'Status message', 'borlabs-cookie'), $mysqlVersion); ?></p>
            </div>
            <?php
        }
    } else {
        echo \BorlabsCookie\Cookie\Backend\License::getInstance()->getNoLicenseMessage();
    }
    ?>
</div>