<?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;
/* @EmcgnGewerbeschein/storefront/page/account/index.html.twig */
class __TwigTemplate_2c9ea4978f8eb152bd9f4985aceab152d524bdeaea53d7094e1bf57389b6c154 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_account_overview_addresses_include' => [$this, 'block_page_account_overview_addresses_include'],
'emcgn_account_overview_tradelicense' => [$this, 'block_emcgn_account_overview_tradelicense'],
'emcgn_account_overview_tradelicense_title' => [$this, 'block_emcgn_account_overview_tradelicense_title'],
'emcgn_account_overview_tradelicense_content' => [$this, 'block_emcgn_account_overview_tradelicense_content'],
'emcgn_account_overview_tradelicense_actions' => [$this, 'block_emcgn_account_overview_tradelicense_actions'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/storefront/page/account/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", "@EmcgnGewerbeschein/storefront/page/account/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", "@EmcgnGewerbeschein/storefront/page/account/index.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/page/account/index.html.twig", "@EmcgnGewerbeschein/storefront/page/account/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_account_overview_addresses_include($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_account_overview_addresses_include"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_account_overview_addresses_include"));
// line 4
echo " ";
$this->displayParentBlock("page_account_overview_addresses_include", $context, $blocks);
echo "
";
// line 6
$this->displayBlock('emcgn_account_overview_tradelicense', $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function block_emcgn_account_overview_tradelicense($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", "emcgn_account_overview_tradelicense"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "emcgn_account_overview_tradelicense"));
// line 7
echo " ";
if ((0 === twig_compare(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 7), "emcgnTradeLicense", [], "any", false, false, false, 7), "vars", [], "any", false, false, false, 7), "data", [], "any", false, false, false, 7), "isEnabled", [], "any", false, false, false, 7), true))) {
// line 8
echo " <div class=\"row\">
<div class=\"col-lg-6 card-col account-overview-card emcgn--account-overview-tradelicense\">
<div class=\"card\">
<div class=\"card-body\">
";
// line 12
$this->displayBlock('emcgn_account_overview_tradelicense_title', $context, $blocks);
// line 17
echo "
";
// line 18
$this->displayBlock('emcgn_account_overview_tradelicense_content', $context, $blocks);
// line 28
echo "
";
// line 29
$this->displayBlock('emcgn_account_overview_tradelicense_actions', $context, $blocks);
// line 38
echo " </div>
</div>
</div>
</div>
";
}
// line 43
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 12
public function block_emcgn_account_overview_tradelicense_title($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", "emcgn_account_overview_tradelicense_title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "emcgn_account_overview_tradelicense_title"));
// line 13
echo " <h2 class=\"card-title\">
";
// line 14
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("emcgn-trade-license.card.headline"), "html", null, true);
echo "
</h2>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 18
public function block_emcgn_account_overview_tradelicense_content($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", "emcgn_account_overview_tradelicense_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "emcgn_account_overview_tradelicense_content"));
// line 19
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 19), "emcgnTradeLicense", [], "any", false, false, false, 19), "vars", [], "any", false, false, false, 19), "data", [], "any", false, false, false, 19), "tradeLicenses", [], "any", false, false, false, 19)) {
// line 20
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "extensions", [], "any", false, false, false, 20), "emcgnTradeLicense", [], "any", false, false, false, 20), "vars", [], "any", false, false, false, 20), "data", [], "any", false, false, false, 20), "tradeLicenses", [], "any", false, false, false, 20));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["tradeLicense"]) {
// line 21
echo " ";
if ((0 === twig_compare(sw_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 21), 1))) {
echo "<p>";
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("emcgn-trade-license.card.uploaded"), "html", null, true);
echo ": ";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["tradeLicense"], "uploadDate", [], "any", false, false, false, 21), "html", null, true);
echo "</p>";
}
// line 22
echo " <a href=\"";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["tradeLicense"], "url", [], "any", false, false, false, 22), "html", null, true);
echo "\" class=\"btn btn-secondary emcgn--show-tradelicense\" target=\"_blank\" title=\"";
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("emcgn-trade-license.card.link.title"), "html", null, true);
if ((0 !== twig_compare(sw_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 22), 1))) {
echo " (";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 22), "html", null, true);
echo ")";
}
echo "\">";
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("emcgn-trade-license.card.link.label"), "html", null, true);
if ((0 !== twig_compare(sw_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 22), 1))) {
echo " (";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 22), "html", null, true);
echo ")";
}
echo "</a>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tradeLicense'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 24
echo " ";
} else {
// line 25
echo " <p>";
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("emcgn-trade-license.card.not-uploaded"), "html", null, true);
echo "</p>
";
}
// line 27
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 29
public function block_emcgn_account_overview_tradelicense_actions($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", "emcgn_account_overview_tradelicense_actions"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "emcgn_account_overview_tradelicense_actions"));
// line 30
echo " <div class=\"card-actions\">
<a href=\"";
// line 31
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.account.profile.page");
echo "\"
title=\"";
// line 32
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("emcgn-trade-license.card.action.title"), "html", null, true);
echo "\"
class=\"btn btn-light\">
";
// line 34
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("emcgn-trade-license.card.action.label"), "html", null, true);
echo "
</a>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@EmcgnGewerbeschein/storefront/page/account/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 273 => 34, 268 => 32, 264 => 31, 261 => 30, 251 => 29, 241 => 27, 235 => 25, 232 => 24, 201 => 22, 192 => 21, 174 => 20, 171 => 19, 161 => 18, 148 => 14, 145 => 13, 135 => 12, 125 => 43, 118 => 38, 116 => 29, 113 => 28, 111 => 18, 108 => 17, 106 => 12, 100 => 8, 97 => 7, 78 => 6, 72 => 4, 62 => 3, 39 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/account/index.html.twig' %}
{% block page_account_overview_addresses_include %}
{{ parent() }}
{% block emcgn_account_overview_tradelicense %}
{% if page.extensions.emcgnTradeLicense.vars.data.isEnabled == true %}
<div class=\"row\">
<div class=\"col-lg-6 card-col account-overview-card emcgn--account-overview-tradelicense\">
<div class=\"card\">
<div class=\"card-body\">
{% block emcgn_account_overview_tradelicense_title %}
<h2 class=\"card-title\">
{{ \"emcgn-trade-license.card.headline\"|trans }}
</h2>
{% endblock %}
{% block emcgn_account_overview_tradelicense_content %}
{% if page.extensions.emcgnTradeLicense.vars.data.tradeLicenses %}
{% for tradeLicense in page.extensions.emcgnTradeLicense.vars.data.tradeLicenses %}
{% if loop.index == 1 %}<p>{{ \"emcgn-trade-license.card.uploaded\" | trans }}: {{ tradeLicense.uploadDate }}</p>{% endif %}
<a href=\"{{ tradeLicense.url }}\" class=\"btn btn-secondary emcgn--show-tradelicense\" target=\"_blank\" title=\"{{ \"emcgn-trade-license.card.link.title\" | trans }}{% if loop.index != 1 %} ({{ loop.index0 }}){% endif %}\">{{ \"emcgn-trade-license.card.link.label\" | trans }}{% if loop.index != 1 %} ({{ loop.index0 }}){% endif %}</a>
{% endfor %}
{% else %}
<p>{{ \"emcgn-trade-license.card.not-uploaded\" | trans }}</p>
{% endif %}
{% endblock %}
{% block emcgn_account_overview_tradelicense_actions %}
<div class=\"card-actions\">
<a href=\"{{ path('frontend.account.profile.page') }}\"
title=\"{{ \"emcgn-trade-license.card.action.title\"|trans }}\"
class=\"btn btn-light\">
{{ \"emcgn-trade-license.card.action.label\"|trans }}
</a>
</div>
{% endblock %}
</div>
</div>
</div>
</div>
{% endif %}
{% endblock %}
{% endblock %}
", "@EmcgnGewerbeschein/storefront/page/account/index.html.twig", "/home/fasflpog/shopware/custom/plugins/EmcgnGewerbeschein/src/Resources/views/storefront/page/account/index.html.twig");
}
}