var/cache/dev/twig/3e/3ea8f8032723af3f339fcdb84602495d.php line 252

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