<div class="large-6 columns">
    <div class="box collapsed-box">
        <div class="box-header bg-transparent">
            <!-- tools box -->
            <div class="pull-right box-tools">
                <span class="box-btn" data-toggle="configNews-dropdown3">
                    <i class="icon-ellipsis-vert"></i>
                </span>
                <div class="dropdown-pane configBoxButtons" data-position="bottom" data-alignment="center" id="configNews-dropdown3" data-dropdown data-close-on-click="true">
                    <ul class="no-bullet">
                        <?php if ($view['security']->isGranted('ROLE_NEWSLETTER_EDIT')): ?>
                            <li>
                                <a href="<?php echo $view['router']->path('wi_admin_newsletter_messagecontent_new', ['id' => $campaign->getId()]); ?>">
                                    <span><i class="icon-folder-add"></i><?php echo $view['translator']->trans('newsletter.blockContent.campaign.newMessageCurrent'); ?></span>
                                </a>
                            </li>
                        <?php endif; ?>
                    </ul>
                </div>
                <div class="pull-right box-tools">
                    <span>
                        <i class="icon-up-open collapseExpand" data-widget="collapse"></i>
                    </span>
                </div>
            </div>
            <h3 class="box-title" data-widget="collapse"><i class="icon-doc-text"></i>
                <span><?php echo $view['translator']->trans('newsletter.blockContent.campaign.content'); ?></span>
            </h3>
        </div>
        <div class="box-body " style="display: none;">
            <table id="campaignInfo" class="table-config tableResp" style="width:100%">
                <thead>
                    <tr>
                        <th class="langStyle"><?php echo $view['translator']->trans('newsletter.blockContent.campaign.id'); ?></th>
                        <th><?php echo $view['translator']->trans('newsletter.blockContent.campaign.messageTitle'); ?></th>
                        <th class="langStyle"><?php echo $view['translator']->trans('newsletter.blockContent.campaign.counter'); ?></th>
                    </tr>
                </thead>
                <tbody>
                <?php foreach ($campaign->getMessageContent() as $messageContent): ?>
                    <tr>
                        <td class="langStyle"><?php echo $messageContent->getId(); ?></td>
                        <td><a href="<?php echo $view['router']->path('wi_admin_newsletter_messagecontent_edit', ['id' => $messageContent->getId()]); ?>" class=""><?php echo $messageContent->getTitle(); ?></a></td>
                        <td class="langStyle"><?php echo $messageSendedCount[$messageContent->getId()]; ?></td>
                    </tr>
                <?php endforeach; ?>
                </tbody>
            </table>
        </div>
    </div>
</div>
