<?php

use Twig\Environment;
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;

/* @PrestaShop/Admin/Common/Grid/grid.html.twig */
class __TwigTemplate_060ef2bd4735a2567434eb796136db4e extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'grid_extra_content' => [$this, 'block_grid_extra_content'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "@!PrestaShop/Admin/Common/Grid/grid.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", "@PrestaShop/Admin/Common/Grid/grid.html.twig"));

        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/Common/Grid/grid.html.twig"));

        $this->parent = $this->loadTemplate("@!PrestaShop/Admin/Common/Grid/grid.html.twig", "@PrestaShop/Admin/Common/Grid/grid.html.twig", 1);
        $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_grid_extra_content($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", "grid_extra_content"));

        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "grid_extra_content"));

        // line 4
        echo "    ";
        if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["grid"] ?? null), "data", [], "any", false, true, false, 4), "createDraftUrl", [], "any", true, true, false, 4)) {
            // line 5
            echo "        <input type=\"hidden\" class=\"pl-create-endpoint\" value=\"";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["grid"]) || array_key_exists("grid", $context) ? $context["grid"] : (function () { throw new RuntimeError('Variable "grid" does not exist.', 5, $this->source); })()), "data", [], "any", false, false, false, 5), "createDraftUrl", [], "any", false, false, false, 5), "html", null, true);
            echo "\"/>
        <input type=\"hidden\" class=\"pl-draft-status\" value=\"";
            // line 6
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["grid"]) || array_key_exists("grid", $context) ? $context["grid"] : (function () { throw new RuntimeError('Variable "grid" does not exist.', 6, $this->source); })()), "data", [], "any", false, false, false, 6), "draftStatusUrl", [], "any", false, false, false, 6), "html", null, true);
            echo "\"/>
        <p id=\"pl-label-printed\" hidden>";
            // line 7
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Printed", [], "Modules.Packlink.Admin"), "html", null, true);
            echo "</p>
        <p id=\"pl-label-ready\" hidden>";
            // line 8
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ready", [], "Modules.Packlink.Admin"), "html", null, true);
            echo "</p>
        <p id=\"pl-disable-popup\" hidden>
            ";
            // line 10
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please disable pop-up blocker on this page in order to bulk open shipment labels", [], "Modules.Packlink.Admin"), "html", null, true);
            echo "
        </p>
        <p id=\"pl-print-labels-url\" hidden>
            ";
            // line 13
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["grid"]) || array_key_exists("grid", $context) ? $context["grid"] : (function () { throw new RuntimeError('Variable "grid" does not exist.', 13, $this->source); })()), "data", [], "any", false, false, false, 13), "printLabelsUrl", [], "any", false, false, false, 13), "html", null, true);
            echo "
        </p>
        <input type=\"hidden\" class=\"pl-draft-in-progress-message\"
               value=\"";
            // line 16
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Draft is currently being created.", [], "Modules.Packlink.Admin"), "html", null, true);
            echo "\"/>
        <input type=\"hidden\" class=\"pl-draft-failed-message\"
               value=\"";
            // line 18
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Previous attempt to create a draft failed.", [], "Modules.Packlink.Admin"), "html", null, true);
            echo "\"/>

        <a class=\"btn btn-default pl-create-draft-button pl-create-draft-template\">
            <img
                    class=\"pl-image\"
                    src=\"";
            // line 23
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["grid"]) || array_key_exists("grid", $context) ? $context["grid"] : (function () { throw new RuntimeError('Variable "grid" does not exist.', 23, $this->source); })()), "data", [], "any", false, false, false, 23), "packlinkLogo", [], "any", false, false, false, 23), "html", null, true);
            echo "\"
                    alt=\"";
            // line 24
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Packlink order draft", [], "Modules.Packlink.Admin"), "html", null, true);
            echo "\"
            >
            <span></span>
        </a>

        <a class=\"btn btn-default pl-draft-button pl-draft-button-template\" target=\"_blank\">
            <img
                    class=\"pl-image\"
                    src=\"";
            // line 32
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["grid"]) || array_key_exists("grid", $context) ? $context["grid"] : (function () { throw new RuntimeError('Variable "grid" does not exist.', 32, $this->source); })()), "data", [], "any", false, false, false, 32), "packlinkLogo", [], "any", false, false, false, 32), "html", null, true);
            echo "\"
                    alt=\"";
            // line 33
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Packlink order draft", [], "Modules.Packlink.Admin"), "html", null, true);
            echo "\"
            >
            <span>";
            // line 35
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("View on Packlink", [], "Modules.Packlink.Admin"), "html", null, true);
            echo "</span>
        </a>
    ";
        }
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

    }

    public function getTemplateName()
    {
        return "@PrestaShop/Admin/Common/Grid/grid.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  138 => 35,  133 => 33,  129 => 32,  118 => 24,  114 => 23,  106 => 18,  101 => 16,  95 => 13,  89 => 10,  84 => 8,  80 => 7,  76 => 6,  71 => 5,  68 => 4,  58 => 3,  35 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% extends '@!PrestaShop/Admin/Common/Grid/grid.html.twig' %}

{% block grid_extra_content %}
    {% if grid.data.createDraftUrl is defined %}
        <input type=\"hidden\" class=\"pl-create-endpoint\" value=\"{{ grid.data.createDraftUrl }}\"/>
        <input type=\"hidden\" class=\"pl-draft-status\" value=\"{{ grid.data.draftStatusUrl }}\"/>
        <p id=\"pl-label-printed\" hidden>{{ 'Printed'|trans({}, 'Modules.Packlink.Admin') }}</p>
        <p id=\"pl-label-ready\" hidden>{{ 'Ready'|trans({}, 'Modules.Packlink.Admin') }}</p>
        <p id=\"pl-disable-popup\" hidden>
            {{ 'Please disable pop-up blocker on this page in order to bulk open shipment labels'|trans({}, 'Modules.Packlink.Admin') }}
        </p>
        <p id=\"pl-print-labels-url\" hidden>
            {{ grid.data.printLabelsUrl }}
        </p>
        <input type=\"hidden\" class=\"pl-draft-in-progress-message\"
               value=\"{{ 'Draft is currently being created.'|trans({}, 'Modules.Packlink.Admin') }}\"/>
        <input type=\"hidden\" class=\"pl-draft-failed-message\"
               value=\"{{ 'Previous attempt to create a draft failed.'|trans({}, 'Modules.Packlink.Admin') }}\"/>

        <a class=\"btn btn-default pl-create-draft-button pl-create-draft-template\">
            <img
                    class=\"pl-image\"
                    src=\"{{ grid.data.packlinkLogo }}\"
                    alt=\"{{ 'Packlink order draft'|trans({}, 'Modules.Packlink.Admin') }}\"
            >
            <span></span>
        </a>

        <a class=\"btn btn-default pl-draft-button pl-draft-button-template\" target=\"_blank\">
            <img
                    class=\"pl-image\"
                    src=\"{{ grid.data.packlinkLogo }}\"
                    alt=\"{{ 'Packlink order draft'|trans({}, 'Modules.Packlink.Admin') }}\"
            >
            <span>{{ 'View on Packlink'|trans({}, 'Modules.Packlink.Admin') }}</span>
        </a>
    {% endif %}
{% endblock %}", "@PrestaShop/Admin/Common/Grid/grid.html.twig", "/home/girardtosk/balledegolf/modules/packlink/views/PrestaShop/Admin/Common/Grid/grid.html.twig");
    }
}
