<?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_3514711e5988927e2fe86d9604ef29f8 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'],
'page_checkout_aside_actions' => [$this, 'block_page_checkout_aside_actions'],
'page_checkout_aside_actions_apple_direct_component' => [$this, 'block_page_checkout_aside_actions_apple_direct_component'],
];
}
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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@MolliePayments/storefront/page/checkout/cart/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_page_checkout_cart_shipping_costs_form_group_payment_method($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_cart_shipping_costs_form_group_payment_method"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 22
public function block_page_checkout_aside_actions($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_aside_actions"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_aside_actions"));
// line 23
echo " ";
$this->displayParentBlock("page_checkout_aside_actions", $context, $blocks);
echo "
";
// line 24
if ((($context["mollie_applepaydirect_enabled"] ?? null) && !twig_in_filter("cart", ($context["mollie_applepaydirect_restrictions"] ?? null)))) {
// line 25
echo " ";
$this->displayBlock('page_checkout_aside_actions_apple_direct_component', $context, $blocks);
// line 30
echo " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 25
public function block_page_checkout_aside_actions_apple_direct_component($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_aside_actions_apple_direct_component"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_aside_actions_apple_direct_component"));
// line 26
echo " <div class=\"mt-2 js-apple-pay-container mollie-apple-pay-direct-cart\">
";
// line 27
$this->loadTemplate("@MolliePayments/mollie/component/apple-pay-direct-button.twig", "@MolliePayments/storefront/page/checkout/cart/index.html.twig", 27)->display($context);
// line 28
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@MolliePayments/storefront/page/checkout/cart/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 171 => 28, 169 => 27, 166 => 26, 156 => 25, 145 => 30, 142 => 25, 140 => 24, 135 => 23, 125 => 22, 113 => 17, 106 => 15, 100 => 13, 98 => 12, 93 => 10, 87 => 9, 82 => 8, 78 => 7, 73 => 5, 70 => 4, 60 => 3, 37 => 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 %}
{% block page_checkout_aside_actions %}
{{ parent() }}
{% if mollie_applepaydirect_enabled and ('cart' not in mollie_applepaydirect_restrictions) %}
{% block page_checkout_aside_actions_apple_direct_component %}
<div class=\"mt-2 js-apple-pay-container mollie-apple-pay-direct-cart\">
{% include '@MolliePayments/mollie/component/apple-pay-direct-button.twig' %}
</div>
{% endblock %}
{% endif %}
{% endblock %}
", "@MolliePayments/storefront/page/checkout/cart/index.html.twig", "/home/atc/shopware/custom/plugins/MolliePayments/src/Resources/views/storefront/page/checkout/cart/index.html.twig");
}
}