<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
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;
/* @MolliePayments/storefront/page/checkout/cart/index.html.twig */
class __TwigTemplate_e4f039f7bfe0fe2db136fe5a4865f309afca2ba720dd24ee355d0b059210cc02 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_checkout_cart_shipping_costs_form_group_payment_method' => [$this, 'block_page_checkout_cart_shipping_costs_form_group_payment_method'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/page/checkout/cart/index.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@MolliePayments/storefront/page/checkout/cart/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@MolliePayments/storefront/page/checkout/cart/index.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/page/checkout/cart/index.html.twig", "@MolliePayments/storefront/page/checkout/cart/index.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_page_checkout_cart_shipping_costs_form_group_payment_method($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_cart_shipping_costs_form_group_payment_method"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_cart_shipping_costs_form_group_payment_method"));
// line 4
echo " <div class=\"form-group\">
<label for=\"paymentMethodId\">";
// line 5
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.paymentMethod"));
echo "</label>
<select class=\"custom-select\" type=\"text\" id=\"paymentMethodId\" name=\"paymentMethodId\">
";
// line 7
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "paymentMethods", [], "any", false, false, false, 7));
foreach ($context['_seq'] as $context["_key"] => $context["payment"]) {
// line 8
echo " <option value=\"";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["payment"], "id", [], "any", false, false, false, 8), "html", null, true);
echo "\"
";
// line 9
if ((sw_get_attribute($this->env, $this->source, $context["payment"], "id", [], "any", false, false, false, 9) == sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["context"] ?? null), "paymentMethod", [], "any", false, false, false, 9), "id", [], "any", false, false, false, 9))) {
echo " selected=\"selected\"";
}
echo ">
";
// line 10
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["payment"], "translated", [], "any", false, false, false, 10), "name", [], "any", false, false, false, 10), "html", null, true);
echo "
";
// line 12
if ((twig_in_filter("MolliePayments", sw_get_attribute($this->env, $this->source, $context["payment"], "handlerIdentifier", [], "any", false, false, false, 12)) && (sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "isMollieTestMode", [], "any", false, false, false, 12) == true))) {
// line 13
echo " (";
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("molliePayments.testMode.label"), "html", null, true);
echo ")
";
}
// line 15
echo " </option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['payment'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 17
echo " </select>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@MolliePayments/storefront/page/checkout/cart/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 111 => 17, 104 => 15, 98 => 13, 96 => 12, 91 => 10, 85 => 9, 80 => 8, 76 => 7, 71 => 5, 68 => 4, 58 => 3, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/checkout/cart/index.html.twig' %}
{% block page_checkout_cart_shipping_costs_form_group_payment_method %}
<div class=\"form-group\">
<label for=\"paymentMethodId\">{{ \"checkout.paymentMethod\"|trans|sw_sanitize }}</label>
<select class=\"custom-select\" type=\"text\" id=\"paymentMethodId\" name=\"paymentMethodId\">
{% for payment in page.paymentMethods %}
<option value=\"{{ payment.id }}\"
{% if payment.id == context.paymentMethod.id %} selected=\"selected\"{% endif %}>
{{ payment.translated.name }}
{% if \"MolliePayments\" in payment.handlerIdentifier and page.isMollieTestMode == true %}
({{ \"molliePayments.testMode.label\"|trans }})
{% endif %}
</option>
{% endfor %}
</select>
</div>
{% endblock %}
", "@MolliePayments/storefront/page/checkout/cart/index.html.twig", "/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/MolliePayments/src/Resources/views/storefront/page/checkout/cart/index.html.twig");
}
}