<?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.1
 */
 
?>
<div class="box box-primary" id="ea-box-wrapper" data-success="<?php echo Yii::t('app', 'Your action completed successfully');?>" data-error="<?php echo Yii::t('app', 'Your action completed with errors');?>">
    <div class="box-header">
        <div class="pull-left">
            <h3 class="box-title">
                <span class="fa fa-warning"></span> <?php echo $pageHeading;?>
            </h3>
        </div>
        <div class="pull-right"></div>
        <div class="clearfix"><!-- --></div>
    </div>
    <div class="box-body">
        <div class="callout callout-danger">
            <h4><?php echo Yii::t('app', 'Please use with caution!');?></h4>
            <p><?php echo Yii::t('app', 'Please use bellow options only if you know what you are doing. The way your application works and behaves depends on these actions.');?></p>
        </div>
        <div class="col-lg-4">
            <div class="box box-solid box-danger">
                <div class="box-header">
                    <h5 class="box-title"><?php echo Yii::t('app', 'Delivery PID');?></h5>
                </div>
                <div class="box-body">
                    <span>
                        <?php echo Yii::t('app', 'Remove the PID for send-campaigns cron command!');?><br />
                    </span>
                    <div class="clearfix"><!-- --></div>
                    <br />
                    <span>
                        <div class="pull-right">
                            <a class="btn btn-danger btn-xs btn-flat remove-sending-pid" href="<?php echo $this->createUrl('misc/remove_sending_pid');?>" data-confirm="<?php echo Yii::t('app', 'Are you sure you need to run this action?');?>"><?php echo Yii::t('app', 'I understand, do it!');?></a>
                        </div>
                        <div class="clearfix"><!-- --></div>
                    </span>
                </div>
            </div>
        </div>
        <div class="col-lg-4">
            <div class="box box-solid box-danger">
                <div class="box-header">
                    <h3 class="box-title"><?php echo Yii::t('app', 'Bounce PID');?></h3>
                </div>
                <div class="box-body">
                    <span>
                        <?php echo Yii::t('app', 'Remove the PID for bounce-handler cron command!');?><br />
                    </span>
                    <div class="clearfix"><!-- --></div>
                    <br />
                    <span>
                        <div class="pull-right">
                            <a class="btn btn-danger btn-xs btn-flat remove-bounce-pid" href="<?php echo $this->createUrl('misc/remove_bounce_pid');?>" data-confirm="<?php echo Yii::t('app', 'Are you sure you need to run this action?');?>"><?php echo Yii::t('app', 'I understand, do it!');?></a>
                        </div>
                        <div class="clearfix"><!-- --></div>
                    </span>
                </div>
            </div>
        </div>
        <div class="col-lg-4">
            <div class="box box-solid box-danger">
                <div class="box-header">
                    <h3 class="box-title"><?php echo Yii::t('app', 'Feedback loop PID');?></h3>
                </div>
                <div class="box-body">
                    <span>
                        <?php echo Yii::t('app', 'Remove the PID for feedback-loop-handler cron command!');?><br />
                    </span>
                    <div class="clearfix"><!-- --></div>
                    <br />
                    <span>
                        <div class="pull-right">
                            <a class="btn btn-danger btn-xs btn-flat remove-fbl-pid" href="<?php echo $this->createUrl('misc/remove_fbl_pid');?>" data-confirm="<?php echo Yii::t('app', 'Are you sure you need to run this action?');?>"><?php echo Yii::t('app', 'I understand, do it!');?></a>
                        </div>
                        <div class="clearfix"><!-- --></div>
                    </span>
                </div>
            </div>
        </div>
        <div class="clearfix"><!-- --></div>
        <div class="col-lg-4">
            <div class="box box-solid box-danger">
                <div class="box-header">
                    <h3 class="box-title"><?php echo Yii::t('app', 'Campaign status');?></h3>
                </div>
                <div class="box-body">
                    <span>
                        <?php echo Yii::t('app', 'Change the status of stuck campaigns from processing to sending!');?><br />
                    </span>
                    <div class="clearfix"><!-- --></div>
                    <br />
                    <span>
                        <div class="pull-right">
                            <a class="btn btn-danger btn-xs btn-flat reset-campaigns" href="<?php echo $this->createUrl('misc/reset_campaigns');?>" data-confirm="<?php echo Yii::t('app', 'Are you sure you need to run this action?');?>"><?php echo Yii::t('app', 'I understand, do it!');?></a>
                        </div>
                        <div class="clearfix"><!-- --></div>
                    </span>
                </div>
            </div>
        </div>
        <div class="col-lg-4">
            <div class="box box-solid box-danger">
                <div class="box-header">
                    <h3 class="box-title"><?php echo Yii::t('app', 'Bounce servers');?></h3>
                </div>
                <div class="box-body">
                    <span>
                        <?php echo Yii::t('app', 'Change the status of stuck bounce servers from cron-running to active!');?><br />
                    </span>
                    <div class="clearfix"><!-- --></div>
                    <br />
                    <span>
                        <div class="pull-right">
                            <a class="btn btn-danger btn-xs btn-flat reset-bounce-servers" href="<?php echo $this->createUrl('misc/reset_bounce_servers');?>" data-confirm="<?php echo Yii::t('app', 'Are you sure you need to run this action?');?>"><?php echo Yii::t('app', 'I understand, do it!');?></a>
                        </div>
                        <div class="clearfix"><!-- --></div>
                    </span>
                </div>
            </div>
        </div>
        <div class="col-lg-4">
            <div class="box box-solid box-danger">
                <div class="box-header">
                    <h3 class="box-title"><?php echo Yii::t('app', 'Feedback loop servers');?></h3>
                </div>
                <div class="box-body">
                    <span>
                        <?php echo Yii::t('app', 'Change the status of stuck feedback loop servers from cron-running to active!');?><br />
                    </span>
                    <div class="clearfix"><!-- --></div>
                    <br />
                    <span>
                        <div class="pull-right">
                            <a class="btn btn-danger btn-xs btn-flat reset-fbl-servers" href="<?php echo $this->createUrl('misc/reset_fbl_servers');?>" data-confirm="<?php echo Yii::t('app', 'Are you sure you need to run this action?');?>"><?php echo Yii::t('app', 'I understand, do it!');?></a>
                        </div>
                        <div class="clearfix"><!-- --></div>
                    </span>
                </div>
            </div>
        </div>
                            
        <div class="clearfix"><!-- --></div>
    </div>
</div>