<?php

/* catalog/recurring_list.twig */
class __TwigTemplate_d414397f0f516da98dc8d9f641bf126d17af6e14fec3d0a89228511342e8e710 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 "
<!-- Content Wrapper. Contains page content -->
<div id=\"content\" class=\"content-wrapper\">
  <!-- Content Header (Page header) -->
  <section class=\"content-header\">
    <div>
      <div class=\"pull-right\">
        <a href=\"";
        // line 8
        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 btn-sm\"><i class=\"fa fa-plus\"></i> ";
        echo (isset($context["button_add"]) ? $context["button_add"] : null);
        echo "</a>
        <button type=\"submit\" form=\"form-recurring\" formaction=\"";
        // line 9
        echo (isset($context["copy"]) ? $context["copy"] : null);
        echo "\" data-toggle=\"tooltip\" title=\"";
        echo (isset($context["button_copy"]) ? $context["button_copy"] : null);
        echo "\" class=\"btn btn-default btn-sm\"><i class=\"fa fa-copy\"></i> ";
        echo (isset($context["button_copy"]) ? $context["button_copy"] : null);
        echo "</button>
        <button type=\"button\" data-toggle=\"tooltip\" title=\"";
        // line 10
        echo (isset($context["button_delete"]) ? $context["button_delete"] : null);
        echo "\" class=\"btn btn-danger btn-sm\" onclick=\"confirm('";
        echo (isset($context["text_confirm"]) ? $context["text_confirm"] : null);
        echo "') ? \$('#form-recurring').submit() : false;\"><i class=\"fa fa-trash-o\"></i> ";
        echo (isset($context["button_delete"]) ? $context["button_delete"] : null);
        echo "</button>
      </div>
      <h1>
        ";
        // line 13
        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
        echo "
      </h1>
    </div>
    <div class=\"row\">
      <div class=\"col-sm-12\">
        <ul class=\"breadcrumb\">
          ";
        // line 19
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            // line 20
            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 22
        echo "        </ul>
      </div>
    </div>
  </section>

  <!-- Alert -->
  <section class=\"content-header\">
    ";
        // line 29
        if ((isset($context["error_warning"]) ? $context["error_warning"] : null)) {
            // line 30
            echo "    <div class=\"alert alert-danger alert-dismissible\"><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 34
        echo "    ";
        if ((isset($context["success"]) ? $context["success"] : null)) {
            // line 35
            echo "    <div class=\"alert alert-success alert-dismissible\"><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 39
        echo "  </section>
  <!-- /.alert -->

  <!-- Main content -->
  <section class=\"content\">

    <!-- Default box -->
    <div class=\"box\">
      <div class=\"box-header with-border\">
        <h3 class=\"box-title\">";
        // line 48
        echo (isset($context["text_list"]) ? $context["text_list"] : null);
        echo "</h3>

        <div class=\"box-tools pull-right\">
          <button type=\"button\" class=\"btn btn-box-tool\" data-widget=\"collapse\" data-toggle=\"tooltip\" title=\"";
        // line 51
        echo (isset($context["text_collapse"]) ? $context["text_collapse"] : null);
        echo "\">
            <i class=\"fa fa-minus\"></i></button>
        </div>
      </div>
      <div class=\"box-body\">
        <form action=\"";
        // line 56
        echo (isset($context["delete"]) ? $context["delete"] : null);
        echo "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-recurring\">
          <div class=\"table-responsive\">
            <table class=\"table table-bordered table-hover\">
              <thead>
                <tr>
                  <td class=\"text-center\" width=\"1\"><input type=\"checkbox\" onclick=\"\$('input[name*=\\'selected\\']').prop('checked', this.checked);\" /></td>
                  <td class=\"text-left\">";
        // line 62
        if (((isset($context["sort"]) ? $context["sort"] : null) == "pd.name")) {
            // line 63
            echo "                    <a href=\"";
            echo (isset($context["sort_name"]) ? $context["sort_name"] : null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, (isset($context["order"]) ? $context["order"] : null));
            echo "\">";
            echo (isset($context["column_name"]) ? $context["column_name"] : null);
            echo "</a>
                    ";
        } else {
            // line 65
            echo "                    <a href=\"";
            echo (isset($context["sort_name"]) ? $context["sort_name"] : null);
            echo "\">";
            echo (isset($context["column_name"]) ? $context["column_name"] : null);
            echo "</a>
                    ";
        }
        // line 66
        echo "</td>
                  <td class=\"text-right\">";
        // line 67
        if (((isset($context["sort"]) ? $context["sort"] : null) == "p.sort_order")) {
            // line 68
            echo "                    <a href=\"";
            echo (isset($context["sort_sort_order"]) ? $context["sort_sort_order"] : null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, (isset($context["order"]) ? $context["order"] : null));
            echo "\">";
            echo (isset($context["column_sort_order"]) ? $context["column_sort_order"] : null);
            echo "</a>
                    ";
        } else {
            // line 70
            echo "                    <a href=\"";
            echo (isset($context["sort_sort_order"]) ? $context["sort_sort_order"] : null);
            echo "\">";
            echo (isset($context["column_sort_order"]) ? $context["column_sort_order"] : null);
            echo "</a>
                    ";
        }
        // line 71
        echo "</td>
                  <td class=\"text-right\">";
        // line 72
        echo (isset($context["column_action"]) ? $context["column_action"] : null);
        echo "</td>
                </tr>
              </thead>
              <tbody>
                ";
        // line 76
        if ((isset($context["recurrings"]) ? $context["recurrings"] : null)) {
            // line 77
            echo "                ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["recurrings"]) ? $context["recurrings"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["recurring"]) {
                // line 78
                echo "                <tr>
                  <td class=\"text-center\">";
                // line 79
                if (twig_in_filter($this->getAttribute($context["recurring"], "recurring_id", array()), (isset($context["selected"]) ? $context["selected"] : null))) {
                    // line 80
                    echo "                    <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo $this->getAttribute($context["recurring"], "recurring_id", array());
                    echo "\" checked=\"checked\" />
                    ";
                } else {
                    // line 82
                    echo "                    <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo $this->getAttribute($context["recurring"], "recurring_id", array());
                    echo "\" />
                    ";
                }
                // line 83
                echo "</td>
                  <td class=\"text-left\">";
                // line 84
                echo $this->getAttribute($context["recurring"], "name", array());
                echo "</td>
                  <td class=\"text-right\">";
                // line 85
                echo $this->getAttribute($context["recurring"], "sort_order", array());
                echo "</td>
                  <td class=\"text-right\"><a href=\"";
                // line 86
                echo $this->getAttribute($context["recurring"], "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['recurring'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 89
            echo "                ";
        } else {
            // line 90
            echo "                <tr>
                  <td class=\"text-center\" colspan=\"4\">";
            // line 91
            echo (isset($context["text_no_results"]) ? $context["text_no_results"] : null);
            echo "</td>
                </tr>
                ";
        }
        // line 94
        echo "              </tbody>
            </table>
          </div>
        </form>
      </div>
      <!-- /.box-body -->
      <div class=\"box-footer\">
        <div class=\"row\">
          <div class=\"col-sm-6 text-left\">";
        // line 102
        echo (isset($context["pagination"]) ? $context["pagination"] : null);
        echo "</div>
          <div class=\"col-sm-6 text-right\">";
        // line 103
        echo (isset($context["results"]) ? $context["results"] : null);
        echo "</div>
        </div>
      </div>
      <!-- /.box-footer-->
    </div>
    <!-- /.box -->

  </section>
  <!-- /.content -->
</div>
<!-- /.content-wrapper -->
";
        // line 114
        echo (isset($context["footer"]) ? $context["footer"] : null);
    }

    public function getTemplateName()
    {
        return "catalog/recurring_list.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  283 => 114,  269 => 103,  265 => 102,  255 => 94,  249 => 91,  246 => 90,  243 => 89,  232 => 86,  228 => 85,  224 => 84,  221 => 83,  215 => 82,  209 => 80,  207 => 79,  204 => 78,  199 => 77,  197 => 76,  190 => 72,  187 => 71,  179 => 70,  169 => 68,  167 => 67,  164 => 66,  156 => 65,  146 => 63,  144 => 62,  135 => 56,  127 => 51,  121 => 48,  110 => 39,  102 => 35,  99 => 34,  91 => 30,  89 => 29,  80 => 22,  69 => 20,  65 => 19,  56 => 13,  46 => 10,  38 => 9,  30 => 8,  19 => 1,);
    }
}
/* {{ header }}{{ column_left }}*/
/* <!-- Content Wrapper. Contains page content -->*/
/* <div id="content" class="content-wrapper">*/
/*   <!-- Content Header (Page header) -->*/
/*   <section class="content-header">*/
/*     <div>*/
/*       <div class="pull-right">*/
/*         <a href="{{ add }}" data-toggle="tooltip" title="{{ button_add }}" class="btn btn-primary btn-sm"><i class="fa fa-plus"></i> {{ button_add }}</a>*/
/*         <button type="submit" form="form-recurring" formaction="{{ copy }}" data-toggle="tooltip" title="{{ button_copy }}" class="btn btn-default btn-sm"><i class="fa fa-copy"></i> {{ button_copy }}</button>*/
/*         <button type="button" data-toggle="tooltip" title="{{ button_delete }}" class="btn btn-danger btn-sm" onclick="confirm('{{ text_confirm }}') ? $('#form-recurring').submit() : false;"><i class="fa fa-trash-o"></i> {{ button_delete }}</button>*/
/*       </div>*/
/*       <h1>*/
/*         {{ heading_title }}*/
/*       </h1>*/
/*     </div>*/
/*     <div class="row">*/
/*       <div class="col-sm-12">*/
/*         <ul class="breadcrumb">*/
/*           {% for breadcrumb in breadcrumbs %}*/
/*           <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>*/
/*           {% endfor %}*/
/*         </ul>*/
/*       </div>*/
/*     </div>*/
/*   </section>*/
/* */
/*   <!-- Alert -->*/
/*   <section class="content-header">*/
/*     {% if error_warning %}*/
/*     <div class="alert alert-danger alert-dismissible"><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 alert-dismissible"><i class="fa fa-check-circle"></i> {{ success }}*/
/*       <button type="button" class="close" data-dismiss="alert">&times;</button>*/
/*     </div>*/
/*     {% endif %}*/
/*   </section>*/
/*   <!-- /.alert -->*/
/* */
/*   <!-- Main content -->*/
/*   <section class="content">*/
/* */
/*     <!-- Default box -->*/
/*     <div class="box">*/
/*       <div class="box-header with-border">*/
/*         <h3 class="box-title">{{ text_list }}</h3>*/
/* */
/*         <div class="box-tools pull-right">*/
/*           <button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="{{ text_collapse }}">*/
/*             <i class="fa fa-minus"></i></button>*/
/*         </div>*/
/*       </div>*/
/*       <div class="box-body">*/
/*         <form action="{{ delete }}" method="post" enctype="multipart/form-data" id="form-recurring">*/
/*           <div class="table-responsive">*/
/*             <table class="table table-bordered table-hover">*/
/*               <thead>*/
/*                 <tr>*/
/*                   <td class="text-center" width="1"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);" /></td>*/
/*                   <td class="text-left">{% if sort == 'pd.name' %}*/
/*                     <a href="{{ sort_name }}" class="{{ order|lower }}">{{ column_name }}</a>*/
/*                     {% else %}*/
/*                     <a href="{{ sort_name }}">{{ column_name }}</a>*/
/*                     {% endif %}</td>*/
/*                   <td class="text-right">{% if sort == 'p.sort_order' %}*/
/*                     <a href="{{ sort_sort_order }}" class="{{ order|lower }}">{{ column_sort_order }}</a>*/
/*                     {% else %}*/
/*                     <a href="{{ sort_sort_order }}">{{ column_sort_order }}</a>*/
/*                     {% endif %}</td>*/
/*                   <td class="text-right">{{ column_action }}</td>*/
/*                 </tr>*/
/*               </thead>*/
/*               <tbody>*/
/*                 {% if recurrings %}*/
/*                 {% for recurring in recurrings %}*/
/*                 <tr>*/
/*                   <td class="text-center">{% if recurring.recurring_id in selected %}*/
/*                     <input type="checkbox" name="selected[]" value="{{ recurring.recurring_id }}" checked="checked" />*/
/*                     {% else %}*/
/*                     <input type="checkbox" name="selected[]" value="{{ recurring.recurring_id }}" />*/
/*                     {% endif %}</td>*/
/*                   <td class="text-left">{{ recurring.name }}</td>*/
/*                   <td class="text-right">{{ recurring.sort_order }}</td>*/
/*                   <td class="text-right"><a href="{{ recurring.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="4">{{ text_no_results }}</td>*/
/*                 </tr>*/
/*                 {% endif %}*/
/*               </tbody>*/
/*             </table>*/
/*           </div>*/
/*         </form>*/
/*       </div>*/
/*       <!-- /.box-body -->*/
/*       <div class="box-footer">*/
/*         <div class="row">*/
/*           <div class="col-sm-6 text-left">{{ pagination }}</div>*/
/*           <div class="col-sm-6 text-right">{{ results }}</div>*/
/*         </div>*/
/*       </div>*/
/*       <!-- /.box-footer-->*/
/*     </div>*/
/*     <!-- /.box -->*/
/* */
/*   </section>*/
/*   <!-- /.content -->*/
/* </div>*/
/* <!-- /.content-wrapper -->*/
/* {{ footer }}*/
