<?php

/* marketing/mart_newsletter_list.twig */
class __TwigTemplate_f4d67e21904f1dbe154243062db62dd00f508297d798176dd14758cde7943ace extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo (isset($context["header"]) ? $context["header"] : null);
        echo (isset($context["column_left"]) ? $context["column_left"] : null);
        echo "
<div id=\"content\">
  <div class=\"page-header\">
    <div class=\"container-fluid\">
      <div class=\"pull-right\"><a href=\"";
        // line 5
        echo (isset($context["add"]) ? $context["add"] : null);
        echo "\" data-toggle=\"tooltip\" title=\"";
        echo (isset($context["button_add"]) ? $context["button_add"] : null);
        echo "\" class=\"btn btn-primary\"><i class=\"fa fa-plus\"></i></a>
        <button type=\"button\" data-toggle=\"tooltip\" title=\"";
        // line 6
        echo (isset($context["button_delete"]) ? $context["button_delete"] : null);
        echo "\" class=\"btn btn-danger\" onclick=\"confirm('";
        echo (isset($context["text_confirm"]) ? $context["text_confirm"] : null);
        echo "') ? \$('#form-coupon').submit() : false;\"><i class=\"fa fa-trash-o\"></i></button>
      </div>
      <h1>";
        // line 8
        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
        echo "</h1>
      <ul class=\"breadcrumb\">
        ";
        // line 10
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            // line 11
            echo "        <li><a href=\"";
            echo $this->getAttribute($context["breadcrumb"], "href", array());
            echo "\">";
            echo $this->getAttribute($context["breadcrumb"], "text", array());
            echo "</a></li>
        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 13
        echo "      </ul>
    </div>
  </div>
  <div class=\"container-fluid\">
    ";
        // line 17
        if ((isset($context["error_warning"]) ? $context["error_warning"] : null)) {
            // line 18
            echo "    <div class=\"alert alert-danger\"><i class=\"fa fa-exclamation-circle\"></i> ";
            echo (isset($context["error_warning"]) ? $context["error_warning"] : null);
            echo "
      <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
    </div>
    ";
        }
        // line 22
        echo "    ";
        if ((isset($context["success"]) ? $context["success"] : null)) {
            // line 23
            echo "    <div class=\"alert alert-success\"><i class=\"fa fa-check-circle\"></i> ";
            echo (isset($context["success"]) ? $context["success"] : null);
            echo "
      <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
    </div>
    ";
        }
        // line 27
        echo "    <div class=\"panel panel-default\">
      <div class=\"panel-heading\">
        <h3 class=\"panel-title\"><i class=\"fa fa-list\"></i> ";
        // line 29
        echo (isset($context["text_list"]) ? $context["text_list"] : null);
        echo "</h3>
      </div>
      <div class=\"panel-body\">
        <form action=\"";
        // line 32
        echo (isset($context["delete"]) ? $context["delete"] : null);
        echo "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-coupon\">
          <div class=\"table-responsive\">
            <table class=\"table table-bordered table-hover\">
              <thead>
                <tr>
                  <td style=\"width: 1px;\" class=\"text-center\"><input type=\"checkbox\" onclick=\"\$('input[name*=\\'selected\\']').prop('checked', this.checked);\" /></td>
                  <td class=\"text-left\">
                    ";
        // line 39
        if (((isset($context["sort"]) ? $context["sort"] : null) == "newsletter_id")) {
            // line 40
            echo "                    <a href=\"";
            echo (isset($context["sort_newsletter_id"]) ? $context["sort_newsletter_id"] : null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, (isset($context["order"]) ? $context["order"] : null));
            echo "\">";
            echo (isset($context["column_newsletter_id"]) ? $context["column_newsletter_id"] : null);
            echo "</a>
                    ";
        } else {
            // line 42
            echo "                    <a href=\"";
            echo (isset($context["sort_newsletter_id"]) ? $context["sort_newsletter_id"] : null);
            echo "\">";
            echo (isset($context["column_newsletter_id"]) ? $context["column_newsletter_id"] : null);
            echo "</a>
                    ";
        }
        // line 44
        echo "                  </td>
                  <td class=\"text-left\">
                    ";
        // line 46
        if (((isset($context["sort"]) ? $context["sort"] : null) == "email")) {
            // line 47
            echo "                    <a href=\"";
            echo (isset($context["sort_email"]) ? $context["sort_email"] : null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, (isset($context["order"]) ? $context["order"] : null));
            echo "\">";
            echo (isset($context["column_email"]) ? $context["column_email"] : null);
            echo "</a>
                    ";
        } else {
            // line 49
            echo "                    <a href=\"";
            echo (isset($context["sort_email"]) ? $context["sort_email"] : null);
            echo "\">";
            echo (isset($context["column_email"]) ? $context["column_email"] : null);
            echo "</a>
                    ";
        }
        // line 51
        echo "                  </td>
                  <td class=\"text-left\">
                    ";
        // line 53
        if (((isset($context["sort"]) ? $context["sort"] : null) == "subscribe_date")) {
            // line 54
            echo "                    <a href=\"";
            echo (isset($context["sort_subscribe_date"]) ? $context["sort_subscribe_date"] : null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, (isset($context["order"]) ? $context["order"] : null));
            echo "\">";
            echo (isset($context["column_subscribe_date"]) ? $context["column_subscribe_date"] : null);
            echo "</a>
                    ";
        } else {
            // line 56
            echo "                    <a href=\"";
            echo (isset($context["sort_subscribe_date"]) ? $context["sort_subscribe_date"] : null);
            echo "\">";
            echo (isset($context["column_subscribe_date"]) ? $context["column_subscribe_date"] : null);
            echo "</a>
                    ";
        }
        // line 58
        echo "                  </td>
                  <td class=\"text-right\">";
        // line 59
        echo (isset($context["column_action"]) ? $context["column_action"] : null);
        echo "</td>
                </tr>
              </thead>
              <tbody>
                ";
        // line 63
        if ((isset($context["newsletters"]) ? $context["newsletters"] : null)) {
            // line 64
            echo "                ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["newsletters"]) ? $context["newsletters"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["newsletter"]) {
                // line 65
                echo "                <tr>
                  <td class=\"text-center\">
                    ";
                // line 67
                if (twig_in_filter($this->getAttribute($context["newsletter"], "newsletter_id", array()), (isset($context["selected"]) ? $context["selected"] : null))) {
                    // line 68
                    echo "                    <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo $this->getAttribute($context["newsletter"], "newsletter_id", array());
                    echo "\" checked=\"checked\" />
                    ";
                } else {
                    // line 70
                    echo "                    <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo $this->getAttribute($context["newsletter"], "newsletter_id", array());
                    echo "\" />
                    ";
                }
                // line 72
                echo "                  </td>
                  <td class=\"text-left\">";
                // line 73
                echo $this->getAttribute($context["newsletter"], "newsletter_id", array());
                echo "</td>
                  <td class=\"text-left\">";
                // line 74
                echo $this->getAttribute($context["newsletter"], "email", array());
                echo "</td>
                  <td class=\"text-left\">";
                // line 75
                echo $this->getAttribute($context["newsletter"], "subscribe_date", array());
                echo "</td>
                  <td class=\"text-right\"><a href=\"";
                // line 76
                echo $this->getAttribute($context["newsletter"], "edit", array());
                echo "\" data-toggle=\"tooltip\" title=\"";
                echo (isset($context["button_edit"]) ? $context["button_edit"] : null);
                echo "\" class=\"btn btn-primary\"><i class=\"fa fa-pencil\"></i></a></td>
                </tr>
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['newsletter'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 79
            echo "                ";
        } else {
            // line 80
            echo "                <tr>
                  <td class=\"text-center\" colspan=\"8\">";
            // line 81
            echo (isset($context["text_no_results"]) ? $context["text_no_results"] : null);
            echo "</td>
                </tr>
                ";
        }
        // line 84
        echo "              </tbody>
            </table>
          </div>
        </form>
        <div class=\"row\">
          <div class=\"col-sm-6 text-left\">";
        // line 89
        echo (isset($context["pagination"]) ? $context["pagination"] : null);
        echo "</div>
          <div class=\"col-sm-6 text-right\">";
        // line 90
        echo (isset($context["results"]) ? $context["results"] : null);
        echo "</div>
        </div>
      </div>
    </div>
  </div>
</div>
";
        // line 96
        echo (isset($context["footer"]) ? $context["footer"] : null);
        echo "
";
    }

    public function getTemplateName()
    {
        return "marketing/mart_newsletter_list.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  268 => 96,  259 => 90,  255 => 89,  248 => 84,  242 => 81,  239 => 80,  236 => 79,  225 => 76,  221 => 75,  217 => 74,  213 => 73,  210 => 72,  204 => 70,  198 => 68,  196 => 67,  192 => 65,  187 => 64,  185 => 63,  178 => 59,  175 => 58,  167 => 56,  157 => 54,  155 => 53,  151 => 51,  143 => 49,  133 => 47,  131 => 46,  127 => 44,  119 => 42,  109 => 40,  107 => 39,  97 => 32,  91 => 29,  87 => 27,  79 => 23,  76 => 22,  68 => 18,  66 => 17,  60 => 13,  49 => 11,  45 => 10,  40 => 8,  33 => 6,  27 => 5,  19 => 1,);
    }
}
/* {{ header }}{{ column_left }}*/
/* <div id="content">*/
/*   <div class="page-header">*/
/*     <div class="container-fluid">*/
/*       <div class="pull-right"><a href="{{ add }}" data-toggle="tooltip" title="{{ button_add }}" class="btn btn-primary"><i class="fa fa-plus"></i></a>*/
/*         <button type="button" data-toggle="tooltip" title="{{ button_delete }}" class="btn btn-danger" onclick="confirm('{{ text_confirm }}') ? $('#form-coupon').submit() : false;"><i class="fa fa-trash-o"></i></button>*/
/*       </div>*/
/*       <h1>{{ heading_title }}</h1>*/
/*       <ul class="breadcrumb">*/
/*         {% for breadcrumb in breadcrumbs %}*/
/*         <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>*/
/*         {% endfor %}*/
/*       </ul>*/
/*     </div>*/
/*   </div>*/
/*   <div class="container-fluid">*/
/*     {% if error_warning %}*/
/*     <div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}*/
/*       <button type="button" class="close" data-dismiss="alert">&times;</button>*/
/*     </div>*/
/*     {% endif %}*/
/*     {% if success %}*/
/*     <div class="alert alert-success"><i class="fa fa-check-circle"></i> {{ success }}*/
/*       <button type="button" class="close" data-dismiss="alert">&times;</button>*/
/*     </div>*/
/*     {% endif %}*/
/*     <div class="panel panel-default">*/
/*       <div class="panel-heading">*/
/*         <h3 class="panel-title"><i class="fa fa-list"></i> {{ text_list }}</h3>*/
/*       </div>*/
/*       <div class="panel-body">*/
/*         <form action="{{ delete }}" method="post" enctype="multipart/form-data" id="form-coupon">*/
/*           <div class="table-responsive">*/
/*             <table class="table table-bordered table-hover">*/
/*               <thead>*/
/*                 <tr>*/
/*                   <td style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);" /></td>*/
/*                   <td class="text-left">*/
/*                     {% if sort == 'newsletter_id' %}*/
/*                     <a href="{{ sort_newsletter_id }}" class="{{ order|lower }}">{{ column_newsletter_id }}</a>*/
/*                     {% else %}*/
/*                     <a href="{{ sort_newsletter_id }}">{{ column_newsletter_id }}</a>*/
/*                     {% endif %}*/
/*                   </td>*/
/*                   <td class="text-left">*/
/*                     {% if sort == 'email' %}*/
/*                     <a href="{{ sort_email }}" class="{{ order|lower }}">{{ column_email }}</a>*/
/*                     {% else %}*/
/*                     <a href="{{ sort_email }}">{{ column_email }}</a>*/
/*                     {% endif %}*/
/*                   </td>*/
/*                   <td class="text-left">*/
/*                     {% if sort == 'subscribe_date' %}*/
/*                     <a href="{{ sort_subscribe_date }}" class="{{ order|lower }}">{{ column_subscribe_date }}</a>*/
/*                     {% else %}*/
/*                     <a href="{{ sort_subscribe_date }}">{{ column_subscribe_date }}</a>*/
/*                     {% endif %}*/
/*                   </td>*/
/*                   <td class="text-right">{{ column_action }}</td>*/
/*                 </tr>*/
/*               </thead>*/
/*               <tbody>*/
/*                 {% if newsletters %}*/
/*                 {% for newsletter in newsletters %}*/
/*                 <tr>*/
/*                   <td class="text-center">*/
/*                     {% if newsletter.newsletter_id in selected %}*/
/*                     <input type="checkbox" name="selected[]" value="{{ newsletter.newsletter_id}}" checked="checked" />*/
/*                     {% else %}*/
/*                     <input type="checkbox" name="selected[]" value="{{ newsletter.newsletter_id }}" />*/
/*                     {% endif %}*/
/*                   </td>*/
/*                   <td class="text-left">{{ newsletter.newsletter_id }}</td>*/
/*                   <td class="text-left">{{ newsletter.email }}</td>*/
/*                   <td class="text-left">{{ newsletter.subscribe_date }}</td>*/
/*                   <td class="text-right"><a href="{{ newsletter.edit }}" data-toggle="tooltip" title="{{ button_edit }}" class="btn btn-primary"><i class="fa fa-pencil"></i></a></td>*/
/*                 </tr>*/
/*                 {% endfor %}*/
/*                 {% else %}*/
/*                 <tr>*/
/*                   <td class="text-center" colspan="8">{{ text_no_results }}</td>*/
/*                 </tr>*/
/*                 {% endif %}*/
/*               </tbody>*/
/*             </table>*/
/*           </div>*/
/*         </form>*/
/*         <div class="row">*/
/*           <div class="col-sm-6 text-left">{{ pagination }}</div>*/
/*           <div class="col-sm-6 text-right">{{ results }}</div>*/
/*         </div>*/
/*       </div>*/
/*     </div>*/
/*   </div>*/
/* </div>*/
/* {{ footer }}*/
/* */
