HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/matomo.circ/tmp/templates_c/b2/b243c046ed8ee46a0f568d3d3e4a1718.php
<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;

/* @Ecommerce/_profileSummary.twig */
class __TwigTemplate_70c85584d7ec1613e5501f660a4c72a2 extends 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
        yield "<div class=\"visitor-profile-summary visitor-profile-lifetimevalue\">
    <h1>";
        // line 2
        yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Goals_Ecommerce"), "html", null, true);
        yield "</h1>
    <div>
        <p title=\"";
        // line 4
        yield \Piwik\piwik_escape_filter($this->env, $this->env->getFilter('translate')->getCallable()("Ecommerce_LifeTimeValueDescription", CoreExtension::getAttribute($this->env, $this->source, (isset($context["visitorData"]) || array_key_exists("visitorData", $context) ? $context["visitorData"] : (function () { throw new RuntimeError('Variable "visitorData" does not exist.', 4, $this->source); })()), "visitorId", [], "any", false, false, false, 4)), "html", null, true);
        yield "\">
            ";
        // line 5
        yield $this->env->getFilter('translate')->getCallable()("Ecommerce_VisitorProfileLTV", (("<strong>" . $this->env->getFilter('money')->getCallable()(CoreExtension::getAttribute($this->env, $this->source, (isset($context["visitorData"]) || array_key_exists("visitorData", $context) ? $context["visitorData"] : (function () { throw new RuntimeError('Variable "visitorData" does not exist.', 5, $this->source); })()), "totalEcommerceRevenue", [], "any", false, false, false, 5), (isset($context["idSite"]) || array_key_exists("idSite", $context) ? $context["idSite"] : (function () { throw new RuntimeError('Variable "idSite" does not exist.', 5, $this->source); })()))) . "</strong>"));
        yield "
            ";
        // line 6
        yield $this->env->getFilter('translate')->getCallable()("Ecommerce_VisitorProfileItemsAndOrders", (("<strong>" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["visitorData"]) || array_key_exists("visitorData", $context) ? $context["visitorData"] : (function () { throw new RuntimeError('Variable "visitorData" does not exist.', 6, $this->source); })()), "totalEcommerceItems", [], "any", false, false, false, 6)) . "</strong>"), (("<strong>" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["visitorData"]) || array_key_exists("visitorData", $context) ? $context["visitorData"] : (function () { throw new RuntimeError('Variable "visitorData" does not exist.', 6, $this->source); })()), "totalEcommerceConversions", [], "any", false, false, false, 6)) . "</strong>"));
        yield "
        </p>
        <p>";
        // line 9
        if ((((CoreExtension::getAttribute($this->env, $this->source, ($context["visitorData"] ?? null), "totalAbandonedCarts", [], "any", true, true, false, 9)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["visitorData"] ?? null), "totalAbandonedCarts", [], "any", false, false, false, 9), 0)) : (0)) > 0)) {
            // line 10
            yield "                ";
            yield $this->env->getFilter('translate')->getCallable()("Ecommerce_VisitorProfileAbandonedCartSummary", (("<strong>" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["visitorData"]) || array_key_exists("visitorData", $context) ? $context["visitorData"] : (function () { throw new RuntimeError('Variable "visitorData" does not exist.', 10, $this->source); })()), "totalAbandonedCarts", [], "any", false, false, false, 10)) . "</strong>"), (("<strong>" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["visitorData"]) || array_key_exists("visitorData", $context) ? $context["visitorData"] : (function () { throw new RuntimeError('Variable "visitorData" does not exist.', 10, $this->source); })()), "totalAbandonedCartsItems", [], "any", false, false, false, 10)) . "</strong>"), (("<strong>" . $this->env->getFilter('money')->getCallable()(CoreExtension::getAttribute($this->env, $this->source, (isset($context["visitorData"]) || array_key_exists("visitorData", $context) ? $context["visitorData"] : (function () { throw new RuntimeError('Variable "visitorData" does not exist.', 10, $this->source); })()), "totalAbandonedCartsRevenue", [], "any", false, false, false, 10), (isset($context["idSite"]) || array_key_exists("idSite", $context) ? $context["idSite"] : (function () { throw new RuntimeError('Variable "idSite" does not exist.', 10, $this->source); })()))) . "</strong>"));
        }
        // line 12
        yield "</p>
    </div>
</div>";
        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "@Ecommerce/_profileSummary.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable()
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  65 => 12,  61 => 10,  59 => 9,  54 => 6,  50 => 5,  46 => 4,  41 => 2,  38 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div class=\"visitor-profile-summary visitor-profile-lifetimevalue\">
    <h1>{{ 'Goals_Ecommerce'|translate }}</h1>
    <div>
        <p title=\"{{ 'Ecommerce_LifeTimeValueDescription'|translate(visitorData.visitorId) }}\">
            {{ 'Ecommerce_VisitorProfileLTV'|translate( \"<strong>\" ~ visitorData.totalEcommerceRevenue|money(idSite) ~ \"</strong>\")|raw }}
            {{ 'Ecommerce_VisitorProfileItemsAndOrders'|translate(\"<strong>\" ~ visitorData.totalEcommerceItems ~ \"</strong>\", \"<strong>\" ~ visitorData.totalEcommerceConversions ~ \"</strong>\")|raw }}
        </p>
        <p>
            {%- if visitorData.totalAbandonedCarts|default(0) > 0 %}
                {{ 'Ecommerce_VisitorProfileAbandonedCartSummary'|translate('<strong>' ~ visitorData.totalAbandonedCarts ~ '</strong>', '<strong>' ~ visitorData.totalAbandonedCartsItems ~ '</strong>', '<strong>' ~ visitorData.totalAbandonedCartsRevenue|money(idSite) ~ '</strong>')|raw }}
            {%- endif -%}
        </p>
    </div>
</div>", "@Ecommerce/_profileSummary.twig", "D:\\web\\matomo.circ\\plugins\\Ecommerce\\templates\\_profileSummary.twig");
    }
}