<?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_de99d212fcad75ec69ed04359dbcf1effbfc0dd676ae655a3b7c07976be306d2 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 6
        echo ($context["button_save"] ?? null);
        echo "\" class=\"btn btn-primary\"><i class=\"fa fa-save\"></i></button>
        <a href=\"";
        // line 7
        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 8
        echo ($context["heading_title"] ?? null);
        echo "</h1>
      <ul class=\"breadcrumb\">
        ";
        // line 10
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["breadcrumbs"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            // line 11
            echo "        <li><a href=\"";
            echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "href", [], "any", false, false, false, 11);
            echo "\">";
            echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "text", [], "any", false, false, false, 11);
            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 (($context["error_warning"] ?? null)) {
            // line 18
            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 22
        echo "    <div class=\"panel panel-default\">
      <div class=\"panel-heading\">
        <h3 class=\"panel-title\"><i class=\"fa fa-pencil\"></i> ";
        // line 24
        echo ($context["text_form"] ?? null);
        echo "</h3>
      </div>
      <div class=\"panel-body\">
        <form action=\"";
        // line 27
        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 31
        echo ($context["entry_phone_no"] ?? null);
        echo ":</label>
               <div class=\"col-sm-10\">
                  <label>";
        // line 33
        echo ($context["phone_no"] ?? null);
        echo " </label>  
                  <input type=\"hidden\" id=\"member_id\" name=\"member_id\" value=";
        // line 34
        echo ($context["member_id"] ?? null);
        echo ">
                   ";
        // line 35
        if (($context["member_point_id"] ?? null)) {
            // line 36
            echo "                    <input type=\"hidden\" id=\"member_point_id\" name=\"member_point_id\" value=";
            echo ($context["member_point_id"] ?? null);
            echo ">
                   ";
        }
        // line 38
        echo "               </div>
           </div>
           <div class=\"form-group\">
               <label class=\"col-sm-2 control-label\">";
        // line 41
        echo ($context["entry_email"] ?? null);
        echo ":</label>
               <div class=\"col-sm-10\">
                  <label>";
        // line 43
        echo ($context["email"] ?? null);
        echo " </label>
               </div>
           </div>
           <div class=\"form-group\">
              <label class=\"col-sm-2 control-label\">";
        // line 47
        echo ($context["entry_tier_level"] ?? null);
        echo ":</label>
              <div class=\"col-sm-10\">
              <label>  ";
        // line 49
        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 54
        echo ($context["entry_order_no"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
             ";
        // line 56
        if (($context["member_point_id"] ?? null)) {
            // line 57
            echo "               <label> ";
            echo ($context["order_no"] ?? null);
            echo " </label>
             ";
        } else {
            // line 59
            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 60
            if (($context["error_order_no"] ?? null)) {
                // line 61
                echo "                <div class=\"text-danger\">";
                echo ($context["error_order_no"] ?? null);
                echo "</div>
                ";
            }
            // line 63
            echo "             ";
        }
        // line 64
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-regular_price_amount\">";
        // line 67
        echo ($context["entry_regular_price_amount"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
            ";
        // line 69
        if (($context["member_point_id"] ?? null)) {
            // line 70
            echo "               <label> ";
            echo ($context["regular_price_amount"] ?? null);
            echo " </label>
            ";
        } else {
            // line 72
            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 73
            if (($context["error_regular_price_amount"] ?? null)) {
                // line 74
                echo "                <div class=\"text-danger\">";
                echo ($context["error_regular_price_amount"] ?? null);
                echo "</div>
                ";
            }
            // line 76
            echo "            ";
        }
        // line 77
        echo "            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\" for=\"input-sales_price_amount\">";
        // line 80
        echo ($context["entry_sales_price_amount"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              ";
        // line 82
        if (($context["member_point_id"] ?? null)) {
            // line 83
            echo "                <label> ";
            echo ($context["sales_price_amount"] ?? null);
            echo " </label>
              ";
        } else {
            // line 85
            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 86
            if (($context["error_sales_price_amount"] ?? null)) {
                // line 87
                echo "                <div class=\"text-danger\">";
                echo ($context["error_sales_price_amount"] ?? null);
                echo "</div>
                ";
            }
            // line 89
            echo "              ";
        }
        // line 90
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-expiry_date\">";
        // line 93
        echo ($context["entry_expiry_date"] ?? null);
        echo "</label>
            <div class=\"col-sm-4 date\" style=\"display: table\">
              ";
        // line 95
        if (($context["member_point_id"] ?? null)) {
            // line 96
            echo "                <label> ";
            echo ($context["expiry_date"] ?? null);
            echo " </label>
              ";
        } else {
            // line 98
            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 101
            if (($context["error_expiry_date"] ?? null)) {
                // line 102
                echo "                <div class=\"text-danger\">";
                echo ($context["error_expiry_date"] ?? null);
                echo "</div>
                ";
            }
            // line 104
            echo "              ";
        }
        // line 105
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-remark\">";
        // line 108
        echo ($context["entry_remark"] ?? null);
        echo "</label>
            <div class=\"col-sm-4\" >
              <input type=\"text\" name=\"remark\" value=\"";
        // line 110
        echo ($context["remark"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_remark"] ?? null);
        echo "\"  id=\"input-remark\" class=\"form-control\" />
              ";
        // line 111
        if (($context["error_remark"] ?? null)) {
            // line 112
            echo "              <div class=\"text-danger\">";
            echo ($context["error_remark"] ?? null);
            echo "</div>
              ";
        }
        // line 114
        echo "            </div>
          </div>
           ";
        // line 116
        if (($context["member_point_id"] ?? null)) {
            // line 117
            echo "           <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\" for=\"input-is_cancelled\">";
            // line 118
            echo ($context["entry_is_cancelled"] ?? null);
            echo "</label>
            <div class=\"col-sm-10\">
              <select name=\"is_cancelled\" id=\"input-is_cancelled\" class=\"form-control\">
                ";
            // line 121
            if (($context["is_cancelled"] ?? null)) {
                // line 122
                echo "                <option value=\"0\">";
                echo ($context["text_no"] ?? null);
                echo "</option>
                <option value=\"1\" selected=\"selected\">";
                // line 123
                echo ($context["text_yes"] ?? null);
                echo "</option>
                ";
            } else {
                // line 125
                echo "                <option value=\"0\" selected=\"selected\">";
                echo ($context["text_no"] ?? null);
                echo "</option>
                <option value=\"1\">";
                // line 126
                echo ($context["text_yes"] ?? null);
                echo "</option>
                ";
            }
            // line 128
            echo "              </select>
            </div>
          ";
        }
        // line 131
        echo "        </form>
      </div>
    </div>
  </div>
</div>
";
        // line 136
        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 149
        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 (  390 => 149,  374 => 136,  367 => 131,  362 => 128,  357 => 126,  352 => 125,  347 => 123,  342 => 122,  340 => 121,  334 => 118,  331 => 117,  329 => 116,  325 => 114,  319 => 112,  317 => 111,  311 => 110,  306 => 108,  301 => 105,  298 => 104,  292 => 102,  290 => 101,  281 => 98,  275 => 96,  273 => 95,  268 => 93,  263 => 90,  260 => 89,  254 => 87,  252 => 86,  245 => 85,  239 => 83,  237 => 82,  232 => 80,  227 => 77,  224 => 76,  218 => 74,  216 => 73,  209 => 72,  203 => 70,  201 => 69,  196 => 67,  191 => 64,  188 => 63,  182 => 61,  180 => 60,  173 => 59,  167 => 57,  165 => 56,  160 => 54,  152 => 49,  147 => 47,  140 => 43,  135 => 41,  130 => 38,  124 => 36,  122 => 35,  118 => 34,  114 => 33,  109 => 31,  102 => 27,  96 => 24,  92 => 22,  84 => 18,  82 => 17,  76 => 13,  65 => 11,  61 => 10,  56 => 8,  50 => 7,  46 => 6,  37 => 1,);
    }

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