var/cache/dev/twig/ba/ba4bdea0c4e147489cc4630fb93426c7.php line 46

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