<?php

/* exchange-rates.twig */
class __TwigTemplate_fa980938e3a03de560a780579ce2feb1d8701f7adb813e1476afc8c1397db64e 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 "<div class=\"wcml-section\" id=\"online-exchange-rates\" ";
        if (twig_test_empty(($context["multi_currency_on"] ?? null))) {
            echo "style=\"display:none\"";
        }
        echo ">

    <div class=\"wcml-section-header\">
        <h3>";
        // line 4
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "header", array()), "html", null, true);
        echo "</h3>
    </div>

    <div class=\"wcml-section-content\" id=\"online-exchange-rates-no-currencies\" ";
        // line 7
        if ($this->getAttribute(($context["exchange_rates"] ?? null), "secondary_currencies", array())) {
            echo " style=\"display:none\"";
        }
        echo ">
        <p><i>";
        // line 8
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "no_currencies", array()), "html", null, true);
        echo "</i></p>
    </div>
    <div class=\"wcml-section-content\" ";
        // line 10
        if (twig_test_empty($this->getAttribute(($context["exchange_rates"] ?? null), "secondary_currencies", array()))) {
            echo " style=\"display:none\"";
        }
        echo ">
        <p>
            <input type=\"checkbox\" id=\"exchange-rates-automatic\" name=\"exchange-rates-automatic\" value=\"1\"
                   ";
        // line 13
        if (($this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "settings", array()), "automatic", array()) == 1)) {
            echo "checked=\"checked\"";
        }
        echo " />
            <label for=\"exchange-rates-automatic\">";
        // line 14
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "enable_automatic", array()), "html", null, true);
        echo "</label>
        </p>

        <div id=\"exchange-rates-online-wrap\"
             class=\"exchange-rates-online-wrap\"";
        // line 18
        if (($this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "settings", array()), "automatic", array()) == 0)) {
            echo " style=\"display: none;\"";
        }
        echo " >

        <div class=\"wcml-section-content-inner\">
            <p id=\"update-rates-time\">";
        // line 21
        echo $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "updated_time", array());
        echo "</p>

            <p>
                <input type=\"button\" id=\"update-rates-manually\" class=\"button-secondary\"
                       value=\"";
        // line 25
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "update", array()), "html", null, true);
        echo "\" />
                <i class=\"otgs-ico-help wcml-tip\" data-tip=\"";
        // line 26
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "update_tip", array()), "html", null, true);
        echo "\" style=\"display: none\"></i>
                <span id=\"update-rates-spinner\" class=\"spinner\" style=\"float:none;\"></span>
                <input type=\"hidden\" id=\"update-exchange-rates-nonce\" value=\"";
        // line 28
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "nonce", array()), "html", null, true);
        echo "\"/>
            </p>

            <p class=\"notice inline notice-success\" id=\"exchange-rates-success\"
               style=\"display:none\">";
        // line 32
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "updated_success", array()), "html", null, true);
        echo "</p>
            <p class=\"notice inline notice-error\" id=\"exchange-rates-error\" style=\"display:none\"></p>
        </div>

        <div class=\"wcml-section-content-inner\">
            <h4>";
        // line 37
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "services_label", array()), "html", null, true);
        echo "</h4>
            <ul class=\"exchange-rates-sources\">

                ";
        // line 40
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["exchange_rates"] ?? null), "services", array()));
        foreach ($context['_seq'] as $context["id"] => $context["service"]) {
            // line 41
            echo "                    <li>
                        <input type=\"radio\" id=\"service-";
            // line 42
            echo twig_escape_filter($this->env, $context["id"], "html", null, true);
            echo "\" name=\"exchange-rates-service\" value=\"";
            echo twig_escape_filter($this->env, $context["id"], "html", null, true);
            echo "\"
                               ";
            // line 43
            if (($this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "settings", array()), "service", array()) == $context["id"])) {
                echo "checked=\"checked\"";
            }
            echo " />
                        <label for=\"service-";
            // line 44
            echo twig_escape_filter($this->env, $context["id"], "html", null, true);
            echo "\">
                            ";
            // line 45
            echo twig_escape_filter($this->env, $this->getAttribute($context["service"], "name", array()), "html", null, true);
            echo "
                        </label>
                        <a href=\"";
            // line 47
            echo twig_escape_filter($this->env, $this->getAttribute($context["service"], "url", array()), "html", null, true);
            echo "\" title=\"";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "visit_website", array()), "html", null, true);
            echo "\" class=\"exchange-rate-service-website no-ico\" target=\"_blank\">
                            <span class=\"dashicons dashicons-external\"></span>
                        </a>
                        <div class=\"service-details-wrap\" ";
            // line 50
            if (($this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "settings", array()), "service", array()) != $context["id"])) {
                echo " style=\"display: none;\"";
            }
            echo " >

                            ";
            // line 52
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "key_required", array()), "html", null, true);
            echo "
                            <input type=\"text\" name=\"services[";
            // line 53
            echo twig_escape_filter($this->env, $context["id"], "html", null, true);
            echo "][api-key]\"
                                   value=\"";
            // line 54
            echo twig_escape_filter($this->env, $this->getAttribute($context["service"], "api_key", array()), "html", null, true);
            echo "\"
                                   placeholder=\"";
            // line 55
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "key_placeholder", array()), "html", null, true);
            echo "\"
                                   size=\"40\" />

                            <p class=\"notice inline notice-error\" ";
            // line 58
            if (("fixerio" != $context["id"])) {
                echo "style=\"display:none\"";
            }
            echo ">
                                ";
            // line 59
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "fixerio_warning", array()), "html", null, true);
            echo "
                            </p>
                            <p class=\"notice inline notice-error\" id=\"service-error-";
            // line 61
            echo twig_escape_filter($this->env, $context["id"], "html", null, true);
            echo "\" ";
            if (($this->getAttribute($context["service"], "last_error", array()) == false)) {
                echo "style=\"display:none\"";
            }
            echo ">
                            ";
            // line 62
            if ($this->getAttribute($context["service"], "last_error", array())) {
                // line 63
                echo "                                ";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["service"], "last_error", array()), "text", array()), "html", null, true);
                echo " <i>(";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["service"], "last_error", array()), "time", array()), "html", null, true);
                echo ")</i>
                            ";
            }
            // line 65
            echo "                            </p>

                        </div>
                    </li>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['id'], $context['service'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 70
        echo "            </ul>
        </div>

        <div class=\"wcml-section-content-inner\">
            <h4>";
        // line 74
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "lifting_label", array()), "html", null, true);
        echo "</h4>
            <p>";
        // line 75
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "lifting_details1", array()), "html", null, true);
        echo "</p>
            <input type=\"number\" name=\"lifting_charge\" value=\"";
        // line 76
        echo twig_escape_filter($this->env, $this->getAttribute(($context["settings"] ?? null), "lifting_charge", array()), "html", null, true);
        echo "\" step=\"any\" style=\"width:64px\" /> %
            <p><i>";
        // line 77
        echo twig_escape_filter($this->env, sprintf($this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "lifting_details2", array()), $this->getAttribute($this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "services", array()), $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "settings", array()), "service", array()), array(), "array"), "name", array())), "html", null, true);
        echo "</i></p>
        </div>

        <div class=\"wcml-section-content-inner\">

            <h4>";
        // line 82
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "frequency", array()), "html", null, true);
        echo "</h4>

            <ul>
                <li>
                    <input type=\"radio\" id=\"update-frequency-daily\" name=\"update-schedule\" value=\"daily\"
                           ";
        // line 87
        if (($this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "settings", array()), "schedule", array()) == "daily")) {
            echo "checked=\"checked\"";
        }
        echo "/>
                    <label for=\"update-frequency-daily\">";
        // line 88
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "daily", array()), "html", null, true);
        echo "</label>
                </li>

                <li>
                    <input type=\"radio\" id=\"update-frequency-weekly\" name=\"update-schedule\" value=\"weekly\"
                           ";
        // line 93
        if (($this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "settings", array()), "schedule", array()) == "weekly")) {
            echo "checked=\"checked\"";
        }
        echo " />
                    <label for=\"update-frequency-weekly\">";
        // line 94
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "weekly", array()), "html", null, true);
        echo "</label>
                    <select name=\"update-weekly-day\"
                            ";
        // line 96
        if (($this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "settings", array()), "schedule", array()) != "weekly")) {
            echo "disabled";
        }
        echo ">
                        ";
        // line 97
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(range(0, 6));
        foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
            // line 98
            echo "                            <option value=\"";
            echo twig_escape_filter($this->env, $context["i"], "html", null, true);
            echo "\"";
            if (($this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "settings", array()), "week_day", array()) == $context["i"])) {
                echo " selected=\"selected\"";
            }
            echo ">";
            echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('get_weekday')->getCallable(), array($context["i"])), "html", null, true);
            echo "</option>
                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 100
        echo "                    </select>
                </li>

                <li>
                    <input type=\"radio\" id=\"update-frequency-monthly\" name=\"update-schedule\" value=\"monthly\"
                           ";
        // line 105
        if (($this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "settings", array()), "schedule", array()) == "monthly")) {
            echo "checked=\"checked\"";
        }
        echo " />
                    <label for=\"update-frequency-monthly\">";
        // line 106
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "monthly", array()), "html", null, true);
        echo "</label>
                    <select name=\"update-monthly-day\"
                            ";
        // line 108
        if (($this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "settings", array()), "schedule", array()) != "monthly")) {
            echo "disabled";
        }
        echo ">
                        ";
        // line 109
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(range(1, 31));
        foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
            // line 110
            echo "                            <option value=\"";
            echo twig_escape_filter($this->env, $context["i"], "html", null, true);
            echo "\"";
            if (($this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "settings", array()), "month_day", array()) == $context["i"])) {
                echo " selected=\"selected\"";
            }
            echo ">";
            echo twig_escape_filter($this->env, $context["i"], "html", null, true);
            if (($context["i"] == 1)) {
                echo "st";
            } elseif (($context["i"] == 2)) {
                echo "nd";
            } elseif (($context["i"] == 2)) {
                echo "rd";
            } else {
                echo "th";
            }
            echo "</option>
                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 112
        echo "                    </select>
                </li>

                <li>
                    <input type=\"radio\" id=\"update-frequency-manual\" name=\"update-schedule\" value=\"manual\"
                           ";
        // line 117
        if (($this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "settings", array()), "schedule", array()) == "manual")) {
            echo "checked=\"checked\"";
        }
        echo " />
                    <label for=\"update-frequency-manual\">";
        // line 118
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["exchange_rates"] ?? null), "strings", array()), "manually", array()), "html", null, true);
        echo "</label>
                </li>
            </ul>
        </div>
    </div>
</div>
</div>";
    }

    public function getTemplateName()
    {
        return "exchange-rates.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  360 => 118,  354 => 117,  347 => 112,  323 => 110,  319 => 109,  313 => 108,  308 => 106,  302 => 105,  295 => 100,  280 => 98,  276 => 97,  270 => 96,  265 => 94,  259 => 93,  251 => 88,  245 => 87,  237 => 82,  229 => 77,  225 => 76,  221 => 75,  217 => 74,  211 => 70,  201 => 65,  193 => 63,  191 => 62,  183 => 61,  178 => 59,  172 => 58,  166 => 55,  162 => 54,  158 => 53,  154 => 52,  147 => 50,  139 => 47,  134 => 45,  130 => 44,  124 => 43,  118 => 42,  115 => 41,  111 => 40,  105 => 37,  97 => 32,  90 => 28,  85 => 26,  81 => 25,  74 => 21,  66 => 18,  59 => 14,  53 => 13,  45 => 10,  40 => 8,  34 => 7,  28 => 4,  19 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Twig_Source("", "exchange-rates.twig", "C:\\xampp\\htdocs\\mongolianeconomy\\wp-content\\plugins\\woocommerce-multilingual\\templates\\multi-currency\\exchange-rates.twig");
    }
}
