<?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;

/* member/member_point_form.twig */
class __TwigTemplate_67d17828a7b7df650e575b9b81c0cf84260e445ce9dea02198a1459ed2e4d2be 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\">
        <button type=\"submit\" form=\"form-member-point\" data-toggle=\"tooltip\" 
        title=\"";
        // line 7
        echo ($context["button_save"] ?? null);
        echo "\" class=\"btn btn-primary\" 
       ";
        // line 8
        $context["currentDateTime"] = twig_date_format_filter($this->env, "now", "Y-m-d");
        // line 9
        echo "       ";
        if ((($context["member_point_id"] ?? null) && (($context["expiry_date"] ?? null) <= ($context["currentDateTime"] ?? null)))) {
            // line 10
            echo "                disabled
       ";
        }
        // line 11
        echo ">
        <i class=\"fa fa-save\"></i></button>
        <a href=\"";
        // line 13
        echo ($context["cancel"] ?? null);
        echo "\" data-toggle=\"tooltip\" title=\"";
        echo ($context["button_cancel"] ?? null);
        echo "\" class=\"btn btn-default\"><i class=\"fa fa-reply\"></i></a></div>
      <h1>";
        // line 14
        echo ($context["heading_title"] ?? null);
        echo "</h1>
      <ul class=\"breadcrumb\">
        ";
        // line 16
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["breadcrumbs"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            // line 17
            echo "        <li><a href=\"";
            echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "href", [], "any", false, false, false, 17);
            echo "\">";
            echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "text", [], "any", false, false, false, 17);
            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 19
        echo "      </ul>
    </div>
  </div>
  <div class=\"container-fluid\">
    ";
        // line 23
        if (($context["error_warning"] ?? null)) {
            // line 24
            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 28
        echo "    <div class=\"panel panel-default\">
      <div class=\"panel-heading\">
        <h3 class=\"panel-title\"><i class=\"fa fa-pencil\"></i> ";
        // line 30
        echo ($context["text_form"] ?? null);
        echo "</h3>
      </div>
      <div class=\"panel-body\">
        <form action=\"";
        // line 33
        echo ($context["action"] ?? null);
        echo "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-member-point\" class=\"form-horizontal\">
           <fieldset>
           <legend>Member Info</legend>
           <div class=\"form-group\">
               <label class=\"col-sm-2 control-label\">";
        // line 37
        echo ($context["entry_phone_no"] ?? null);
        echo ":</label>
               <div class=\"col-sm-10\">
                  <label>";
        // line 39
        echo ($context["phone_no"] ?? null);
        echo " </label>  
                  <input type=\"hidden\" id=\"member_id\" name=\"member_id\" value=";
        // line 40
        echo ($context["member_id"] ?? null);
        echo ">
                   ";
        // line 41
        if (($context["member_point_id"] ?? null)) {
            // line 42
            echo "                    <input type=\"hidden\" id=\"member_point_id\" name=\"member_point_id\" value=";
            echo ($context["member_point_id"] ?? null);
            echo ">
                   ";
        }
        // line 44
        echo "               </div>
           </div>
           <div class=\"form-group\">
               <label class=\"col-sm-2 control-label\">";
        // line 47
        echo ($context["entry_email"] ?? null);
        echo ":</label>
               <div class=\"col-sm-10\">
                  <label>";
        // line 49
        echo ($context["email"] ?? null);
        echo " </label>
               </div>
           </div>
           <div class=\"form-group\">
              <label class=\"col-sm-2 control-label\">";
        // line 53
        echo ($context["entry_tier_level"] ?? null);
        echo ":</label>
              <div class=\"col-sm-10\">
              <label>  ";
        // line 55
        echo ($context["tier_level"] ?? null);
        echo " </label>
              </div>
            </div>
        </fieldset>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-order_no\">";
        // line 60
        echo ($context["entry_order_no"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
             ";
        // line 62
        if (($context["member_point_id"] ?? null)) {
            // line 63
            echo "               <label> ";
            echo ($context["order_no"] ?? null);
            echo " </label>
             ";
        } else {
            // line 65
            echo "                <input type=\"text\" name=\"order_no\" value=\"";
            echo ($context["order_no"] ?? null);
            echo "\" placeholder=\"";
            echo ($context["entry_order_no"] ?? null);
            echo "\" id=\"input-order_no\" class=\"form-control\" />
                ";
            // line 66
            if (($context["error_order_no"] ?? null)) {
                // line 67
                echo "                <div class=\"text-danger\">";
                echo ($context["error_order_no"] ?? null);
                echo "</div>
                ";
            }
            // line 69
            echo "             ";
        }
        // line 70
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-regular_price_amount\">";
        // line 73
        echo ($context["entry_regular_price_amount"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
            ";
        // line 75
        if (($context["member_point_id"] ?? null)) {
            // line 76
            echo "               <label> ";
            echo ($context["regular_price_amount"] ?? null);
            echo " </label>
            ";
        } else {
            // line 78
            echo "                <input type=\"text\" name=\"regular_price_amount\" value=\"";
            echo ($context["regular_price_amount"] ?? null);
            echo "\" placeholder=\"";
            echo ($context["entry_regular_price_amount"] ?? null);
            echo "\" id=\"input-regular_price_amount\" class=\"form-control\" />
                ";
            // line 79
            if (($context["error_regular_price_amount"] ?? null)) {
                // line 80
                echo "                <div class=\"text-danger\">";
                echo ($context["error_regular_price_amount"] ?? null);
                echo "</div>
                ";
            }
            // line 82
            echo "            ";
        }
        // line 83
        echo "            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\" for=\"input-sales_price_amount\">";
        // line 86
        echo ($context["entry_sales_price_amount"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              ";
        // line 88
        if (($context["member_point_id"] ?? null)) {
            // line 89
            echo "                <label> ";
            echo ($context["sales_price_amount"] ?? null);
            echo " </label>
              ";
        } else {
            // line 91
            echo "                <input type=\"text\" name=\"sales_price_amount\" value=\"";
            echo ($context["sales_price_amount"] ?? null);
            echo "\" placeholder=\"";
            echo ($context["entry_sales_price_amount"] ?? null);
            echo "\" id=\"input-regular_price_amount\" class=\"form-control\" />
                ";
            // line 92
            if (($context["error_sales_price_amount"] ?? null)) {
                // line 93
                echo "                <div class=\"text-danger\">";
                echo ($context["error_sales_price_amount"] ?? null);
                echo "</div>
                ";
            }
            // line 95
            echo "              ";
        }
        // line 96
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-expiry_date\">";
        // line 99
        echo ($context["entry_expiry_date"] ?? null);
        echo "</label>
            <div class=\"col-sm-4 date\" style=\"display: table\">
              ";
        // line 101
        if (($context["member_point_id"] ?? null)) {
            // line 102
            echo "                <label> ";
            echo ($context["expiry_date"] ?? null);
            echo " </label>
              ";
        } else {
            // line 104
            echo "                <input type=\"text\" name=\"expiry_date\" value=\"";
            echo ($context["expiry_date"] ?? null);
            echo "\" placeholder=\"";
            echo ($context["entry_expiry_date"] ?? null);
            echo "\" data-date-format=\"YYYY-MM-DD\" id=\"input-expiry_date\" class=\"form-control\" />
                <span class=\"input-group-btn\">
                <button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button>
                ";
            // line 107
            if (($context["error_expiry_date"] ?? null)) {
                // line 108
                echo "                <div class=\"text-danger\">";
                echo ($context["error_expiry_date"] ?? null);
                echo "</div>
                ";
            }
            // line 110
            echo "              ";
        }
        // line 111
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-remark\">";
        // line 114
        echo ($context["entry_remark"] ?? null);
        echo "</label>
            <div class=\"col-sm-4\" >
              <input type=\"text\" name=\"remark\" value=\"";
        // line 116
        echo ($context["remark"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_remark"] ?? null);
        echo "\"  id=\"input-remark\" class=\"form-control\" />
              ";
        // line 117
        if (($context["error_remark"] ?? null)) {
            // line 118
            echo "              <div class=\"text-danger\">";
            echo ($context["error_remark"] ?? null);
            echo "</div>
              ";
        }
        // line 120
        echo "            </div>
          </div>
           ";
        // line 122
        if (($context["member_point_id"] ?? null)) {
            // line 123
            echo "           <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\" for=\"input-is_cancelled\">";
            // line 124
            echo ($context["entry_is_cancelled"] ?? null);
            echo "</label>
            <div class=\"col-sm-2\">
              <select name=\"is_cancelled\" id=\"input-is_cancelled\" class=\"form-control\">
                ";
            // line 127
            if (($context["is_cancelled"] ?? null)) {
                // line 128
                echo "                <option value=\"0\">";
                echo ($context["text_no"] ?? null);
                echo "</option>
                <option value=\"1\" selected=\"selected\">";
                // line 129
                echo ($context["text_yes"] ?? null);
                echo "</option>
                ";
            } else {
                // line 131
                echo "                <option value=\"0\" selected=\"selected\">";
                echo ($context["text_no"] ?? null);
                echo "</option>
                <option value=\"1\">";
                // line 132
                echo ($context["text_yes"] ?? null);
                echo "</option>
                ";
            }
            // line 134
            echo "              </select>
            </div>
            </div>
            <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\">";
            // line 138
            echo ($context["entry_point"] ?? null);
            echo "</label>
            <div class=\"col-sm-2\">
                <label>";
            // line 140
            echo ($context["point"] ?? null);
            echo "</label>
            </div>
            </div>
            <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\">";
            // line 144
            echo ($context["entry_available_point"] ?? null);
            echo "</label>
            <div class=\"col-sm-2\">
                <label>";
            // line 146
            echo ($context["available_point"] ?? null);
            echo "</label>
            </div>
            </div>
            <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\">";
            // line 150
            echo ($context["entry_used_point"] ?? null);
            echo "</label>
            <div class=\"col-sm-2\">
                <label>";
            // line 152
            echo ($context["used_point"] ?? null);
            echo "</label>
            </div>
            </div>
          ";
        }
        // line 156
        echo "        </form>
      </div>
    </div>
  </div>
</div>
";
        // line 161
        echo ($context["footer"] ?? null);
        echo " 
<style type=\"text/css\">
label{
    display: block;
    width: 100%;
    height: 36px;
    padding: 8px 13px;
    font-size: 13px;
    color: #555;
}
</style>
  <script type=\"text/javascript\">
    \$('.date').datetimepicker({
\t\tlanguage: '";
        // line 174
        echo ($context["datepicker"] ?? null);
        echo "',
\t\tpickTime: false
    });
</script>";
    }

    public function getTemplateName()
    {
        return "member/member_point_form.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  441 => 174,  425 => 161,  418 => 156,  411 => 152,  406 => 150,  399 => 146,  394 => 144,  387 => 140,  382 => 138,  376 => 134,  371 => 132,  366 => 131,  361 => 129,  356 => 128,  354 => 127,  348 => 124,  345 => 123,  343 => 122,  339 => 120,  333 => 118,  331 => 117,  325 => 116,  320 => 114,  315 => 111,  312 => 110,  306 => 108,  304 => 107,  295 => 104,  289 => 102,  287 => 101,  282 => 99,  277 => 96,  274 => 95,  268 => 93,  266 => 92,  259 => 91,  253 => 89,  251 => 88,  246 => 86,  241 => 83,  238 => 82,  232 => 80,  230 => 79,  223 => 78,  217 => 76,  215 => 75,  210 => 73,  205 => 70,  202 => 69,  196 => 67,  194 => 66,  187 => 65,  181 => 63,  179 => 62,  174 => 60,  166 => 55,  161 => 53,  154 => 49,  149 => 47,  144 => 44,  138 => 42,  136 => 41,  132 => 40,  128 => 39,  123 => 37,  116 => 33,  110 => 30,  106 => 28,  98 => 24,  96 => 23,  90 => 19,  79 => 17,  75 => 16,  70 => 14,  64 => 13,  60 => 11,  56 => 10,  53 => 9,  51 => 8,  47 => 7,  37 => 1,);
    }

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