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

/* pages/helpdesk/index.html.twig */
class __TwigTemplate_6df60b1f72fd24a011cfc3dc6bb8a64a extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $macros = [];

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

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

        $this->blocks = [
            'content' => [$this, 'block_content'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 33
        return "layout/page_skeleton.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 35
        $context["scene_left"] = CoreExtension::getAttribute($this->env, $this->source, ($context["entity"] ?? null), "getHelpdeskSceneId", ["custom_helpdesk_home_scene_left"], "method", false, false, false, 35);
        // line 36
        $context["scene_right"] = CoreExtension::getAttribute($this->env, $this->source, ($context["entity"] ?? null), "getHelpdeskSceneId", ["custom_helpdesk_home_scene_right"], "method", false, false, false, 36);
        // line 33
        $this->parent = $this->load("layout/page_skeleton.html.twig", 33);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 38
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 39
        yield "    ";
        // line 42
        yield "    <div class=\"d-flex flex-column helpdesk-home-container force-full-width\">
        <div class=\"search-banner d-flex\">
            <div class=\"scene scene-left\">
                ";
        // line 45
        yield $this->extensions['Glpi\Application\View\Extension\IllustrationExtension']->renderScene(($context["scene_left"] ?? null));
        yield "
            </div>
            <div class=\"container-narrow search-banner-content\">
                <h1 class=\"text-center mb-0\" data-testid=\"home-title\">
                    ";
        // line 49
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["entity"] ?? null), "getHelpdeskHomeTitle", [], "method", false, false, false, 49), "html", null, true);
        yield "
                </h1>

                ";
        // line 52
        if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["entity"] ?? null), "isHelpdeskSearchBarEnabled", [], "method", false, false, false, 52)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 53
            yield "                    <div id=\"search-overlay\" class=\"search-overlay bg-dark\"></div>
                    <div class=\"input-icon search-bar-container\">
                        <span class=\"input-icon-addon\">
                            <i class=\"ti ti-search\"></i>
                        </span>
                        <input
                            id=\"search-input\"
                            type=\"text\"
                            value=\"\"
                            class=\"form-control home-search\"
                            placeholder=\"";
            // line 63
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Search for knowledge base entries or forms"), "html", null, true);
            yield "\"
                            data-testid=\"home-search\"
                        >
                        <section
                            id=\"search-results\"
                            class=\"position-absolute search-result-container w-100 d-none\"
                            aria-label=\"";
            // line 69
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Search results"), "html", null, true);
            yield "\"
                        >
                        </section>
                    </div>
                ";
        } else {
            // line 74
            yield "                    ";
            // line 75
            yield "                    <div class=\"search-bar-container-placeholder\"></div>
                ";
        }
        // line 77
        yield "            </div>
            <div class=\"scene scene-right\">
                ";
        // line 79
        yield $this->extensions['Glpi\Application\View\Extension\IllustrationExtension']->renderScene(($context["scene_right"] ?? null));
        yield "
            </div>
        </div>
        <section class=\"tiles-banner\" aria-label=\"";
        // line 82
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Quick Access"), "html", null, true);
        yield "\" data-testid=\"quick-access\">
            <div class=\"container-xl\">
                ";
        // line 85
        yield "                ";
        if ((($tmp = Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["password_alert"] ?? null))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 86
            yield "                    <div class=\"alert alert-warning alert-dismissible bg-white\" role=\"alert\">
                        <div class=\"d-flex mb-2\">
                            <div>
                                <i class=\"ti ti-alert-triangle me-1\"></i>
                            </div>
                            <div>
                                ";
            // line 92
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["password_alert"] ?? null), "html", null, true);
            yield "
                            </div>
                        </div>

                        <div class=\"btn-list\">
                            <a class=\"btn btn-outline-warning\" href=\"";
            // line 97
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path("/front/updatepassword.php"), "html", null, true);
            yield " \">
                                ";
            // line 98
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Update my password"), "html", null, true);
            yield "
                            </a>
                        </div>
                    </div>
                ";
        }
        // line 103
        yield "
                ";
        // line 105
        yield "                <table class=\"central\">
                    ";
        // line 106
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Glpi\Application\View\Extension\PluginExtension']->callPluginHook(Twig\Extension\CoreExtension::constant("Glpi\\Plugin\\Hooks::DISPLAY_CENTRAL")), "html", null, true);
        yield "
                </table>

                <div class=\"row\">
                    ";
        // line 110
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["tiles"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["tile"]) {
            // line 111
            yield "                        ";
            // line 112
            yield "                        ";
            // line 113
            yield "                        ";
            $context["is_tile_provide_translations"] = $this->extensions['Glpi\Application\View\Extension\PhpExtension']->isInstanceOf($context["tile"], "Glpi\\ItemTranslation\\Context\\ProvideTranslationsInterface");
            // line 114
            yield "
                        <div class=\"col-12 col-sm-6 col-md-4 d-flex\">
                            <a
                                class=\"card mx-1 my-2 flex-grow-1\"
                                href=\"";
            // line 118
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["tile"], "getTileUrl", [], "method", false, false, false, 118), "html", null, true);
            yield "\"
                            >
                                <section class=\"card-body\">
                                    <div class=\"d-flex\">
                                        <div class=\"aspect-ratio-1\">
                                            ";
            // line 123
            yield $this->extensions['Glpi\Application\View\Extension\IllustrationExtension']->renderIllustration(CoreExtension::getAttribute($this->env, $this->source, $context["tile"], "getIllustration", [], "method", false, false, false, 123), 70);
            yield "
                                        </div>
                                        <div class=\"ms-4\">
                                            <h2 class=\"card-title mb-2 text-break\">
                                                ";
            // line 127
            if ((($tmp = ($context["is_tile_provide_translations"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 128
                yield "                                                    ";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Glpi\Application\View\Extension\I18nExtension']->translateHelpdeskItemKey($context["tile"], Twig\Extension\CoreExtension::constant("TRANSLATION_KEY_TITLE", $context["tile"])), "html", null, true);
                yield "
                                                ";
            } else {
                // line 130
                yield "                                                    ";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["tile"], "getTitle", [], "method", false, false, false, 130), "html", null, true);
                yield "
                                                ";
            }
            // line 132
            yield "                                            </h2>
                                            <div class=\"text-secondary remove-last-tinymce-margin\">
                                                ";
            // line 135
            yield "                                                ";
            if ((($tmp = ($context["is_tile_provide_translations"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 136
                yield "                                                    ";
                yield $this->extensions['Glpi\Application\View\Extension\DataHelpersExtension']->getSafeHtml($this->extensions['Glpi\Application\View\Extension\I18nExtension']->translateHelpdeskItemKey($context["tile"], Twig\Extension\CoreExtension::constant("TRANSLATION_KEY_DESCRIPTION", $context["tile"])));
                yield "
                                                ";
            } else {
                // line 138
                yield "                                                    ";
                yield $this->extensions['Glpi\Application\View\Extension\DataHelpersExtension']->getSafeHtml(CoreExtension::getAttribute($this->env, $this->source, $context["tile"], "getDescription", [], "method", false, false, false, 138));
                yield "
                                                ";
            }
            // line 140
            yield "                                            </div>
                                        </div>
                                    </div>
                                </section>
                            </a>
                        </div>
                    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['tile'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 147
        yield "                </div>
            </div>
        </section>
        <div class=\"tickets-banner\">
            <div class=\"container-xl\">
                ";
        // line 152
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["tabs"] ?? null), "showTabsContent", [], "method", false, false, false, 152), "html", null, true);
        yield "
            </div>
        </div>
    </div>

    <script>
        (async function() {
            const module = await import(
                \"";
        // line 160
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Glpi\Application\View\Extension\FrontEndAssetsExtension']->jsPath("js/modules/Helpdesk/IndexController.js"), "html", null, true);
        yield "\"
            );
            new module.GlpiHelpdeskIndexController();
        })();
    </script>
";
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "pages/helpdesk/index.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  274 => 160,  263 => 152,  256 => 147,  244 => 140,  238 => 138,  232 => 136,  229 => 135,  225 => 132,  219 => 130,  213 => 128,  211 => 127,  204 => 123,  196 => 118,  190 => 114,  187 => 113,  185 => 112,  183 => 111,  179 => 110,  172 => 106,  169 => 105,  166 => 103,  158 => 98,  154 => 97,  146 => 92,  138 => 86,  135 => 85,  130 => 82,  124 => 79,  120 => 77,  116 => 75,  114 => 74,  106 => 69,  97 => 63,  85 => 53,  83 => 52,  77 => 49,  70 => 45,  65 => 42,  63 => 39,  56 => 38,  51 => 33,  49 => 36,  47 => 35,  40 => 33,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "pages/helpdesk/index.html.twig", "/home/tisoluci/public_html/crpamplona/templates/pages/helpdesk/index.html.twig");
    }
}
