<?php defined('MW_PATH') || exit('No direct script access allowed');

/**
 * This file is part of the MailWizz EMA application.
 * 
 * @package MailWizz EMA
 * @author Serban George Cristian <cristian.serban@mailwizz.com> 
 * @link http://www.mailwizz.com/
 * @copyright 2013-2014 MailWizz EMA (http://www.mailwizz.com)
 * @license http://www.mailwizz.com/license/
 * @since 1.3.3
 */
 
?>

<div class="col-lg-4">
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title"><?php echo Yii::t('campaign_reports', 'Bounce rate');?></h3>
        </div>
        <div class="panel-body" style="height:250px;">
            <h3 class="tracking-heading"><?php echo $campaign->stats->getBouncesRate(true);?>%</h3>
            
            <ul class="list-group">
                <li class="list-group-item"><span class="badge"><?php echo $campaign->stats->getProcessedCount(true);?></span> <?php echo Yii::t('campaign_reports', 'Processed');?></li>
                <li class="list-group-item"><span class="badge"><?php echo $campaign->stats->getBouncesCount(true);?></span> <?php echo Yii::t('campaign_reports', 'Bounced back');?></li>
                <li class="list-group-item active"><span class="badge"><?php echo $campaign->stats->getBouncesRate(true);?>%</span> <?php echo Yii::t('campaign_reports', 'Bounce rate');?></li>
                <li class="list-group-item"><span class="badge"><?php echo $campaign->stats->getHardBouncesCount(true);?></span> <?php echo Yii::t('campaign_reports', 'Hard bounces');?></li>
                <li class="list-group-item active"><span class="badge"><?php echo $campaign->stats->getHardBouncesRate(true);?>%</span> <?php echo Yii::t('campaign_reports', 'Hard bounce rate');?></li>
                <li class="list-group-item"><span class="badge"><?php echo $campaign->stats->getSoftBouncesCount(true);?></span> <?php echo Yii::t('campaign_reports', 'Soft bounce');?></li>
                <li class="list-group-item active"><span class="badge"><?php echo $campaign->stats->getSoftBouncesRate(true);?>%</span> <?php echo Yii::t('campaign_reports', 'Soft bounce rate');?></li>
            </ul>
        </div>
        <div class="panel-footer">
            <div class="pull-right">
                <a href="<?php echo $this->createUrl('campaign_reports/bounce', array('campaign_uid' => $campaign->campaign_uid));?>" class="btn btn-default btn-xs"><?php echo Yii::t('campaign_reports', 'View details');?></a>
            </div>
            <div class="clearfix"><!-- --></div>
        </div>
    </div>
</div>