<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* reward/reward_promotion_list.twig */
class __TwigTemplate_a93f483650ca7ecb1e349b85a2a49920389344c434e531a76f1bf32169cdba59 extends \Twig\Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo ($context["header"] ?? null);
        echo ($context["column_left"] ?? null);
        echo "
<div id=\"content\">
  <div class=\"page-header\">
    <div class=\"container-fluid\">
      <div class=\"pull-right\">
        <a href=\"";
        // line 6
        echo ($context["add"] ?? null);
        echo "\" data-toggle=\"tooltip\" title=\"";
        echo ($context["button_add"] ?? null);
        echo "\" class=\"btn btn-primary\"><i class=\"fa fa-plus\"></i></a>
        <button type=\"button\" data-toggle=\"tooltip\" title=\"";
        // line 7
        echo ($context["button_delete"] ?? null);
        echo "\" class=\"btn btn-danger\" onclick=\"confirm('";
        echo ($context["text_confirm"] ?? null);
        echo "') ? \$('#form-reward-promotion').submit() : false;\"><i class=\"fa fa-trash-o\"></i></button>
       <a href=\"\" data-toggle=\"tooltip\" title=\"";
        // line 8
        echo ($context["button_help"] ?? null);
        echo "\" class=\"btn btn-info\"><i class=\"fa fa-question-circle\"></i></a>
      </div>
      <h1>";
        // line 10
        echo ($context["heading_title"] ?? null);
        echo "</h1>
      <ul class=\"breadcrumb\">
        ";
        // line 12
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["breadcrumbs"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            // line 13
            echo "        <li><a href=\"";
            echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "href", [], "any", false, false, false, 13);
            echo "\">";
            echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "text", [], "any", false, false, false, 13);
            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 15
        echo "      </ul>
    </div>
  </div>
  <div class=\"container-fluid\">
    ";
        // line 19
        if (($context["error_warning"] ?? null)) {
            // line 20
            echo "    <div class=\"alert alert-danger alert-dismissible\"><i class=\"fa fa-exclamation-circle\"></i> ";
            echo ($context["error_warning"] ?? null);
            echo "
      <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
    </div>
    ";
        }
        // line 24
        echo "    ";
        if (($context["success"] ?? null)) {
            // line 25
            echo "    <div class=\"alert alert-success alert-dismissible\"><i class=\"fa fa-check-circle\"></i> ";
            echo ($context["success"] ?? null);
            echo "
      <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
    </div>
    ";
        }
        // line 29
        echo "    <div class=\"panel panel-default\">
      <div class=\"panel-heading\">
        <h3 class=\"panel-title\"><i class=\"fa fa-list\"></i> ";
        // line 31
        echo ($context["text_list"] ?? null);
        echo "</h3>
      </div>
      <div class=\"panel-body\">
        <form action=\"";
        // line 34
        echo ($context["delete"] ?? null);
        echo "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-reward-promotion\">
          <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 40
        if ((($context["sort"] ?? null) == "reward")) {
            // line 41
            echo "                    <a href=\"";
            echo ($context["sort_reward"] ?? null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, ($context["order"] ?? null));
            echo "\">";
            echo ($context["column_reward"] ?? null);
            echo "</a>
                    ";
        } else {
            // line 43
            echo "                    <a href=\"";
            echo ($context["sort_reward"] ?? null);
            echo "\">";
            echo ($context["column_reward"] ?? null);
            echo "</a>
                    ";
        }
        // line 44
        echo "</td>
                  <td class=\"text-left\">";
        // line 45
        echo ($context["column_point"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 46
        echo ($context["column_details"] ?? null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 47
        if ((($context["sort"] ?? null) == "status")) {
            // line 48
            echo "                    <a href=\"";
            echo ($context["sort_status"] ?? null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, ($context["order"] ?? null));
            echo "\">";
            echo ($context["column_status"] ?? null);
            echo "</a>
                    ";
        } else {
            // line 50
            echo "                    <a href=\"";
            echo ($context["sort_status"] ?? null);
            echo "\">";
            echo ($context["column_status"] ?? null);
            echo "</a>
                    ";
        }
        // line 51
        echo "</td>
                  <td class=\"text-left\">";
        // line 52
        if ((($context["sort"] ?? null) == "date_added")) {
            // line 53
            echo "                    <a href=\"";
            echo ($context["sort_date_added"] ?? null);
            echo "\" class=\"";
            echo twig_lower_filter($this->env, ($context["order"] ?? null));
            echo "\">";
            echo ($context["column_date_added"] ?? null);
            echo "</a>
                    ";
        } else {
            // line 55
            echo "                    <a href=\"";
            echo ($context["sort_date_added"] ?? null);
            echo "\">";
            echo ($context["column_date_added"] ?? null);
            echo "</a>
                    ";
        }
        // line 56
        echo "</td>
                  <td class=\"text-right\">";
        // line 57
        echo ($context["column_action"] ?? null);
        echo "</td>
                </tr>
              </thead>
              <tbody>
                ";
        // line 61
        if (($context["reward_promotions"] ?? null)) {
            // line 62
            echo "                ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["reward_promotions"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["reward_promotion"]) {
                // line 63
                echo "                <tr>
                  <td class=\"text-center\">";
                // line 64
                if (twig_in_filter(twig_get_attribute($this->env, $this->source, $context["reward_promotion"], "reward_promotion_setting_id", [], "any", false, false, false, 64), ($context["selected"] ?? null))) {
                    // line 65
                    echo "                    <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo twig_get_attribute($this->env, $this->source, $context["reward_promotion"], "reward_promotion_setting_id", [], "any", false, false, false, 65);
                    echo "\" checked=\"checked\" />
                    ";
                } else {
                    // line 67
                    echo "                    <input type=\"checkbox\" name=\"selected[]\" value=\"";
                    echo twig_get_attribute($this->env, $this->source, $context["reward_promotion"], "reward_promotion_setting_id", [], "any", false, false, false, 67);
                    echo "\" />
                    ";
                }
                // line 68
                echo "</td>
                  <td class=\"text-left\">";
                // line 69
                echo twig_get_attribute($this->env, $this->source, $context["reward_promotion"], "reward_setting_name", [], "any", false, false, false, 69);
                echo "</td>
                  <td class=\"text-left\">";
                // line 70
                echo twig_get_attribute($this->env, $this->source, $context["reward_promotion"], "point", [], "any", false, false, false, 70);
                echo "</td>
                  <td class=\"text-left\">
                       <b>";
                // line 72
                echo ($context["text_start_date"] ?? null);
                echo ":</b>  ";
                echo twig_get_attribute($this->env, $this->source, $context["reward_promotion"], "start_date", [], "any", false, false, false, 72);
                echo " <br> 
                       <b>";
                // line 73
                echo ($context["text_end_date"] ?? null);
                echo ":</b>  ";
                echo twig_get_attribute($this->env, $this->source, $context["reward_promotion"], "end_date", [], "any", false, false, false, 73);
                echo " <br> 
                  </td>
                  <td class=\"text-left\">";
                // line 75
                echo twig_get_attribute($this->env, $this->source, $context["reward_promotion"], "status", [], "any", false, false, false, 75);
                echo "</td>
                  <td class=\"text-left\">";
                // line 76
                echo twig_get_attribute($this->env, $this->source, $context["reward_promotion"], "date_added", [], "any", false, false, false, 76);
                echo "</td>
                  <td class=\"text-right\"><a href=\"";
                // line 77
                echo twig_get_attribute($this->env, $this->source, $context["reward_promotion"], "edit", [], "any", false, false, false, 77);
                echo "\" data-toggle=\"tooltip\" title=\"";
                echo ($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['reward_promotion'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 80
            echo "                ";
        } else {
            // line 81
            echo "                <tr>
                  <td class=\"text-center\" colspan=\"7\">";
            // line 82
            echo ($context["text_no_results"] ?? null);
            echo "</td>
                </tr>
                ";
        }
        // line 85
        echo "              </tbody>
            </table>
          </div>
        </form>
        <div class=\"row\">
          <div class=\"col-sm-6 text-left\">";
        // line 90
        echo ($context["pagination"] ?? null);
        echo "</div>
          <div class=\"col-sm-6 text-right\">";
        // line 91
        echo ($context["results"] ?? null);
        echo "</div>
        </div>
      </div>
    </div>
  </div>
</div>
";
        // line 97
        echo ($context["footer"] ?? null);
        echo " ";
    }

    public function getTemplateName()
    {
        return "reward/reward_promotion_list.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  313 => 97,  304 => 91,  300 => 90,  293 => 85,  287 => 82,  284 => 81,  281 => 80,  270 => 77,  266 => 76,  262 => 75,  255 => 73,  249 => 72,  244 => 70,  240 => 69,  237 => 68,  231 => 67,  225 => 65,  223 => 64,  220 => 63,  215 => 62,  213 => 61,  206 => 57,  203 => 56,  195 => 55,  185 => 53,  183 => 52,  180 => 51,  172 => 50,  162 => 48,  160 => 47,  156 => 46,  152 => 45,  149 => 44,  141 => 43,  131 => 41,  129 => 40,  120 => 34,  114 => 31,  110 => 29,  102 => 25,  99 => 24,  91 => 20,  89 => 19,  83 => 15,  72 => 13,  68 => 12,  63 => 10,  58 => 8,  52 => 7,  46 => 6,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "reward/reward_promotion_list.twig", "");
    }
}
