var/cache/dev/twig/d9/d956d25e61225e0b24be0439e56d5ecc.php line 244

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