var/cache/dev/twig/01/01b8cebb69e92bf52c298ed0b6c3bffe.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\MacroNamespace;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Sandbox\SecurityNotAllowedTestError;
  14. use Twig\Source;
  15. use Twig\Template;
  16. use Twig\TemplateWrapper;
  17. /* @UVDeskCoreFramework/Templates/layout.html.twig */
  18. class __TwigTemplate_97eaf0b5f7f4336d7ed564c3fd18118a extends Template
  19. {
  20.     private Source $source;
  21.     /**
  22.      * @var array<string, MacroNamespace>
  23.      */
  24.     private array $macros = [];
  25.     private \Twig\Runtime\EscaperRuntime $escaper;
  26.     public function __construct(Environment $env)
  27.     {
  28.         parent::__construct($env);
  29.         $this->source = $this->getSourceContext();
  30.         $this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
  31.         $this->parent = false;
  32.         $this->blocks = [
  33.             'title' => [$this, 'block_title'],
  34.             'templateCSS' => [$this, 'block_templateCSS'],
  35.             'sidebar' => [$this, 'block_sidebar'],
  36.             'pageWrapper' => [$this, 'block_pageWrapper'],
  37.             'pageHeader' => [$this, 'block_pageHeader'],
  38.             'pageContent' => [$this, 'block_pageContent'],
  39.             'footer' => [$this, 'block_footer'],
  40.         ];
  41.     }
  42.     protected function doDisplay(array $context, array $blocks = []): iterable
  43.     {
  44.         $macros = $this->macros;
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@UVDeskCoreFramework/Templates/layout.html.twig"));
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@UVDeskCoreFramework/Templates/layout.html.twig"));
  49.         // line 1
  50.         yield "<!DOCTYPE html>
  51. <html>
  52.     <head>
  53.         <title>";
  54.         // line 4
  55.         yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
  56.         yield "</title>
  57.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  58.         <link rel=\"icon\" type=\"image/x-icon\" sizes=\"16x16 32x32 48x48\" href=\"";
  59.         // line 6
  60.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("favicon.ico"), "html", null, true);
  61.         yield "\" />
  62.         <!-- Stylesheets -->
  63.         <link href=\"";
  64.         // line 9
  65.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/uvdeskcoreframework/css/_uikit.css"), "html", null, true);
  66.         yield "\" type=\"text/css\" rel=\"stylesheet\" media=\"all\" />
  67.         <link href=\"";
  68.         // line 10
  69.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/uvdeskcoreframework/css/_custom.css"), "html", null, true);
  70.         yield "\" type=\"text/css\" rel=\"stylesheet\" media=\"all\" />
  71.         <link href=\"//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css\" type=\"text/css\" rel=\"stylesheet\">
  72.         <link href=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css\" type=\"text/css\" rel=\"stylesheet\">
  73.         <!-- Custom CSS -->
  74.         ";
  75.         // line 15
  76.         $context["websiteConfiguration"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["user_service"]) || array_key_exists("user_service", $context) ? $context["user_service"] : (function () { throw new RuntimeError('Variable "user_service" does not exist.', 15, $this->source); })()), "getWebsiteConfiguration", ["knowledgebase"], "method", false, false, false, 15);
  77.         // line 16
  78.         yield "        ";
  79.         $context["website"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["user_service"]) || array_key_exists("user_service", $context) ? $context["user_service"] : (function () { throw new RuntimeError('Variable "user_service" does not exist.', 16, $this->source); })()), "getWebsiteDetails", ["helpdesk"], "method", false, false, false, 16);
  80.         // line 17
  81.         yield "
  82.         ";
  83.         // line 18
  84.         yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "@UVDeskCoreFramework/Templates/lightskin.html.twig");
  85.         yield "
  86.         <!-- Custom Stylesheets -->
  87.         ";
  88.         // line 21
  89.         $context['_parent'] = $context;
  90.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["uvdesk_extensibles"]) || array_key_exists("uvdesk_extensibles", $context) ? $context["uvdesk_extensibles"] : (function () { throw new RuntimeError('Variable "uvdesk_extensibles" does not exist.', 21, $this->source); })()), "getRegisteredComponent", ["Webkul\\UVDesk\\CoreFrameworkBundle\\Dashboard\\Dashboard"], "method", false, false, false, 21), "getDashboardTemplate", [], "method", false, false, false, 21), "getStylesheetResources", [], "method", false, false, false, 21));
  91.         foreach ($context['_seq'] as $context["_key"] => $context["stylesheet"]) {
  92.             // line 22
  93.             yield "            <link href=\"";
  94.             yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["stylesheet"]), "html", null, true);
  95.             yield "\" type=\"text/css\" rel=\"stylesheet\" media=\"all\" />
  96.         ";
  97.         }
  98.         $_parent = $context['_parent'];
  99.         unset($context['_seq'], $context['_key'], $context['stylesheet'], $context['_parent']);
  100.         $context = array_intersect_key($context, $_parent);
  101.         $context += $_parent;
  102.         // line 24
  103.         yield "        
  104.         ";
  105.         // line 25
  106.         yield from $this->unwrap()->yieldBlock('templateCSS', $context, $blocks);
  107.         // line 26
  108.         yield "
  109.         <!-- Scripts -->
  110.         <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js\"></script>
  111.         <script src=\"https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.1/underscore-min.js\"></script>
  112.         <script src=\"https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.4.0/backbone-min.js\"></script>
  113.         <script src=\"https://cdnjs.cloudflare.com/ajax/libs/backbone.validation/0.11.5/backbone-validation-min.js\"></script>
  114.         <script src=\"https://cdnjs.cloudflare.com/ajax/libs/backbone.paginator/2.0.8/backbone.paginator.min.js\"></script>
  115.         <script src=\"";
  116.         // line 33
  117.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/uvdeskcoreframework/js/_dropdown.js"), "html", null, true);
  118.         yield "\"></script>
  119.         <script src=\"https://cdnjs.cloudflare.com/ajax/libs/d3/6.2.0/d3.min.js\"></script>
  120.         <script src=\"";
  121.         // line 35
  122.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/uvdeskcoreframework/js/viewer.js"), "html", null, true);
  123.         yield "\"></script>
  124.         <script src=\"https://code.jquery.com/ui/1.12.1/jquery-ui.js\"></script>
  125.         <script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.0/moment.min.js\"></script>\t
  126.         <script src=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js\"></script>
  127.     </head>
  128.     ";
  129.         // line 41
  130.         $context["bodyClass"] = "";
  131.         // line 42
  132.         yield "    ";
  133.         $context["bodySkinClass"] = "";
  134.         // line 43
  135.         yield "
  136.     ";
  137.         // line 44
  138.         if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 44, $this->source); })()), "request", [], "any", false, false, false, 44), "locale", [], "any", false, false, false, 44) == "ar")) {
  139.             // line 45
  140.             yield "        ";
  141.             $context["bodyClass"] = "uv-rtl";
  142.             // line 46
  143.             yield "    ";
  144.         }
  145.         // line 47
  146.         yield "    
  147.     <body class=\"";
  148.         // line 48
  149.         yield (string) $this->escaper->escape((((isset($context["bodySkinClass"]) || array_key_exists("bodySkinClass", $context) ? $context["bodySkinClass"] : (function () { throw new RuntimeError('Variable "bodySkinClass" does not exist.', 48, $this->source); })()) . " ") . (isset($context["bodyClass"]) || array_key_exists("bodyClass", $context) ? $context["bodyClass"] : (function () { throw new RuntimeError('Variable "bodyClass" does not exist.', 48, $this->source); })())), "html", null, true);
  150.         yield "\">
  151.         <div class=\"uv-notifications-wrapper\">
  152.             <noscript>
  153.                 <div class=\"uv-notification page-load uv-error\">
  154.                     <p>";
  155.         // line 52
  156.         yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Your browser does not support JavaScript or You disabled JavaScript, Please enable those !", [], "messages");
  157.         yield "</p>
  158.                 </div>
  159.                 <style>.uv-loader-view {display: none;}</style>
  160.             </noscript>
  161.             ";
  162.         // line 57
  163.         if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["uvdesk_service"]) || array_key_exists("uvdesk_service", $context) ? $context["uvdesk_service"] : (function () { throw new RuntimeError('Variable "uvdesk_service" does not exist.', 57, $this->source); })()), "requestHeadersSent", [], "method", false, false, false, 57) == false)) {
  164.             // line 58
  165.             yield "                ";
  166.             $context['_parent'] = $context;
  167.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 58, $this->source); })()), "session", [], "any", false, false, false, 58), "flashbag", [], "any", false, false, false, 58), "get", ["success"], "method", false, false, false, 58));
  168.             foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
  169.                 // line 59
  170.                 yield "                    <div class=\"uv-notification page-load uv-success\">
  171.                         <span class=\"uv-notification-close\"></span>
  172.                         <p>";
  173.                 // line 61
  174.                 yield (string) $context["flashMessage"];
  175.                 yield "</p>
  176.                     </div>
  177.                 ";
  178.             }
  179.             $_parent = $context['_parent'];
  180.             unset($context['_seq'], $context['_key'], $context['flashMessage'], $context['_parent']);
  181.             $context = array_intersect_key($context, $_parent);
  182.             $context += $_parent;
  183.             // line 64
  184.             yield "                
  185.                 ";
  186.             // line 65
  187.             $context['_parent'] = $context;
  188.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 65, $this->source); })()), "session", [], "any", false, false, false, 65), "flashbag", [], "any", false, false, false, 65), "get", ["warning"], "method", false, false, false, 65));
  189.             foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
  190.                 // line 66
  191.                 yield "                    <div class=\"uv-notification page-load uv-error\">
  192.                         <span class=\"uv-notification-close\"></span>
  193.                         <p>";
  194.                 // line 68
  195.                 yield (string) $context["flashMessage"];
  196.                 yield "</p>
  197.                     </div>
  198.                 ";
  199.             }
  200.             $_parent = $context['_parent'];
  201.             unset($context['_seq'], $context['_key'], $context['flashMessage'], $context['_parent']);
  202.             $context = array_intersect_key($context, $_parent);
  203.             $context += $_parent;
  204.             // line 71
  205.             yield "            ";
  206.         }
  207.         // line 72
  208.         yield "        </div>
  209.         <div class=\"uv-loader-view\">
  210.             <div class=\"uv-loader\">
  211.                 <span></span>
  212.                 <span></span>
  213.                 <span></span>
  214.             </div>
  215.         </div>
  216.         <div class=\"uv-pop-up-overlay\" id=\"confirm-modal\">
  217.             <div class=\"uv-pop-up-box uv-pop-up-slim\">
  218.                 <span class=\"uv-pop-up-close\"></span>
  219.                 <h2>";
  220.         // line 85
  221.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Confirm Action"), "html", null, true);
  222.         yield "</h2>
  223.                 <p>";
  224.         // line 86
  225.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Are you sure? You want to perform this action."), "html", null, true);
  226.         yield "</p>
  227.                 <div class=\"uv-pop-up-actions\">
  228.                     <a href=\"#\" class=\"uv-btn uv-btn-error confirm\">";
  229.         // line 89
  230.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Confirm"), "html", null, true);
  231.         yield "</a>
  232.                     <a href=\"#\" class=\"uv-btn cancel\">";
  233.         // line 90
  234.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cancel"), "html", null, true);
  235.         yield "</a>
  236.                 </div>
  237.             </div>
  238.         </div>
  239.         ";
  240.         // line 95
  241.         $context["currentUser"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["user_service"]) || array_key_exists("user_service", $context) ? $context["user_service"] : (function () { throw new RuntimeError('Variable "user_service" does not exist.', 95, $this->source); })()), "getSessionUser", [], "method", false, false, false, 95);
  242.         // line 96
  243.         yield "        ";
  244.         if (( !Twig\Extension\CoreExtension::testEmpty((isset($context["currentUser"]) || array_key_exists("currentUser", $context) ? $context["currentUser"] : (function () { throw new RuntimeError('Variable "currentUser" does not exist.', 96, $this->source); })())) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["currentUser"]) || array_key_exists("currentUser", $context) ? $context["currentUser"] : (function () { throw new RuntimeError('Variable "currentUser" does not exist.', 96, $this->source); })()), "getAgentInstance", [], "method", false, false, false, 96)))) {
  245.             // line 97
  246.             yield "            ";
  247.             $context["currentUserDetails"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["currentUser"]) || array_key_exists("currentUser", $context) ? $context["currentUser"] : (function () { throw new RuntimeError('Variable "currentUser" does not exist.', 97, $this->source); })()), "getAgentInstance", [], "method", false, false, false, 97), "getPartialDetails", [], "method", false, false, false, 97);
  248.             // line 98
  249.             yield "        ";
  250.         }
  251.         // line 99
  252.         yield "
  253.         ";
  254.         // line 100
  255.         yield from $this->unwrap()->yieldBlock('sidebar', $context, $blocks);
  256.         // line 105
  257.         yield "
  258.         ";
  259.         // line 106
  260.         yield from $this->unwrap()->yieldBlock('pageWrapper', $context, $blocks);
  261.         // line 119
  262.         yield "        
  263.         ";
  264.         // line 120
  265.         yield from $this->unwrap()->yieldBlock('footer', $context, $blocks);
  266.         // line 213
  267.         yield "
  268.         ";
  269.         // line 215
  270.         yield "        ";
  271.         $context['_parent'] = $context;
  272.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["uvdesk_extensibles"]) || array_key_exists("uvdesk_extensibles", $context) ? $context["uvdesk_extensibles"] : (function () { throw new RuntimeError('Variable "uvdesk_extensibles" does not exist.', 215, $this->source); })()), "getRegisteredComponent", ["Webkul\\UVDesk\\CoreFrameworkBundle\\Dashboard\\Dashboard"], "method", false, false, false, 215), "getDashboardTemplate", [], "method", false, false, false, 215), "getJavascriptResources", [], "method", false, false, false, 215));
  273.         foreach ($context['_seq'] as $context["_key"] => $context["javascript"]) {
  274.             // line 216
  275.             yield "            <script src=\"";
  276.             yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["javascript"]), "html", null, true);
  277.             yield "\" type=\"text/javascript\"></script>
  278.         ";
  279.         }
  280.         $_parent = $context['_parent'];
  281.         unset($context['_seq'], $context['_key'], $context['javascript'], $context['_parent']);
  282.         $context = array_intersect_key($context, $_parent);
  283.         $context += $_parent;
  284.         // line 218
  285.         yield "    </body>
  286. </html>";
  287.         
  288.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  289.         
  290.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  291.         return; yield;
  292.     }
  293.     // line 4
  294.     /**
  295.      * @return iterable<null|scalar|\Stringable>
  296.      */
  297.     public function block_title(array $context, array $blocks = []): iterable
  298.     {
  299.         $macros = $this->macros;
  300.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  301.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  302.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  303.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  304.         yield "HelpDesk";
  305.         
  306.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  307.         
  308.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  309.         return; yield;
  310.     }
  311.     // line 25
  312.     /**
  313.      * @return iterable<null|scalar|\Stringable>
  314.      */
  315.     public function block_templateCSS(array $context, array $blocks = []): iterable
  316.     {
  317.         $macros = $this->macros;
  318.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  319.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "templateCSS"));
  320.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  321.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "templateCSS"));
  322.         
  323.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  324.         
  325.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  326.         return; yield;
  327.     }
  328.     // line 100
  329.     /**
  330.      * @return iterable<null|scalar|\Stringable>
  331.      */
  332.     public function block_sidebar(array $context, array $blocks = []): iterable
  333.     {
  334.         $macros = $this->macros;
  335.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  336.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar"));
  337.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  338.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar"));
  339.         // line 101
  340.         yield "            ";
  341.         if ((array_key_exists("currentUser", $context) &&  !Twig\Extension\CoreExtension::testEmpty((isset($context["currentUser"]) || array_key_exists("currentUser", $context) ? $context["currentUser"] : (function () { throw new RuntimeError('Variable "currentUser" does not exist.', 101, $this->source); })())))) {
  342.             // line 102
  343.             yield "                ";
  344.             yield from $this->load("@UVDeskCoreFramework/Templates/sidebar.html.twig", 102)->unwrap()->yield($context);
  345.             // line 103
  346.             yield "            ";
  347.         }
  348.         // line 104
  349.         yield "        ";
  350.         
  351.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  352.         
  353.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  354.         return; yield;
  355.     }
  356.     // line 106
  357.     /**
  358.      * @return iterable<null|scalar|\Stringable>
  359.      */
  360.     public function block_pageWrapper(array $context, array $blocks = []): iterable
  361.     {
  362.         $macros = $this->macros;
  363.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  364.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageWrapper"));
  365.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  366.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageWrapper"));
  367.         // line 107
  368.         yield "            <div class=\"uv-paper\">
  369.                 ";
  370.         // line 108
  371.         yield from $this->unwrap()->yieldBlock('pageHeader', $context, $blocks);
  372.         // line 111
  373.         yield "
  374.                 <div class=\"uv-wrapper\">
  375.                     <div class=\"uv-container\">
  376.                         ";
  377.         // line 114
  378.         yield from $this->unwrap()->yieldBlock('pageContent', $context, $blocks);
  379.         // line 115
  380.         yield "                    </div>
  381.                 </div>
  382.             </div>
  383.         ";
  384.         
  385.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  386.         
  387.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  388.         return; yield;
  389.     }
  390.     // line 108
  391.     /**
  392.      * @return iterable<null|scalar|\Stringable>
  393.      */
  394.     public function block_pageHeader(array $context, array $blocks = []): iterable
  395.     {
  396.         $macros = $this->macros;
  397.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  398.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageHeader"));
  399.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  400.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageHeader"));
  401.         // line 109
  402.         yield "                    ";
  403.         yield from $this->load("@UVDeskCoreFramework/Templates/header.html.twig", 109)->unwrap()->yield($context);
  404.         // line 110
  405.         yield "                ";
  406.         
  407.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  408.         
  409.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  410.         return; yield;
  411.     }
  412.     // line 114
  413.     /**
  414.      * @return iterable<null|scalar|\Stringable>
  415.      */
  416.     public function block_pageContent(array $context, array $blocks = []): iterable
  417.     {
  418.         $macros = $this->macros;
  419.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  420.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageContent"));
  421.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  422.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageContent"));
  423.         
  424.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  425.         
  426.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  427.         return; yield;
  428.     }
  429.     // line 120
  430.     /**
  431.      * @return iterable<null|scalar|\Stringable>
  432.      */
  433.     public function block_footer(array $context, array $blocks = []): iterable
  434.     {
  435.         $macros = $this->macros;
  436.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  437.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  438.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  439.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  440.         // line 121
  441.         yield "            <script>
  442.                 // Show loader by default
  443.                 document.addEventListener(\x27DOMContentLoaded\x27, function() {
  444.                     // Ensure the loader is visible
  445.                     document.querySelector(\x27.uv-loader-view\x27).style.display = \x27block\x27;
  446.                 });
  447.                 // Hide loader once the page is fully loaded
  448.                 window.onload = function() {
  449.                     // Hide the loader
  450.                     if (document.querySelector(\x27.uv-loader-view\x27))
  451.                         document.querySelector(\x27.uv-loader-view\x27).style.display = \x27none\x27;
  452.                 };
  453.             </script>
  454.             <script src=\"";
  455.         // line 136
  456.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/uvdeskcoreframework/js/_common.js"), "html", null, true);
  457.         yield "\"></script>
  458.             ";
  459.         // line 137
  460.         yield from $this->load("@UVDeskCoreFramework/Templates/pagination.html.twig", 137)->unwrap()->yield($context);
  461.         // line 138
  462.         yield "
  463.             ";
  464.         // line 140
  465.         yield "            <div class=\"uv-pop-up-overlay\" id=\"confirm-modal\">
  466.                 <div class=\"uv-pop-up-box uv-pop-up-slim\">
  467.                     <span class=\"uv-pop-up-close\"></span>
  468.                     <h2>";
  469.         // line 143
  470.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Confirm Action"), "html", null, true);
  471.         yield "</h2>
  472.                     <p>";
  473.         // line 144
  474.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Are you sure? You want to perform this action."), "html", null, true);
  475.         yield "</p>
  476.                     <div class=\"uv-pop-up-actions\">
  477.                         <a href=\"#\" class=\"uv-btn uv-btn-error confirm\">";
  478.         // line 147
  479.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Confirm"), "html", null, true);
  480.         yield "</a>
  481.                         <a href=\"#\" class=\"uv-btn cancel\">";
  482.         // line 148
  483.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cancel"), "html", null, true);
  484.         yield "</a>
  485.                     </div>
  486.                 </div>
  487.             </div>
  488.             ";
  489.         // line 154
  490.         yield "            <script type=\"text/template\" id=\"loader-tmp\">
  491.                 <div class=\"uv-loader\">
  492.                     <span></span>
  493.                     <span></span>
  494.                     <span></span>
  495.                 </div>
  496.             </script>
  497.             ";
  498.         // line 163
  499.         yield "            <script type=\"text/template\" id=\"full-view-loader\">
  500.                 <div class=\"uv-loader-view\">
  501.                     <div class=\"uv-loader\">
  502.                         <span></span>
  503.                         <span></span>
  504.                         <span></span>
  505.                     </div>
  506.                 </div>
  507.             </script>
  508.             ";
  509.         // line 174
  510.         yield "            <script type=\"text/template\" id=\"notification-template\">
  511.                 <div class=\"uv-notification <% if(alertClass == \x27danger\x27) { %>uv-error<% } else { %> <%= \x27uv-\x27 + alertClass %> <% } %>\">
  512.                     <span class=\"uv-notification-close\"></span>
  513.                     <p><%= alertMessage %> </p>
  514.                 </div>
  515.             </script>
  516.             <script type=\"text/javascript\">
  517.                 var warningResponse = {
  518.                     \x27alertClass\x27 : \x27danger\x27,
  519.                     \x27alertMessage\x27 : \x27";
  520.         // line 184
  521.         yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Error : Something went wrong, please try again later"), "html", null, true);
  522.         yield "\x27,
  523.                 };
  524.             </script>
  525.             ";
  526.         // line 187
  527.         if ((array_key_exists("currentUser", $context) &&  !Twig\Extension\CoreExtension::testEmpty((isset($context["currentUser"]) || array_key_exists("currentUser", $context) ? $context["currentUser"] : (function () { throw new RuntimeError('Variable "currentUser" does not exist.', 187, $this->source); })())))) {
  528.             // line 188
  529.             yield "                <script type=\"text/javascript\">
  530.                     setInterval(async () => {
  531.                         try {
  532.                             const response = await fetch(\x27";
  533.             // line 191
  534.             yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_session_check");
  535.             yield "\x27, {
  536.                                 credentials: \x27include\x27
  537.                             });
  538.                             if (! response.ok) {
  539.                                 if (
  540.                                     response.status === 401 
  541.                                     || response.status === 440
  542.                                 ) {
  543.                                     window.location.href = \x27";
  544.             // line 200
  545.             yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_member_handle_login");
  546.             yield "\x27;
  547.                                 }
  548.                             } else {
  549.                                 const data = await response.json();
  550.                                 console.log(\x27Session status:\x27, data.session);
  551.                             }
  552.                         } catch (err) {
  553.                             console.error(\x27Error checking session:\x27, err);
  554.                         }
  555.                     }, 20 * 60 * 1000); // Every 20 minutes
  556.                 </script>
  557.             ";
  558.         }
  559.         // line 212
  560.         yield "        ";
  561.         
  562.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  563.         
  564.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  565.         return; yield;
  566.     }
  567.     /**
  568.      * @codeCoverageIgnore
  569.      */
  570.     public function getTemplateName(): string
  571.     {
  572.         return "@UVDeskCoreFramework/Templates/layout.html.twig";
  573.     }
  574.     /**
  575.      * @codeCoverageIgnore
  576.      */
  577.     public function isTraitable(): bool
  578.     {
  579.         return false;
  580.     }
  581.     /**
  582.      * @codeCoverageIgnore
  583.      */
  584.     public function getDefaultEscapeStrategy(): string|false
  585.     {
  586.         return "html";
  587.     }
  588.     /**
  589.      * @codeCoverageIgnore
  590.      */
  591.     public function getDebugInfo(): array
  592.     {
  593.         return array (  622 => 212,  607 => 200,  595 => 191,  590 => 188,  588 => 187,  582 => 184,  570 => 174,  558 => 163,  548 => 154,  540 => 148,  536 => 147,  530 => 144,  526 => 143,  521 => 140,  518 => 138,  516 => 137,  512 => 136,  495 => 121,  482 => 120,  460 => 114,  449 => 110,  446 => 109,  433 => 108,  419 => 115,  417 => 114,  412 => 111,  410 => 108,  407 => 107,  394 => 106,  383 => 104,  380 => 103,  377 => 102,  374 => 101,  361 => 100,  339 => 25,  316 => 4,  304 => 218,  294 => 216,  289 => 215,  286 => 213,  284 => 120,  281 => 119,  279 => 106,  276 => 105,  274 => 100,  271 => 99,  268 => 98,  265 => 97,  262 => 96,  260 => 95,  252 => 90,  248 => 89,  242 => 86,  238 => 85,  223 => 72,  220 => 71,  210 => 68,  206 => 66,  202 => 65,  199 => 64,  189 => 61,  185 => 59,  180 => 58,  178 => 57,  170 => 52,  163 => 48,  160 => 47,  157 => 46,  154 => 45,  152 => 44,  149 => 43,  146 => 42,  144 => 41,  135 => 35,  130 => 33,  121 => 26,  119 => 25,  116 => 24,  106 => 22,  102 => 21,  96 => 18,  93 => 17,  90 => 16,  88 => 15,  80 => 10,  76 => 9,  70 => 6,  65 => 4,  60 => 1,);
  594.     }
  595.     public function getSourceContext(): Source
  596.     {
  597.         return new Source("<!DOCTYPE html>
  598. <html>
  599.     <head>
  600.         <title>{% block title %}HelpDesk{% endblock %}</title>
  601.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  602.         <link rel=\"icon\" type=\"image/x-icon\" sizes=\"16x16 32x32 48x48\" href=\"{{ asset(\x27favicon.ico\x27) }}\" />
  603.         <!-- Stylesheets -->
  604.         <link href=\"{{ asset(\x27bundles/uvdeskcoreframework/css/_uikit.css\x27) }}\" type=\"text/css\" rel=\"stylesheet\" media=\"all\" />
  605.         <link href=\"{{ asset(\x27bundles/uvdeskcoreframework/css/_custom.css\x27) }}\" type=\"text/css\" rel=\"stylesheet\" media=\"all\" />
  606.         <link href=\"//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css\" type=\"text/css\" rel=\"stylesheet\">
  607.         <link href=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css\" type=\"text/css\" rel=\"stylesheet\">
  608.         <!-- Custom CSS -->
  609.         {% set websiteConfiguration = user_service.getWebsiteConfiguration(\x27knowledgebase\x27) %}
  610.         {% set website = user_service.getWebsiteDetails(\x27helpdesk\x27) %}
  611.         {{ include(\x27@UVDeskCoreFramework/Templates/lightskin.html.twig\x27) }}
  612.         <!-- Custom Stylesheets -->
  613.         {% for stylesheet in uvdesk_extensibles.getRegisteredComponent(\x27Webkul\\\\UVDesk\\\\CoreFrameworkBundle\\\\Dashboard\\\\Dashboard\x27).getDashboardTemplate().getStylesheetResources() %}
  614.             <link href=\"{{ asset(stylesheet) }}\" type=\"text/css\" rel=\"stylesheet\" media=\"all\" />
  615.         {% endfor %}
  616.         
  617.         {% block templateCSS %}{% endblock %}
  618.         <!-- Scripts -->
  619.         <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js\"></script>
  620.         <script src=\"https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.1/underscore-min.js\"></script>
  621.         <script src=\"https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.4.0/backbone-min.js\"></script>
  622.         <script src=\"https://cdnjs.cloudflare.com/ajax/libs/backbone.validation/0.11.5/backbone-validation-min.js\"></script>
  623.         <script src=\"https://cdnjs.cloudflare.com/ajax/libs/backbone.paginator/2.0.8/backbone.paginator.min.js\"></script>
  624.         <script src=\"{{ asset(\x27bundles/uvdeskcoreframework/js/_dropdown.js\x27) }}\"></script>
  625.         <script src=\"https://cdnjs.cloudflare.com/ajax/libs/d3/6.2.0/d3.min.js\"></script>
  626.         <script src=\"{{ asset(\x27bundles/uvdeskcoreframework/js/viewer.js\x27) }}\"></script>
  627.         <script src=\"https://code.jquery.com/ui/1.12.1/jquery-ui.js\"></script>
  628.         <script src=\"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.0/moment.min.js\"></script>\t
  629.         <script src=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js\"></script>
  630.     </head>
  631.     {% set bodyClass = \x27\x27 %}
  632.     {% set bodySkinClass = \x27\x27 %}
  633.     {% if app.request.locale == \"ar\" %}
  634.         {% set bodyClass = \x27uv-rtl\x27 %}
  635.     {% endif %}
  636.     
  637.     <body class=\"{{ bodySkinClass ~ \x27 \x27 ~ bodyClass }}\">
  638.         <div class=\"uv-notifications-wrapper\">
  639.             <noscript>
  640.                 <div class=\"uv-notification page-load uv-error\">
  641.                     <p>{% trans %}Your browser does not support JavaScript or You disabled JavaScript, Please enable those !{% endtrans %}</p>
  642.                 </div>
  643.                 <style>.uv-loader-view {display: none;}</style>
  644.             </noscript>
  645.             {% if uvdesk_service.requestHeadersSent() == false %}
  646.                 {% for flashMessage in app.session.flashbag.get(\x27success\x27) %}
  647.                     <div class=\"uv-notification page-load uv-success\">
  648.                         <span class=\"uv-notification-close\"></span>
  649.                         <p>{{ flashMessage|raw }}</p>
  650.                     </div>
  651.                 {% endfor %}
  652.                 
  653.                 {% for flashMessage in app.session.flashbag.get(\x27warning\x27) %}
  654.                     <div class=\"uv-notification page-load uv-error\">
  655.                         <span class=\"uv-notification-close\"></span>
  656.                         <p>{{ flashMessage|raw }}</p>
  657.                     </div>
  658.                 {% endfor %}
  659.             {% endif %}
  660.         </div>
  661.         <div class=\"uv-loader-view\">
  662.             <div class=\"uv-loader\">
  663.                 <span></span>
  664.                 <span></span>
  665.                 <span></span>
  666.             </div>
  667.         </div>
  668.         <div class=\"uv-pop-up-overlay\" id=\"confirm-modal\">
  669.             <div class=\"uv-pop-up-box uv-pop-up-slim\">
  670.                 <span class=\"uv-pop-up-close\"></span>
  671.                 <h2>{{ \x27Confirm Action\x27|trans }}</h2>
  672.                 <p>{{ \x27Are you sure? You want to perform this action.\x27|trans }}</p>
  673.                 <div class=\"uv-pop-up-actions\">
  674.                     <a href=\"#\" class=\"uv-btn uv-btn-error confirm\">{{ \x27Confirm\x27|trans }}</a>
  675.                     <a href=\"#\" class=\"uv-btn cancel\">{{ \x27Cancel\x27|trans }}</a>
  676.                 </div>
  677.             </div>
  678.         </div>
  679.         {% set currentUser = user_service.getSessionUser() %}
  680.         {% if currentUser is not empty and currentUser.getAgentInstance() is not empty %}
  681.             {% set currentUserDetails = currentUser.getAgentInstance().getPartialDetails() %}
  682.         {% endif %}
  683.         {% block sidebar %}
  684.             {% if currentUser is defined and currentUser is not empty %}
  685.                 {% include \"@UVDeskCoreFramework/Templates/sidebar.html.twig\" %}
  686.             {% endif %}
  687.         {% endblock %}
  688.         {% block pageWrapper %}
  689.             <div class=\"uv-paper\">
  690.                 {% block pageHeader %}
  691.                     {% include \"@UVDeskCoreFramework/Templates/header.html.twig\" %}
  692.                 {% endblock %}
  693.                 <div class=\"uv-wrapper\">
  694.                     <div class=\"uv-container\">
  695.                         {% block pageContent %}{% endblock %}
  696.                     </div>
  697.                 </div>
  698.             </div>
  699.         {% endblock %}
  700.         
  701.         {% block footer %}
  702.             <script>
  703.                 // Show loader by default
  704.                 document.addEventListener(\x27DOMContentLoaded\x27, function() {
  705.                     // Ensure the loader is visible
  706.                     document.querySelector(\x27.uv-loader-view\x27).style.display = \x27block\x27;
  707.                 });
  708.                 // Hide loader once the page is fully loaded
  709.                 window.onload = function() {
  710.                     // Hide the loader
  711.                     if (document.querySelector(\x27.uv-loader-view\x27))
  712.                         document.querySelector(\x27.uv-loader-view\x27).style.display = \x27none\x27;
  713.                 };
  714.             </script>
  715.             <script src=\"{{ asset(\x27bundles/uvdeskcoreframework/js/_common.js\x27) }}\"></script>
  716.             {% include \"@UVDeskCoreFramework/Templates/pagination.html.twig\" %}
  717.             {# Confirm Action Dialog #}
  718.             <div class=\"uv-pop-up-overlay\" id=\"confirm-modal\">
  719.                 <div class=\"uv-pop-up-box uv-pop-up-slim\">
  720.                     <span class=\"uv-pop-up-close\"></span>
  721.                     <h2>{{ \x27Confirm Action\x27|trans }}</h2>
  722.                     <p>{{ \x27Are you sure? You want to perform this action.\x27|trans }}</p>
  723.                     <div class=\"uv-pop-up-actions\">
  724.                         <a href=\"#\" class=\"uv-btn uv-btn-error confirm\">{{ \x27Confirm\x27|trans }}</a>
  725.                         <a href=\"#\" class=\"uv-btn cancel\">{{ \x27Cancel\x27|trans }}</a>
  726.                     </div>
  727.                 </div>
  728.             </div>
  729.             {# Loader Template #}
  730.             <script type=\"text/template\" id=\"loader-tmp\">
  731.                 <div class=\"uv-loader\">
  732.                     <span></span>
  733.                     <span></span>
  734.                     <span></span>
  735.                 </div>
  736.             </script>
  737.             {# Full View Loader Template #}
  738.             <script type=\"text/template\" id=\"full-view-loader\">
  739.                 <div class=\"uv-loader-view\">
  740.                     <div class=\"uv-loader\">
  741.                         <span></span>
  742.                         <span></span>
  743.                         <span></span>
  744.                     </div>
  745.                 </div>
  746.             </script>
  747.             {# Notification Template #}
  748.             <script type=\"text/template\" id=\"notification-template\">
  749.                 <div class=\"uv-notification <% if(alertClass == \x27danger\x27) { %>uv-error<% } else { %> <%= \x27uv-\x27 + alertClass %> <% } %>\">
  750.                     <span class=\"uv-notification-close\"></span>
  751.                     <p><%= alertMessage %> </p>
  752.                 </div>
  753.             </script>
  754.             <script type=\"text/javascript\">
  755.                 var warningResponse = {
  756.                     \x27alertClass\x27 : \x27danger\x27,
  757.                     \x27alertMessage\x27 : \x27{{ \"Error : Something went wrong, please try again later\"|trans }}\x27,
  758.                 };
  759.             </script>
  760.             {% if currentUser is defined and currentUser is not empty %}
  761.                 <script type=\"text/javascript\">
  762.                     setInterval(async () => {
  763.                         try {
  764.                             const response = await fetch(\x27{{ path(\x27helpdesk_member_session_check\x27) }}\x27, {
  765.                                 credentials: \x27include\x27
  766.                             });
  767.                             if (! response.ok) {
  768.                                 if (
  769.                                     response.status === 401 
  770.                                     || response.status === 440
  771.                                 ) {
  772.                                     window.location.href = \x27{{ path(\x27helpdesk_member_handle_login\x27) }}\x27;
  773.                                 }
  774.                             } else {
  775.                                 const data = await response.json();
  776.                                 console.log(\x27Session status:\x27, data.session);
  777.                             }
  778.                         } catch (err) {
  779.                             console.error(\x27Error checking session:\x27, err);
  780.                         }
  781.                     }, 20 * 60 * 1000); // Every 20 minutes
  782.                 </script>
  783.             {% endif %}
  784.         {% endblock %}
  785.         {# Custom Javascript #}
  786.         {% for javascript in uvdesk_extensibles.getRegisteredComponent(\x27Webkul\\\\UVDesk\\\\CoreFrameworkBundle\\\\Dashboard\\\\Dashboard\x27).getDashboardTemplate().getJavascriptResources() %}
  787.             <script src=\"{{ asset(javascript) }}\" type=\"text/javascript\"></script>
  788.         {% endfor %}
  789.     </body>
  790. </html>", "@UVDeskCoreFramework/Templates/layout.html.twig", "/var/www/uvdesk/vendor/uvdesk/core-framework/Resources/views/Templates/layout.html.twig");
  791.     }
  792. }