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

/* @AkeneoBatch/Email/notification.txt.twig */
class __TwigTemplate_76eafc971b57f47bbcc2da7d10bd87fc extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->blocks = [
            'emailMessage' => [$this, 'block_emailMessage'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "@PimNotification/Email/notification.txt.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $this->parent = $this->loadTemplate("@PimNotification/Email/notification.txt.twig", "@AkeneoBatch/Email/notification.txt.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    public function block_emailMessage($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 4
        yield "    Dear ";
        yield ($context["email"] ?? null);
        yield ",
    ";
        // line 5
        if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["jobExecution"] ?? null), "status", [], "any", false, false, false, 5), "unsuccessful", [], "any", false, false, false, 5)) {
            // line 6
            yield "        Akeneo completed your \"";
            yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["jobExecution"] ?? null), "jobInstance", [], "any", false, false, false, 6), "label", [], "any", false, false, false, 6);
            yield "\" job with errors.
    ";
        } else {
            // line 8
            yield "        Akeneo successfully completed your \"";
            yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["jobExecution"] ?? null), "jobInstance", [], "any", false, false, false, 8), "label", [], "any", false, false, false, 8);
            yield "\" job.
    ";
        }
        // line 10
        yield "
    Started on ";
        // line 11
        yield Twig\Extension\CoreExtension::dateFormatFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["jobExecution"] ?? null), "startTime", [], "any", false, false, false, 11), "Y-m-d");
        yield " at ";
        yield Twig\Extension\CoreExtension::dateFormatFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["jobExecution"] ?? null), "startTime", [], "any", false, false, false, 11), "H:i:s");
        yield ".
    Ended on ";
        // line 12
        yield Twig\Extension\CoreExtension::dateFormatFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["jobExecution"] ?? null), "endTime", [], "any", false, false, false, 12), "Y-m-d");
        yield " at ";
        yield Twig\Extension\CoreExtension::dateFormatFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["jobExecution"] ?? null), "endTime", [], "any", false, false, false, 12), "H:i:s");
        yield ".

    Results:
    ";
        // line 15
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["jobExecution"] ?? null), "stepExecutions", [], "any", false, false, false, 15));
        foreach ($context['_seq'] as $context["_key"] => $context["stepExecution"]) {
            // line 16
            yield "      - ";
            yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["stepExecution"], "stepName", [], "any", false, false, false, 16));
            yield " [";
            yield CoreExtension::getAttribute($this->env, $this->source, $context["stepExecution"], "status", [], "any", false, false, false, 16);
            yield "]
    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['stepExecution'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 18
        yield "
    ";
        // line 19
        if ( !Twig\Extension\CoreExtension::testEmpty(($context["akeneo_pim_url"] ?? null))) {
            // line 20
            yield "        You can view full summary at :
        ";
            // line 21
            yield ((($context["akeneo_pim_url"] ?? null) . "/#") . $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("akeneo_job_process_tracker_details", ["id" => CoreExtension::getAttribute($this->env, $this->source, ($context["jobExecution"] ?? null), "id", [], "any", false, false, false, 21)]));
            yield "
    ";
        } else {
            // line 23
            yield "        You should set the AKENEO_PIM_URL environment variable to view summary.
    ";
        }
        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "@AkeneoBatch/Email/notification.txt.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  115 => 23,  110 => 21,  107 => 20,  105 => 19,  102 => 18,  91 => 16,  87 => 15,  79 => 12,  73 => 11,  70 => 10,  64 => 8,  58 => 6,  56 => 5,  51 => 4,  47 => 3,  36 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "@AkeneoBatch/Email/notification.txt.twig", "/var/www/html/pim/vendor/akeneo/pim-community-dev/src/Akeneo/Tool/Bundle/BatchBundle/Resources/views/Email/notification.txt.twig");
    }
}
