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