var/cache/dev/twig/ff/ff1c9b57496b38193aaa537aa47d1a36.php line 260

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