<?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/Columns/Content/order_packlink_label_action.html.twig */
class __TwigTemplate_acff0d27f058c197adbfd8210544ea6e 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;
        $__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/Columns/Content/order_packlink_label_action.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/Columns/Content/order_packlink_label_action.html.twig"));

        // line 1
        if (twig_get_attribute($this->env, $this->source, (isset($context["record"]) || array_key_exists("record", $context) ? $context["record"] : (function () { throw new RuntimeError('Variable "record" does not exist.', 1, $this->source); })()), "isLabelAvailable", [], "any", false, false, false, 1)) {
            // line 2
            echo "    <a class=\"btn btn-default pl-label-button\"
       href=\"\"
       data-order=\"";
            // line 4
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["record"]) || array_key_exists("record", $context) ? $context["record"] : (function () { throw new RuntimeError('Variable "record" does not exist.', 4, $this->source); })()), "id_order", [], "any", false, false, false, 4), "html", null, true);
            echo "\"
       onclick=\"plPrintLabelOnOrdersPage(this)\"
       ";
            // line 6
            if (twig_get_attribute($this->env, $this->source, (isset($context["record"]) || array_key_exists("record", $context) ? $context["record"] : (function () { throw new RuntimeError('Variable "record" does not exist.', 6, $this->source); })()), "isLabelPrinted", [], "any", false, false, false, 6)) {
                // line 7
                echo "       style=\"color: #c3c3c3\"
       ";
            }
            // line 9
            echo "    >
        <i class=\"material-icons\">label</i>
        <span>
        ";
            // line 12
            if (twig_get_attribute($this->env, $this->source, (isset($context["record"]) || array_key_exists("record", $context) ? $context["record"] : (function () { throw new RuntimeError('Variable "record" does not exist.', 12, $this->source); })()), "isLabelPrinted", [], "any", false, false, false, 12)) {
                // line 13
                echo "            ";
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Printed", [], "Modules.Packlink.Admin"), "html", null, true);
                echo "
        ";
            } else {
                // line 15
                echo "            ";
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Print", [], "Modules.Packlink.Admin"), "html", null, true);
                echo "
        ";
            }
            // line 17
            echo "        </span>
    </a>
";
        } else {
            // line 20
            echo "    <div class=\"pl-no-label\">
        <span>-</span>
    </div>
";
        }
        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  84 => 20,  79 => 17,  73 => 15,  67 => 13,  65 => 12,  60 => 9,  56 => 7,  54 => 6,  49 => 4,  45 => 2,  43 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% if record.isLabelAvailable %}
    <a class=\"btn btn-default pl-label-button\"
       href=\"\"
       data-order=\"{{ record.id_order }}\"
       onclick=\"plPrintLabelOnOrdersPage(this)\"
       {% if record.isLabelPrinted %}
       style=\"color: #c3c3c3\"
       {% endif %}
    >
        <i class=\"material-icons\">label</i>
        <span>
        {% if record.isLabelPrinted %}
            {{ 'Printed'|trans({}, 'Modules.Packlink.Admin') }}
        {% else %}
            {{ 'Print'|trans({}, 'Modules.Packlink.Admin') }}
        {% endif %}
        </span>
    </a>
{% else %}
    <div class=\"pl-no-label\">
        <span>-</span>
    </div>
{% endif %}", "@PrestaShop/Admin/Common/Grid/Columns/Content/order_packlink_label_action.html.twig", "/home/girardtosk/balledegolf/modules/packlink/views/PrestaShop/Admin/Common/Grid/Columns/Content/order_packlink_label_action.html.twig");
    }
}
