<?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.0
 */
 
?>

<div class="panel panel-default">
    <div class="panel-heading">
        <div class="pull-left">
            <h3 class="panel-title">
                <span class="glyphicon glyphicon-list-alt"></span> <?php echo Yii::t('lists', 'Overview');?>
            </h3>
        </div>
        <div class="pull-right">
            <?php echo CHtml::link(Yii::t('app', 'Create new'), array('lists/create'), array('class' => 'btn btn-default btn-xs', 'title' => Yii::t('app', 'New')));?>
            <?php echo CHtml::link(Yii::t('app', 'Update'), array('lists/update', 'list_uid' => $list->list_uid), array('class' => 'btn btn-default btn-xs', 'title' => Yii::t('app', 'Update')));?>
        </div>
        <div class="clearfix"><!-- --></div>
    </div>
    <div class="panel-body">
    
        <div class="panel panel-default panel-tiny">
            <div class="panel-heading">
                <h3><?php echo Yii::t('list_subscribers', 'Subscribers');?></h3>
            </div>
            <div class="panel-body">
                <?php echo Yii::t('list_subscribers', 'Your list currently contains {count} subscribers.', array(
                    '{count}' => Yii::app()->format->formatNumber($subscribersCount)
                ));?>
            </div>
            <div class="panel-footer">
                <div class="pull-left">
                    <a href="<?php echo Yii::app()->createUrl("list_subscribers/create", array("list_uid" => $list->list_uid));?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-plus-sign"></span> <?php echo Yii::t('app', 'Add new');?></a>
                </div>
                <div class="pull-right">
                    <a href="<?php echo Yii::app()->createUrl("list_subscribers/index", array("list_uid" => $list->list_uid));?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-eye-open"></span> <?php echo Yii::t('app', 'View all');?></a>
                </div>
                <div class="clearfix"><!-- --></div>
            </div>
        </div>
        
        <div class="panel panel-default panel-tiny">
            <div class="panel-heading">
                <h3><?php echo Yii::t('list_segments', 'Segments');?></h3>
            </div>
            <div class="panel-body">
                <?php echo Yii::t('list_segments', 'Your list currently contains {count} segments.', array(
                    '{count}' => Yii::app()->format->formatNumber($segmentsCount)
                ));?>
            </div>
            <div class="panel-footer">
                <div class="pull-left">
                    <a href="<?php echo Yii::app()->createUrl("list_segments/create", array("list_uid" => $list->list_uid));?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-plus-sign"></span> <?php echo Yii::t('app', 'Add new');?></a>
                </div>
                <div class="pull-right">
                    <a href="<?php echo Yii::app()->createUrl("list_segments/index", array("list_uid" => $list->list_uid));?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-eye-open"></span> <?php echo Yii::t('app', 'View all');?></a>
                </div>
                <div class="clearfix"><!-- --></div>
            </div>
        </div>
        
        <div class="panel panel-default panel-tiny">
            <div class="panel-heading">
                <h3><?php echo Yii::t('list_fields', 'Custom fields');?></h3>
            </div>
            <div class="panel-body">
                <?php echo Yii::t('list_fields', 'Your list currently contains {count} custom fields.', array(
                    '{count}' => Yii::app()->format->formatNumber($customFieldsCount)
                ));?>
            </div>
            <div class="panel-footer">
                <div class="pull-left">
                </div>
                <div class="pull-right">
                    <a href="<?php echo Yii::app()->createUrl("list_fields/index", array("list_uid" => $list->list_uid));?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-cog"></span> <?php echo Yii::t('app', 'Manage');?></a>
                </div>
                <div class="clearfix"><!-- --></div>
            </div>
        </div>
        
        <div class="panel panel-default panel-tiny">
            <div class="panel-heading">
                <h3><?php echo Yii::t('list_pages', 'Pages');?></h3>
            </div>
            <div class="panel-body">
                <?php echo Yii::t('list_pages', 'Your list currently contains {count} pages.', array(
                    '{count}' => Yii::app()->format->formatNumber($pagesCount)
                ));?>
            </div>
            <div class="panel-footer">
                <div class="pull-left">
                </div>
                <div class="pull-right">
                    <a href="<?php echo Yii::app()->createUrl("list_page/index", array("list_uid" => $list->list_uid, 'type' => 'subscribe-form'));?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-cog"></span> <?php echo Yii::t('app', 'Manage');?></a>
                </div>
                <div class="clearfix"><!-- --></div>
            </div>
        </div>
        
        <div class="panel panel-default panel-tiny">
            <div class="panel-heading">
                <h3><?php echo Yii::t('list_forms', 'Embed forms');?></h3>
            </div>
            <div class="panel-body">
                <?php echo Yii::t('list_forms', 'See available forms to embed into your website.');?>
            </div>
            <div class="panel-footer">
                <div class="pull-left">
                </div>
                <div class="pull-right">
                    <a href="<?php echo Yii::app()->createUrl("list_forms/index", array("list_uid" => $list->list_uid));?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-eye-open"></span> <?php echo Yii::t('app', 'View');?></a>
                </div>
                <div class="clearfix"><!-- --></div>
            </div>
        </div>
        
        <div class="panel panel-default panel-tiny">
            <div class="panel-heading">
                <h3><?php echo Yii::t('list_import', 'Import subscribers');?></h3>
            </div>
            <div class="panel-body">
                <?php echo Yii::t('list_import', 'Importing tools for your list.');?>
            </div>
            <div class="panel-footer">
                <div class="pull-left">
                </div>
                <div class="pull-right">
                    <a href="<?php echo Yii::app()->createUrl("list_import/index", array("list_uid" => $list->list_uid));?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-eye-open"></span> <?php echo Yii::t('app', 'View tools');?></a>
                </div>
                <div class="clearfix"><!-- --></div>
            </div>
        </div>
        
        <div class="panel panel-default panel-tiny">
            <div class="panel-heading">
                <h3><?php echo Yii::t('list_export', 'Export subscribers');?></h3>
            </div>
            <div class="panel-body">
                <?php echo Yii::t('list_export', 'Exporting tools for your list.');?>
            </div>
            <div class="panel-footer">
                <div class="pull-left">
                </div>
                <div class="pull-right">
                    <a href="<?php echo Yii::app()->createUrl("list_export/index", array("list_uid" => $list->list_uid));?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-eye-open"></span> <?php echo Yii::t('app', 'View tools');?></a>
                </div>
                <div class="clearfix"><!-- --></div>
            </div>
        </div>
        
    </div>
</div>