var/cache/dev/twig/f4/f4dcbb85278eb73f3975827e930f293d.php line 40

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