var/cache/dev/twig/2b/2b662075050aa77ddf34307a556e09a4.php line 45

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