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

/* extension/payment/razorpay.twig */
class __TwigTemplate_bb6675ef1ffd663b0761dbe73d3d4fd03074f7db672b61d015419febe598d6bd 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\">
\t<div class=\"page-header\">
\t\t<div class=\"container-fluid\">
\t\t\t<div class=\"pull-right\">
\t\t\t\t<button type=\"submit\" form=\"form-razorpay\" data-toggle=\"tooltip\" title=\"";
        // line 6
        echo ($context["button_save"] ?? null);
        echo "\" class=\"btn btn-primary\">
\t\t\t\t\t<i class=\"fa fa-save\"></i>
\t\t\t\t</button>
\t\t\t\t<a href=\"";
        // line 9
        echo ($context["cancel"] ?? null);
        echo "\" data-toggle=\"tooltip\" title=\"";
        echo ($context["button_cancel"] ?? null);
        echo "\" class=\"btn btn-default\">
\t\t\t\t\t<i class=\"fa fa-reply\"></i>
\t\t\t\t</a>
\t\t\t</div>
\t\t\t<h1>";
        // line 13
        echo ($context["heading_title"] ?? null);
        echo "</h1>
\t\t\t<ul class=\"breadcrumb\">
\t\t\t\t";
        // line 15
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["breadcrumbs"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            // line 16
            echo "\t\t\t\t\t<li>
\t\t\t\t\t\t<a href=\"";
            // line 17
            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>
\t\t\t\t\t</li>
\t\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 20
        echo "\t\t\t</ul>
\t\t</div>
\t</div>
\t<div class=\"container-fluid\">
\t\t";
        // line 24
        if (($context["error_warning"] ?? null)) {
            // line 25
            echo "\t\t\t<div class=\"alert alert-danger\">
\t\t\t\t<i class=\"fa fa-exclamation-circle\"></i>
\t\t\t\t";
            // line 27
            echo ($context["error_warning"] ?? null);
            echo "
\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
\t\t\t</div>
\t\t";
        }
        // line 31
        echo "\t\t<div class=\"panel panel-default\">
\t\t\t<div class=\"panel-heading\">
\t\t\t\t<h3 class=\"panel-title\">
\t\t\t\t\t<i class=\"fa fa-pencil\"></i>
\t\t\t\t\t";
        // line 35
        echo ($context["text_edit"] ?? null);
        echo "</h3>
\t\t\t</div>
\t\t\t<div class=\"panel-body\">
\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\tFirst <a href=\"https://easy.razorpay.com/onboarding?recommended_product=payment_gateway&source=opencart\" target=\"_blank\">signup</a> for a 
\t\t\t\t\t\tRazorpay account or <a href=\"https://dashboard.razorpay.com/signin?screen=sign_in&source=opencart\" target=\"_blank\">login</a> if you have an existing account.
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<form action=\"";
        // line 44
        echo ($context["action"] ?? null);
        echo "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-razorpay\" class=\"form-horizontal\">
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<label class=\"col-sm-2 control-label\" for=\"input-key-id\">
\t\t\t\t\t\t\t<span data-toggle=\"tooltip\" title=\"";
        // line 47
        echo ($context["help_key_id"] ?? null);
        echo "\">";
        echo ($context["entry_key_id"] ?? null);
        echo "</span>
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\t\t<input type=\"text\" name=\"payment_razorpay_key_id\" value=\"";
        // line 50
        echo ($context["razorpay_key_id"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_key_id"] ?? null);
        echo "\" id=\"input-key-id\" class=\"form-control\"/>
\t\t\t\t\t\t\t";
        // line 51
        if (($context["error_key_id"] ?? null)) {
            // line 52
            echo "\t\t\t\t\t\t\t\t<div class=\"text-danger\">";
            echo ($context["error_key_id"] ?? null);
            echo "</div>
\t\t\t\t\t\t\t";
        }
        // line 54
        echo "\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<label class=\"col-sm-2 control-label\" for=\"input-key-secret\">";
        // line 57
        echo ($context["entry_key_secret"] ?? null);
        echo "</label>
\t\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\t\t<input type=\"text\" name=\"payment_razorpay_key_secret\" value=\"";
        // line 59
        echo ($context["razorpay_key_secret"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_key_secret"] ?? null);
        echo "\" id=\"input-key-secret\" class=\"form-control\"/>
\t\t\t\t\t\t\t";
        // line 60
        if (($context["error_key_secret"] ?? null)) {
            // line 61
            echo "\t\t\t\t\t\t\t\t<div class=\"text-danger\">";
            echo ($context["error_key_secret"] ?? null);
            echo "</div>
\t\t\t\t\t\t\t";
        }
        // line 63
        echo "\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<label class=\"col-sm-2 control-label\" for=\"input-order-status\">
\t\t\t\t\t\t\t<span data-toggle=\"tooltip\" title=\"";
        // line 67
        echo ($context["help_order_status"] ?? null);
        echo "\">";
        echo ($context["entry_order_status"] ?? null);
        echo "</span>
\t\t\t\t\t\t</label>
\t\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\t\t<select name=\"payment_razorpay_order_status_id\" id=\"input-order-status\" class=\"form-control\">
\t\t\t\t\t\t\t\t";
        // line 71
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["order_statuses"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["order_status"]) {
            // line 72
            echo "\t\t\t\t\t\t\t\t\t";
            if ((($context["razorpay_order_status_id"] ?? null) && (twig_get_attribute($this->env, $this->source, $context["order_status"], "order_status_id", [], "any", false, false, false, 72) == ($context["razorpay_order_status_id"] ?? null)))) {
                // line 73
                echo "\t\t\t\t\t\t\t\t\t\t<option value=\"";
                echo twig_get_attribute($this->env, $this->source, $context["order_status"], "order_status_id", [], "any", false, false, false, 73);
                echo "\" selected=\"selected\">";
                echo twig_get_attribute($this->env, $this->source, $context["order_status"], "name", [], "any", false, false, false, 73);
                echo "</option>
\t\t\t\t\t\t\t\t\t";
            } else {
                // line 75
                echo "\t\t\t\t\t\t\t\t\t\t<option value=\"";
                echo twig_get_attribute($this->env, $this->source, $context["order_status"], "order_status_id", [], "any", false, false, false, 75);
                echo "\">";
                echo twig_get_attribute($this->env, $this->source, $context["order_status"], "name", [], "any", false, false, false, 75);
                echo "</option>
\t\t\t\t\t\t\t\t\t";
            }
            // line 77
            echo "\t\t\t\t\t\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['order_status'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 78
        echo "\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<label class=\"col-sm-2 control-label\" for=\"input-status\">";
        // line 82
        echo ($context["entry_status"] ?? null);
        echo "</label>
\t\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\t\t<select name=\"payment_razorpay_status\" id=\"input-status\" class=\"form-control\">
\t\t\t\t\t\t\t\t";
        // line 85
        if (($context["razorpay_status"] ?? null)) {
            // line 86
            echo "\t\t\t\t\t\t\t\t\t<option value=\"1\" selected=\"selected\">";
            echo ($context["text_enabled"] ?? null);
            echo "</option>
\t\t\t\t\t\t\t\t\t<option value=\"0\">";
            // line 87
            echo ($context["text_disabled"] ?? null);
            echo "</option>
\t\t\t\t\t\t\t\t";
        } else {
            // line 89
            echo "\t\t\t\t\t\t\t\t\t<option value=\"1\">";
            echo ($context["text_enabled"] ?? null);
            echo "</option>
\t\t\t\t\t\t\t\t\t<option value=\"0\" selected=\"selected\">";
            // line 90
            echo ($context["text_disabled"] ?? null);
            echo "</option>
\t\t\t\t\t\t\t\t";
        }
        // line 92
        echo "\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<label class=\"col-sm-2 control-label\" for=\"input-sort-order\">";
        // line 96
        echo ($context["entry_sort_order"] ?? null);
        echo "</label>
\t\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\t\t<input type=\"text\" name=\"payment_razorpay_sort_order\" value=\"";
        // line 98
        echo ($context["razorpay_sort_order"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_sort_order"] ?? null);
        echo "\" id=\"input-sort-order\" class=\"form-control\"/>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<label class=\"col-sm-2 control-label\" for=\"input-pay-action\">";
        // line 103
        echo ($context["entry_payment_action"] ?? null);
        echo "</label>
\t\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\t\t<select name=\"payment_razorpay_payment_action\" id=\"input-pay-action\" class=\"form-control\">
\t\t\t\t\t\t\t\t";
        // line 106
        if (( !($context["razorpay_payment_action"] ?? null) || (($context["razorpay_payment_action"] ?? null) == "capture"))) {
            // line 107
            echo "\t\t\t\t\t\t\t\t\t<option value=\"capture\" selected=\"selected\">";
            echo ($context["text_capture"] ?? null);
            echo "</option>
\t\t\t\t\t\t\t\t\t<option value=\"authorize\">";
            // line 108
            echo ($context["text_authorize"] ?? null);
            echo "</option>
\t\t\t\t\t\t\t\t";
        } else {
            // line 110
            echo "\t\t\t\t\t\t\t\t\t<option value=\"capture\">";
            echo ($context["text_capture"] ?? null);
            echo "</option>
\t\t\t\t\t\t\t\t\t<option value=\"authorize\" selected=\"selected\">";
            // line 111
            echo ($context["text_authorize"] ?? null);
            echo "</option>
\t\t\t\t\t\t\t\t";
        }
        // line 113
        echo "\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<label class=\"col-sm-2 control-label\" for=\"input-subscription-status\">";
        // line 118
        echo ($context["entry_subscription_status"] ?? null);
        echo "</label>
\t\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\t\t<select name=\"payment_razorpay_subscription_status\" id=\"input-subscription-status\" class=\"form-control\">
\t\t\t\t\t\t\t\t";
        // line 121
        if (($context["razorpay_subscription_status"] ?? null)) {
            // line 122
            echo "\t\t\t\t\t\t\t\t\t<option value=\"1\" selected=\"selected\">";
            echo ($context["text_enabled"] ?? null);
            echo "</option>
\t\t\t\t\t\t\t\t\t<option value=\"0\">";
            // line 123
            echo ($context["text_disabled"] ?? null);
            echo "</option>
\t\t\t\t\t\t\t\t";
        } else {
            // line 125
            echo "\t\t\t\t\t\t\t\t\t<option value=\"1\">";
            echo ($context["text_enabled"] ?? null);
            echo "</option>
\t\t\t\t\t\t\t\t\t<option value=\"0\" selected=\"selected\">";
            // line 126
            echo ($context["text_disabled"] ?? null);
            echo "</option>
\t\t\t\t\t\t\t\t";
        }
        // line 128
        echo "\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group alert-warning\">
\t\t\t\t\t\t<div class=\"col-sm-12\">
\t\t\t\t\t\t\t<label>";
        // line 133
        echo ($context["text_webhook_cron_header"] ?? null);
        echo "</label>
\t\t\t\t\t\t\t";
        // line 134
        echo ($context["text_webhook_cron"] ?? null);
        echo "
\t\t\t\t\t\t\t<div class=\"checkbox\">
\t\t\t\t\t\t\t\t<label>
\t\t\t\t\t\t\t\t\t";
        // line 137
        if (($context["razorpay_webhook_cron_status"] ?? null)) {
            // line 138
            echo "\t\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"payment_razorpay_webhook_cron_status\" id=\"input-webhook-cron\" checked=\"checked\"/>
\t\t\t\t\t\t\t\t\t";
        } else {
            // line 140
            echo "\t\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"payment_razorpay_webhook_cron_status\" id=\"input-webhook-cron\"/>
\t\t\t\t\t\t\t\t\t";
        }
        // line 142
        echo "\t\t\t\t\t\t\t\t\t&nbsp; ";
        echo ($context["text_webhook_cron_confirm"] ?? null);
        echo "
\t\t\t\t\t\t\t\t</label>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t</div>
</div>
";
        // line 152
        echo ($context["footer"] ?? null);
        echo "
";
    }

    public function getTemplateName()
    {
        return "extension/payment/razorpay.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  376 => 152,  362 => 142,  358 => 140,  354 => 138,  352 => 137,  346 => 134,  342 => 133,  335 => 128,  330 => 126,  325 => 125,  320 => 123,  315 => 122,  313 => 121,  307 => 118,  300 => 113,  295 => 111,  290 => 110,  285 => 108,  280 => 107,  278 => 106,  272 => 103,  262 => 98,  257 => 96,  251 => 92,  246 => 90,  241 => 89,  236 => 87,  231 => 86,  229 => 85,  223 => 82,  217 => 78,  211 => 77,  203 => 75,  195 => 73,  192 => 72,  188 => 71,  179 => 67,  173 => 63,  167 => 61,  165 => 60,  159 => 59,  154 => 57,  149 => 54,  143 => 52,  141 => 51,  135 => 50,  127 => 47,  121 => 44,  109 => 35,  103 => 31,  96 => 27,  92 => 25,  90 => 24,  84 => 20,  73 => 17,  70 => 16,  66 => 15,  61 => 13,  52 => 9,  46 => 6,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "extension/payment/razorpay.twig", "");
    }
}
