<?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;

/* platform/ags/viewLineItem.html.twig */
class __TwigTemplate_41e6176ea846b888a2eca41a95d27516e67dccd34d1c614b777e3416cc9e2a10 extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->blocks = [
            'nav_title' => [$this, 'block_nav_title'],
            'body' => [$this, 'block_body'],
            'scripts' => [$this, 'block_scripts'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "base.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "platform/ags/viewLineItem.html.twig"));

        $this->parent = $this->loadTemplate("base.html.twig", "platform/ags/viewLineItem.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 3
    public function block_nav_title($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "nav_title"));

        echo "<i class=\"fas fa-graduation-cap\"></i>&nbsp;&nbsp;<span class=\"text-danger\">Platform</span> - AGS line items details";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 5
    public function block_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));

        // line 6
        echo "<div class=\"card bg-light\">
    <div class=\"card-header\">
        <ul class=\"nav nav-tabs nav-fill card-header-tabs\" id=\"pills-tab\" role=\"tablist\">
            <li class=\"nav-item\">
                <a class=\"nav-link active\" id=\"pills-details-tab\" data-toggle=\"pill\" href=\"#pills-details\" role=\"tab\" aria-controls=\"pills-details\" aria-selected=\"true\">
                    <i class=\"fas fa-info-circle\"></i>&nbsp;Details
                </a>
            </li>
            <li class=\"nav-item\">
                <a a class=\"nav-link\" id=\"pills-scores-tab\" data-toggle=\"pill\" href=\"#pills-scores\" role=\"tab\" aria-controls=\"pills-scores\" aria-selected=\"false\">
                    <i class=\"fas fa-poll\"></i>&nbsp;Scores  <span class=\"badge badge-pill badge-secondary\">";
        // line 16
        echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["scores"]) || array_key_exists("scores", $context) ? $context["scores"] : (function () { throw new RuntimeError('Variable "scores" does not exist.', 16, $this->source); })())), "html", null, true);
        echo "</span>
                </a>
            </li>
            <li class=\"nav-item\">
                <a a class=\"nav-link\" id=\"pills-result-tab\" data-toggle=\"pill\" href=\"#pills-result\" role=\"tab\" aria-controls=\"pills-result\" aria-selected=\"false\">
                    <i class=\"fas fa-poll-h\"></i>&nbsp;Results  <span class=\"badge badge-pill badge-secondary\">";
        // line 21
        echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["results"]) || array_key_exists("results", $context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.', 21, $this->source); })())), "html", null, true);
        echo "</span>
                </a>
            </li>
        </ul>
    </div>
    <div class=\"card-body\">
        <div class=\"tab-content\" id=\"pills-tabContent\">
            <div class=\"tab-pane fade show active\" id=\"pills-details\" role=\"tabpanel\" aria-labelledby=\"pills-details-tab\">
                <div class=\"row\">
                    <div class=\"col-md-6\">
                        <dl class=\"list-unstyled\">
                            <dt>Identifier</dt>
                            <dd><code>";
        // line 33
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lineItem"]) || array_key_exists("lineItem", $context) ? $context["lineItem"] : (function () { throw new RuntimeError('Variable "lineItem" does not exist.', 33, $this->source); })()), "identifier", [], "any", false, false, false, 33), "html", null, true);
        echo "</code></dd>
                            <dt>Resource identifier</dt>
                            <dd>";
        // line 35
        echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "resourceIdentifier", [], "any", true, true, false, 35)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "resourceIdentifier", [], "any", false, false, false, 35), "n/a")) : ("n/a")), "html", null, true);
        echo "</dd>
                            <dt>Score maximum</dt>
                            <dd>
                                <span class=\"badge badge-pill badge-info\">
                                    ";
        // line 39
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lineItem"]) || array_key_exists("lineItem", $context) ? $context["lineItem"] : (function () { throw new RuntimeError('Variable "lineItem" does not exist.', 39, $this->source); })()), "scoreMaximum", [], "any", false, false, false, 39), "html", null, true);
        echo "
                                </span>
                            </dd>
                            <dt>Start date</dt>
                            <dd>";
        // line 43
        echo twig_escape_filter($this->env, _twig_default_filter(sprintf(twig_get_attribute($this->env, $this->source, (isset($context["lineItem"]) || array_key_exists("lineItem", $context) ? $context["lineItem"] : (function () { throw new RuntimeError('Variable "lineItem" does not exist.', 43, $this->source); })()), "startDateTime", [], "any", false, false, false, 43), "Y-m-d H:i"), "n/a"), "html", null, true);
        echo "</dd>
                            <dt>AGS line item service url</dt>
                            <dd>
                                <a href=\"";
        // line 46
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lineItem"]) || array_key_exists("lineItem", $context) ? $context["lineItem"] : (function () { throw new RuntimeError('Variable "lineItem" does not exist.', 46, $this->source); })()), "identifier", [], "any", false, false, false, 46), "html", null, true);
        echo "\" target=\"_blank\">";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lineItem"]) || array_key_exists("lineItem", $context) ? $context["lineItem"] : (function () { throw new RuntimeError('Variable "lineItem" does not exist.', 46, $this->source); })()), "identifier", [], "any", false, false, false, 46), "html", null, true);
        echo "</a>
                            </dd>
                            <dt>AGS line item container service url</dt>
                            <dd>
                                <a href=\"";
        // line 50
        echo twig_escape_filter($this->env, twig_join_filter(twig_slice($this->env, twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lineItem"]) || array_key_exists("lineItem", $context) ? $context["lineItem"] : (function () { throw new RuntimeError('Variable "lineItem" does not exist.', 50, $this->source); })()), "identifier", [], "any", false, false, false, 50), "/"), 0,  -1), "/"), "html", null, true);
        echo "\" target=\"_blank\">";
        echo twig_escape_filter($this->env, twig_join_filter(twig_slice($this->env, twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lineItem"]) || array_key_exists("lineItem", $context) ? $context["lineItem"] : (function () { throw new RuntimeError('Variable "lineItem" does not exist.', 50, $this->source); })()), "identifier", [], "any", false, false, false, 50), "/"), 0,  -1), "/"), "html", null, true);
        echo "</a>
                            </dd>
                        </dl>
                    </div>
                    <div class=\"col-md-6\">
                        <dl class=\"list-unstyled\">
                            <dt>Label</dt>
                            <dd>";
        // line 57
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lineItem"]) || array_key_exists("lineItem", $context) ? $context["lineItem"] : (function () { throw new RuntimeError('Variable "lineItem" does not exist.', 57, $this->source); })()), "label", [], "any", false, false, false, 57), "html", null, true);
        echo "</dd>
                            <dt>Resource link identifier</dt>
                            <dd>";
        // line 59
        echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "resourceLinkIdentifier", [], "any", true, true, false, 59)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "resourceLinkIdentifier", [], "any", false, false, false, 59), "n/a")) : ("n/a")), "html", null, true);
        echo "</dd>
                            <dt>Tag</dt>
                            <dd>";
        // line 61
        echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "tag", [], "any", true, true, false, 61)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "tag", [], "any", false, false, false, 61), "n/a")) : ("n/a")), "html", null, true);
        echo "</dd>
                            <dt>End date</dt>
                            <dd>";
        // line 63
        echo twig_escape_filter($this->env, _twig_default_filter(sprintf(twig_get_attribute($this->env, $this->source, (isset($context["lineItem"]) || array_key_exists("lineItem", $context) ? $context["lineItem"] : (function () { throw new RuntimeError('Variable "lineItem" does not exist.', 63, $this->source); })()), "endDateTime", [], "any", false, false, false, 63), "Y-m-d H:i"), "n/a"), "html", null, true);
        echo "</dd>
                            <dt>Scores</dt>
                            <dd>";
        // line 65
        echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["scores"]) || array_key_exists("scores", $context) ? $context["scores"] : (function () { throw new RuntimeError('Variable "scores" does not exist.', 65, $this->source); })())), "html", null, true);
        echo "</dd>
                            <dt>Results</dt>
                            <dd>";
        // line 67
        echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["results"]) || array_key_exists("results", $context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.', 67, $this->source); })())), "html", null, true);
        echo "</dd>
                        </dl>
                    </div>
                </div>
                <div class=\"row\">
                    <div class=\"col-md-12\">
                        <dl class=\"list-unstyled\">
                            <dt>Additional properties</dt>
                            <dd>
                            ";
        // line 76
        if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["lineItem"]) || array_key_exists("lineItem", $context) ? $context["lineItem"] : (function () { throw new RuntimeError('Variable "lineItem" does not exist.', 76, $this->source); })()), "additionalProperties", [], "any", false, false, false, 76), "all", [], "any", false, false, false, 76)) != 0)) {
            // line 77
            echo "                                <pre>
                                    <code id=\"agsAdditionalPropertiesZone\" class=\"language-json\">";
            // line 78
            echo twig_escape_filter($this->env, json_encode(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["lineItem"]) || array_key_exists("lineItem", $context) ? $context["lineItem"] : (function () { throw new RuntimeError('Variable "lineItem" does not exist.', 78, $this->source); })()), "additionalProperties", [], "any", false, false, false, 78), "all", [], "any", false, false, false, 78), (twig_constant("JSON_PRETTY_PRINT") + twig_constant("JSON_UNESCAPED_SLASHES"))), "html", null, true);
            echo "</code>
                                </pre>
                            ";
        } else {
            // line 81
            echo "                                n/a
                            ";
        }
        // line 83
        echo "                            </dd>
                        </dl>
                    </div>
                </div>
            </div>
            <div class=\"tab-pane fade\" id=\"pills-scores\" role=\"tabpanel\" aria-labelledby=\"pills-scores-tab\">
                ";
        // line 89
        if ((twig_length_filter($this->env, (isset($context["scores"]) || array_key_exists("scores", $context) ? $context["scores"] : (function () { throw new RuntimeError('Variable "scores" does not exist.', 89, $this->source); })())) != 0)) {
            // line 90
            echo "                    <div class=\"input-group mb-3\">
                        <input type=\"text\" id=\"agsScoreSearch\" class=\"form-control\" placeholder=\"Search\">
                        <div class=\"input-group-append\">
                            <button id=\"agsScoreSearchReset\" class=\"btn-secondary btn\"><i class=\"fas fa-undo-alt\"></i>&nbsp;Reset</button>
                        </div>
                    </div>
                    <pre>
                        <code id=\"agsScoreZone\" class=\"language-json\">";
            // line 97
            echo twig_escape_filter($this->env, json_encode((isset($context["scores"]) || array_key_exists("scores", $context) ? $context["scores"] : (function () { throw new RuntimeError('Variable "scores" does not exist.', 97, $this->source); })()), (twig_constant("JSON_PRETTY_PRINT") + twig_constant("JSON_UNESCAPED_SLASHES"))), "html", null, true);
            echo "</code>
                    </pre>
                ";
        } else {
            // line 100
            echo "                    <div class=\"alert alert-dark alert-no-margin-bottom\" role=\"alert\">
                        <i class=\"fas fa-ban\"></i>&nbsp;No scores found
                    </div>
                ";
        }
        // line 104
        echo "            </div>
            <div class=\"tab-pane fade\" id=\"pills-result\" role=\"tabpanel\" aria-labelledby=\"pills-result-tab\">
                ";
        // line 106
        if ((twig_length_filter($this->env, (isset($context["results"]) || array_key_exists("results", $context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.', 106, $this->source); })())) != 0)) {
            // line 107
            echo "                    <div class=\"input-group mb-3\">
                        <input type=\"text\" id=\"agsResultSearch\" class=\"form-control\" placeholder=\"Search\">
                        <div class=\"input-group-append\">
                            <button id=\"agsResultSearchReset\" class=\"btn-secondary btn\"><i class=\"fas fa-undo-alt\"></i>&nbsp;Reset</button>
                        </div>
                    </div>
                    <pre>
                        <code id=\"agsResultZone\" class=\"language-json\">";
            // line 114
            echo twig_escape_filter($this->env, json_encode((isset($context["results"]) || array_key_exists("results", $context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.', 114, $this->source); })()), (twig_constant("JSON_PRETTY_PRINT") + twig_constant("JSON_UNESCAPED_SLASHES"))), "html", null, true);
            echo "</code>
                    </pre>
                ";
        } else {
            // line 117
            echo "                    <div class=\"alert alert-dark alert-no-margin-bottom\" role=\"alert\">
                        <i class=\"fas fa-ban\"></i>&nbsp;No results found
                    </div>
                ";
        }
        // line 121
        echo "            </div>
        </div>
    </div>
    <div class=\"card-footer\">
        <div class=\"btn-group float-right\" role=\"group\" aria-label=\"Basic example\">
            <a class=\"btn btn-primary text-white\" href=\"";
        // line 126
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform_ags_edit_line_item", ["lineItemIdentifier" => $this->extensions['App\Twig\AppExtension']->base64UrlEncode(twig_get_attribute($this->env, $this->source, (isset($context["lineItem"]) || array_key_exists("lineItem", $context) ? $context["lineItem"] : (function () { throw new RuntimeError('Variable "lineItem" does not exist.', 126, $this->source); })()), "identifier", [], "any", false, false, false, 126))]), "html", null, true);
        echo "\">
                <i class=\"fas fa-edit\"></i>&nbsp;Edit
            </a>
            <a class=\"btn btn-danger text-white\" href=\"";
        // line 129
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform_ags_delete_line_item", ["lineItemIdentifier" => $this->extensions['App\Twig\AppExtension']->base64UrlEncode(twig_get_attribute($this->env, $this->source, (isset($context["lineItem"]) || array_key_exists("lineItem", $context) ? $context["lineItem"] : (function () { throw new RuntimeError('Variable "lineItem" does not exist.', 129, $this->source); })()), "identifier", [], "any", false, false, false, 129))]), "html", null, true);
        echo "\" onclick=\"return confirm('Are you sure?')\">
                <i class=\"fas fa-trash-alt\"></i>&nbsp;Delete
            </a>
            <a class=\"btn btn-secondary text-white\" href=\"";
        // line 132
        echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform_ags_list_line_items");
        echo "\">
                <i class=\"fas fa-undo-alt\"></i>&nbsp;Back to list
            </a>
       </div>
    </div>
</div>
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 140
    public function block_scripts($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));

        // line 141
        echo "    <script>
        \$(\"#agsScoreSearch\").on(\"input\", function(){
            \$(\"#agsScoreZone\").unmark({
                done: function() {
                    \$(\"#agsScoreZone\").mark(\$(\"#agsScoreSearch\").val());
                }
            });
        });

        \$(\"#agsScoreSearchReset\").click(function(){
            \$(\"#agsScoreSearch\").val(\"\");
            \$(\"#agsScoreZone\").unmark();
        });

        \$(\"#agsResultSearch\").on(\"input\", function(){
            \$(\"#agsResultZone\").unmark({
                done: function() {
                    \$(\"#agsResultZone\").mark(\$(\"#agsResultSearch\").val());
                }
            });
        });

        \$(\"#agsResultSearchReset\").click(function(){
            \$(\"#agsResultSearch\").val(\"\");
            \$(\"#agsResultZone\").unmark();
        });

        hljs.initHighlightingOnLoad();
    </script>
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    public function getTemplateName()
    {
        return "platform/ags/viewLineItem.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  305 => 141,  298 => 140,  284 => 132,  278 => 129,  272 => 126,  265 => 121,  259 => 117,  253 => 114,  244 => 107,  242 => 106,  238 => 104,  232 => 100,  226 => 97,  217 => 90,  215 => 89,  207 => 83,  203 => 81,  197 => 78,  194 => 77,  192 => 76,  180 => 67,  175 => 65,  170 => 63,  165 => 61,  160 => 59,  155 => 57,  143 => 50,  134 => 46,  128 => 43,  121 => 39,  114 => 35,  109 => 33,  94 => 21,  86 => 16,  74 => 6,  67 => 5,  54 => 3,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% extends 'base.html.twig' %}

{% block nav_title %}<i class=\"fas fa-graduation-cap\"></i>&nbsp;&nbsp;<span class=\"text-danger\">Platform</span> - AGS line items details{% endblock %}

{% block body %}
<div class=\"card bg-light\">
    <div class=\"card-header\">
        <ul class=\"nav nav-tabs nav-fill card-header-tabs\" id=\"pills-tab\" role=\"tablist\">
            <li class=\"nav-item\">
                <a class=\"nav-link active\" id=\"pills-details-tab\" data-toggle=\"pill\" href=\"#pills-details\" role=\"tab\" aria-controls=\"pills-details\" aria-selected=\"true\">
                    <i class=\"fas fa-info-circle\"></i>&nbsp;Details
                </a>
            </li>
            <li class=\"nav-item\">
                <a a class=\"nav-link\" id=\"pills-scores-tab\" data-toggle=\"pill\" href=\"#pills-scores\" role=\"tab\" aria-controls=\"pills-scores\" aria-selected=\"false\">
                    <i class=\"fas fa-poll\"></i>&nbsp;Scores  <span class=\"badge badge-pill badge-secondary\">{{ scores|length }}</span>
                </a>
            </li>
            <li class=\"nav-item\">
                <a a class=\"nav-link\" id=\"pills-result-tab\" data-toggle=\"pill\" href=\"#pills-result\" role=\"tab\" aria-controls=\"pills-result\" aria-selected=\"false\">
                    <i class=\"fas fa-poll-h\"></i>&nbsp;Results  <span class=\"badge badge-pill badge-secondary\">{{ results|length }}</span>
                </a>
            </li>
        </ul>
    </div>
    <div class=\"card-body\">
        <div class=\"tab-content\" id=\"pills-tabContent\">
            <div class=\"tab-pane fade show active\" id=\"pills-details\" role=\"tabpanel\" aria-labelledby=\"pills-details-tab\">
                <div class=\"row\">
                    <div class=\"col-md-6\">
                        <dl class=\"list-unstyled\">
                            <dt>Identifier</dt>
                            <dd><code>{{ lineItem.identifier }}</code></dd>
                            <dt>Resource identifier</dt>
                            <dd>{{ lineItem.resourceIdentifier|default('n/a') }}</dd>
                            <dt>Score maximum</dt>
                            <dd>
                                <span class=\"badge badge-pill badge-info\">
                                    {{ lineItem.scoreMaximum }}
                                </span>
                            </dd>
                            <dt>Start date</dt>
                            <dd>{{ lineItem.startDateTime|format('Y-m-d H:i')|default('n/a') }}</dd>
                            <dt>AGS line item service url</dt>
                            <dd>
                                <a href=\"{{ lineItem.identifier }}\" target=\"_blank\">{{ lineItem.identifier }}</a>
                            </dd>
                            <dt>AGS line item container service url</dt>
                            <dd>
                                <a href=\"{{ lineItem.identifier|split('/')|slice(0, -1)|join('/') }}\" target=\"_blank\">{{ lineItem.identifier|split('/')|slice(0, -1)|join('/') }}</a>
                            </dd>
                        </dl>
                    </div>
                    <div class=\"col-md-6\">
                        <dl class=\"list-unstyled\">
                            <dt>Label</dt>
                            <dd>{{ lineItem.label }}</dd>
                            <dt>Resource link identifier</dt>
                            <dd>{{ lineItem.resourceLinkIdentifier|default('n/a') }}</dd>
                            <dt>Tag</dt>
                            <dd>{{ lineItem.tag|default('n/a') }}</dd>
                            <dt>End date</dt>
                            <dd>{{ lineItem.endDateTime|format('Y-m-d H:i')|default('n/a') }}</dd>
                            <dt>Scores</dt>
                            <dd>{{ scores|length }}</dd>
                            <dt>Results</dt>
                            <dd>{{ results|length }}</dd>
                        </dl>
                    </div>
                </div>
                <div class=\"row\">
                    <div class=\"col-md-12\">
                        <dl class=\"list-unstyled\">
                            <dt>Additional properties</dt>
                            <dd>
                            {% if lineItem.additionalProperties.all|length != 0 %}
                                <pre>
                                    <code id=\"agsAdditionalPropertiesZone\" class=\"language-json\">{{ lineItem.additionalProperties.all|json_encode(constant('JSON_PRETTY_PRINT') + constant('JSON_UNESCAPED_SLASHES')) }}</code>
                                </pre>
                            {% else %}
                                n/a
                            {% endif %}
                            </dd>
                        </dl>
                    </div>
                </div>
            </div>
            <div class=\"tab-pane fade\" id=\"pills-scores\" role=\"tabpanel\" aria-labelledby=\"pills-scores-tab\">
                {% if scores|length != 0 %}
                    <div class=\"input-group mb-3\">
                        <input type=\"text\" id=\"agsScoreSearch\" class=\"form-control\" placeholder=\"Search\">
                        <div class=\"input-group-append\">
                            <button id=\"agsScoreSearchReset\" class=\"btn-secondary btn\"><i class=\"fas fa-undo-alt\"></i>&nbsp;Reset</button>
                        </div>
                    </div>
                    <pre>
                        <code id=\"agsScoreZone\" class=\"language-json\">{{ scores|json_encode(constant('JSON_PRETTY_PRINT') + constant('JSON_UNESCAPED_SLASHES')) }}</code>
                    </pre>
                {% else %}
                    <div class=\"alert alert-dark alert-no-margin-bottom\" role=\"alert\">
                        <i class=\"fas fa-ban\"></i>&nbsp;No scores found
                    </div>
                {% endif %}
            </div>
            <div class=\"tab-pane fade\" id=\"pills-result\" role=\"tabpanel\" aria-labelledby=\"pills-result-tab\">
                {% if results|length != 0 %}
                    <div class=\"input-group mb-3\">
                        <input type=\"text\" id=\"agsResultSearch\" class=\"form-control\" placeholder=\"Search\">
                        <div class=\"input-group-append\">
                            <button id=\"agsResultSearchReset\" class=\"btn-secondary btn\"><i class=\"fas fa-undo-alt\"></i>&nbsp;Reset</button>
                        </div>
                    </div>
                    <pre>
                        <code id=\"agsResultZone\" class=\"language-json\">{{ results|json_encode(constant('JSON_PRETTY_PRINT') + constant('JSON_UNESCAPED_SLASHES')) }}</code>
                    </pre>
                {% else %}
                    <div class=\"alert alert-dark alert-no-margin-bottom\" role=\"alert\">
                        <i class=\"fas fa-ban\"></i>&nbsp;No results found
                    </div>
                {% endif %}
            </div>
        </div>
    </div>
    <div class=\"card-footer\">
        <div class=\"btn-group float-right\" role=\"group\" aria-label=\"Basic example\">
            <a class=\"btn btn-primary text-white\" href=\"{{ path('platform_ags_edit_line_item', {'lineItemIdentifier': lineItem.identifier|base64_url_encode}) }}\">
                <i class=\"fas fa-edit\"></i>&nbsp;Edit
            </a>
            <a class=\"btn btn-danger text-white\" href=\"{{ path('platform_ags_delete_line_item', {'lineItemIdentifier': lineItem.identifier|base64_url_encode}) }}\" onclick=\"return confirm('Are you sure?')\">
                <i class=\"fas fa-trash-alt\"></i>&nbsp;Delete
            </a>
            <a class=\"btn btn-secondary text-white\" href=\"{{ path('platform_ags_list_line_items') }}\">
                <i class=\"fas fa-undo-alt\"></i>&nbsp;Back to list
            </a>
       </div>
    </div>
</div>
{% endblock body %}

{% block scripts %}
    <script>
        \$(\"#agsScoreSearch\").on(\"input\", function(){
            \$(\"#agsScoreZone\").unmark({
                done: function() {
                    \$(\"#agsScoreZone\").mark(\$(\"#agsScoreSearch\").val());
                }
            });
        });

        \$(\"#agsScoreSearchReset\").click(function(){
            \$(\"#agsScoreSearch\").val(\"\");
            \$(\"#agsScoreZone\").unmark();
        });

        \$(\"#agsResultSearch\").on(\"input\", function(){
            \$(\"#agsResultZone\").unmark({
                done: function() {
                    \$(\"#agsResultZone\").mark(\$(\"#agsResultSearch\").val());
                }
            });
        });

        \$(\"#agsResultSearchReset\").click(function(){
            \$(\"#agsResultSearch\").val(\"\");
            \$(\"#agsResultZone\").unmark();
        });

        hljs.initHighlightingOnLoad();
    </script>
{% endblock %}", "platform/ags/viewLineItem.html.twig", "C:\\wamp64\\www\\devkit-lti1p3-master-tool\\templates\\platform\\ags\\viewLineItem.html.twig");
    }
}
