<div class="stat_bar mini" style="display: block">
    {if $leaderboard_include}
        {*LB*}
{/if}
    <div class="dashboard_stats_bar_container mini">
        {capture name='MH_RESPONSIVE'}{mh_cfg key='MH_RESPONSIVE'}{/capture}
        {if $smarty.capture.MH_RESPONSIVE  ne 'True'}
            <div class="sb_chart mini">
                <div class="chart_label mini" style="text-align: left;">
                    <div class="arrow_box mini">

                        <img src="{$MH_CATALOG_URL}{$MH_ROOT_PATH}common/images/icon_mobile_32.png" width="12"
                             height="12" align="absmiddle" hspace="0" border="0"
                             style="margin-top: -2px">{mh_cfg key='MAILBEEZ_STATSBAR_LABEL_MOBILE'}
                        : {$pct_mobile|string_format:"%d"}%
                        {*({$cnt_mobile|default:'0'})*}
                    </div>
                </div>
            </div>
        {elseif (false)}
            <div class="sb_chart mini">
                <div class="sb_percentage_mini-open" data-percent="{$pct_mobile|string_format:"%d"}" style="margin: auto">
                    <span>{$pct_mobile|string_format:"%d"}</span>%
                </div>
                <div class="chart_label mini">

                    <img src="{$MH_CATALOG_URL}{$MH_ROOT_PATH}common/images/icon_mobile_32.png" width="12"
                         height="12" align="absmiddle" hspace="0" border="0"
                         style="margin-top: -2px">

                    {mh_cfg key='MAILBEEZ_STATSBAR_LABEL_MOBILE'}:
                    <br>
                    {$cnt_mobile|default:'0'}
                </div>
            </div>
            <div class="sb_chart_arrow mini"></div>
        {/if}


        {*<div class="sb_chart_divider mini"></div>*}


        <div class="sb_chart_number mini" style="padding-right: 15px;">
            <div class="number mini" style="text-align: right">{$cnt_sent}</div>
            <div class="chart_label mini" style="text-align: right">
                {mh_cfg key='MAILBEEZ_STATSBAR_LABEL_EMAILS'} {mh_cfg key='MAILBEEZ_STATSBAR_LABEL_SENT'}
                <br/>
                {if !$hide_timeago}
                    {if $beginning_of_time != '2000-01-01 00:00:00'}
                        {mh_cfg key='MAILBEEZ_STATSBAR_LABEL_BEGIN_OF_TIME'}
                        <abbr class="timeago" title="{$beginning_of_time}">{$beginning_of_time}</abbr>
                    {/if}
                {/if}
            </div>
        </div>

        <div class="sb_chart_arrow mini">&gt;</div>
        {capture name='MH_BOUNCEHANDLING_ENABLED'}{mh_cfg key='MH_BOUNCEHANDLING_ENABLED'}{/capture}
        {if $smarty.capture.MH_BOUNCEHANDLING_ENABLED == true}
            <div class="sb_chart mini">
                <div class="sb_percentage_mini-delivered" data-percent="{$pct_delivered|string_format:"%d"}" style="margin: auto">
                    <span>{$pct_delivered|string_format:"%d"}</span>%
                </div>
                <div class="chart_label mini">{mh_cfg key='MAILBEEZ_STATSBAR_LABEL_DELIVERED'}: <br/>
                    {$cnt_delivered|default:'0'}
                </div>
            </div>
            <div class="sb_chart_arrow mini">&gt;</div>
        {/if}


        <div class="sb_chart mini">
            <div class="sb_percentage_mini-open mini" data-percent="{$pct_opened|string_format:"%d"}" style="margin: auto">
                <span>{$pct_opened|string_format:"%d"}</span>%
            </div>
            <div class="chart_label mini">{mh_cfg key='MAILBEEZ_STATSBAR_LABEL_OPENED'}: <br/>
                {$cnt_opened|default:'0'}
            </div>
        </div>
        <div class="sb_chart_arrow mini">&gt;</div>
        <div class="sb_chart mini">
            <div class="sb_percentage_mini-click mini" data-percent="{$pct_clicked|string_format:"%d"}" style="margin: auto">
                <span>{$pct_clicked|string_format:"%d"}</span>%
            </div>
            <div class="chart_label mini">{mh_cfg key='MAILBEEZ_STATSBAR_LABEL_CLICKED'}: <br/>
                {$cnt_clicked|default:'0'}</div>
        </div>
        <div class="sb_chart_arrow mini">&gt;</div>
        <div class="sb_chart mini">
            <div class="sb_percentage_mini-order mini" data-percent="{$pct_ordered|string_format:"%d"}" style="margin: auto">
                <span>{$pct_ordered|string_format:"%d"}</span>%
            </div>
            <div class="chart_label mini">{mh_cfg key='MAILBEEZ_STATSBAR_LABEL_ORDERED'}: <br/>
                {$cnt_orders|default:'0'}</div>
        </div>
        <div class="sb_chart_arrow mini">&gt;</div>
        <div class="sb_chart_number mini">
            <div class="number mini" style="text-align: right">{$revenue}</div>
            <div class="chart_label mini" style="text-align: right">
                {mh_lng key='MAILBEEZ_STATSBAR_LABEL_REVENUE'}<br>
                {*{$smarty.const.MAILBEEZ_STATSBAR_LABEL_COUPON_VAL}: {$coupon_val}</div>*}
            </div>

            <div style="clear:both; height: 2px;"></div>


        </div>        <div class="sb_chart_number mini">
            <div class="number mini" style="text-align: right;">&nbsp;<span style=" font-size:14px">{$revenue_email}</span></div>
            <div class="chart_label mini" style="text-align: right">
{*                {mh_lng key='MAILBEEZ_STATSBAR_LABEL_REVENUE'}*}
                per Email
                <br>
                {*{$smarty.const.MAILBEEZ_STATSBAR_LABEL_COUPON_VAL}: {$coupon_val}</div>*}
            </div>

            <div style="clear:both; height: 2px;"></div>


        </div>
        <div style="clear:both; height: 2px;"></div>

    </div>

</div>
{if $leaderboard_include}
<script type="text/javascript">
    {literal}
    jQuery(document).ready(function () {
    {/literal}
        addLeader('{$widget_module_id}', '{$pct_mobile|string_format:"%d"}%', {$cnt_sent}, '{$pct_opened|string_format:"%d"}%', '{$pct_clicked|string_format:"%d"}%', '{$pct_ordered|string_format:"%d"}%', '{$revenue}', '{$revenue_email}');
    {literal}
    });
    {/literal}

</script>
{/if}
