var/cache/dev/twig/4a/4a9c0e6f78b3a162d50a351d5367cef3.php line 64

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\MacroNamespace;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Sandbox\SecurityNotAllowedTestError;
  14. use Twig\Source;
  15. use Twig\Template;
  16. use Twig\TemplateWrapper;
  17. /* Front/Scholar/PracticalCase/show.html.twig */
  18. class __TwigTemplate_65356ed7688834e368df8e153816c3bc extends Template
  19. {
  20. private Source $source;
  21. /**
  22. * @var array<string, MacroNamespace>
  23. */
  24. private array $macros = [];
  25. private \Twig\Runtime\EscaperRuntime $escaper;
  26. public function __construct(Environment $env)
  27. {
  28. parent::__construct($env);
  29. $this->source = $this->getSourceContext();
  30. $this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
  31. $this->blocks = [
  32. 'back_to_dashboard' => [$this, 'block_back_to_dashboard'],
  33. 'title' => [$this, 'block_title'],
  34. 'attribute_body' => [$this, 'block_attribute_body'],
  35. 'breadcrumbs' => [$this, 'block_breadcrumbs'],
  36. 'page_title' => [$this, 'block_page_title'],
  37. 'partial_form' => [$this, 'block_partial_form'],
  38. 'side_nav_right' => [$this, 'block_side_nav_right'],
  39. ];
  40. }
  41. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  42. {
  43. // line 1
  44. return $this->parent ??= $this->load("Layout/layout_side_nav.html.twig", 1);
  45. }
  46. protected function doDisplay(array $context, array $blocks = []): iterable
  47. {
  48. $macros = $this->macros;
  49. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/PracticalCase/show.html.twig"));
  51. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/PracticalCase/show.html.twig"));
  53. $this->parent = $this->load("Layout/layout_side_nav.html.twig", 1);
  54. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  55. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  56. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57. }
  58. // line 3
  59. /**
  60. * @return iterable<null|scalar|\Stringable>
  61. */
  62. public function block_back_to_dashboard(array $context, array $blocks = []): iterable
  63. {
  64. $macros = $this->macros;
  65. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "back_to_dashboard"));
  67. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "back_to_dashboard"));
  69. // line 4
  70. yield " ";
  71. yield from $this->load("Front/Scholar/Partial/_back_to_dashboard.html.twig", 4)->unwrap()->yield($context);
  72. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  73. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  74. return; yield;
  75. }
  76. // line 7
  77. /**
  78. * @return iterable<null|scalar|\Stringable>
  79. */
  80. public function block_title(array $context, array $blocks = []): iterable
  81. {
  82. $macros = $this->macros;
  83. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  85. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  87. // line 8
  88. yield " ";
  89. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.cas_pratique.show.title.label"), "html", null, true);
  90. yield "
  91. ";
  92. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  93. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  94. return; yield;
  95. }
  96. // line 11
  97. /**
  98. * @return iterable<null|scalar|\Stringable>
  99. */
  100. public function block_attribute_body(array $context, array $blocks = []): iterable
  101. {
  102. $macros = $this->macros;
  103. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  104. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "attribute_body"));
  105. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  106. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "attribute_body"));
  107. yield "class=\"practical-case-front\"";
  108. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  109. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  110. return; yield;
  111. }
  112. // line 13
  113. /**
  114. * @return iterable<null|scalar|\Stringable>
  115. */
  116. public function block_breadcrumbs(array $context, array $blocks = []): iterable
  117. {
  118. $macros = $this->macros;
  119. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  120. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumbs"));
  121. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  122. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumbs"));
  123. // line 14
  124. yield " ";
  125. yield from $this->load("@NellappSDK/Partials/component/breadcrumb/breadcrumb.html.twig", 14)->unwrap()->yield(CoreExtension::merge($context, ["breadcrumb" => ["items" => [["title" => "Toutes mes formations", "path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_user_scholar_training_card")], ["title" => CoreExtension::getAttribute($this->env, $this->source, // line 22
  126. (isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 22, $this->source); })()), "name", [], "any", false, false, false, 22), "path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_training_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, // line 23
  127. (isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 23, $this->source); })()), "id", [], "any", false, false, false, 23)])], ["title" => CoreExtension::getAttribute($this->env, $this->source, // line 26
  128. (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 26, $this->source); })()), "name", [], "any", false, false, false, 26), "path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_training_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, // line 27
  129. (isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 27, $this->source); })()), "id", [], "any", false, false, false, 27)])], ["title" => CoreExtension::getAttribute($this->env, $this->source, // line 30
  130. (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 30, $this->source); })()), "name", [], "any", false, false, false, 30), "path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_channel_lesson_show", ["lessonId" => CoreExtension::getAttribute($this->env, $this->source, // line 31
  131. (isset($context["lesson"]) || array_key_exists("lesson", $context) ? $context["lesson"] : (function () { throw new RuntimeError('Variable "lesson" does not exist.', 31, $this->source); })()), "id", [], "any", false, false, false, 31), "moduleId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 31, $this->source); })()), "id", [], "any", false, false, false, 31), "trainingId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["training"]) || array_key_exists("training", $context) ? $context["training"] : (function () { throw new RuntimeError('Variable "training" does not exist.', 31, $this->source); })()), "id", [], "any", false, false, false, 31)])], ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.cas_pratique.show.title.label")]]]]));
  132. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  133. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  134. return; yield;
  135. }
  136. // line 39
  137. /**
  138. * @return iterable<null|scalar|\Stringable>
  139. */
  140. public function block_page_title(array $context, array $blocks = []): iterable
  141. {
  142. $macros = $this->macros;
  143. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  144. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_title"));
  145. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  146. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_title"));
  147. // line 40
  148. yield " ";
  149. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["practicalCase"]) || array_key_exists("practicalCase", $context) ? $context["practicalCase"] : (function () { throw new RuntimeError('Variable "practicalCase" does not exist.', 40, $this->source); })()), "title", [], "any", false, false, false, 40), "html", null, true);
  150. yield "
  151. ";
  152. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  153. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  154. return; yield;
  155. }
  156. // line 43
  157. /**
  158. * @return iterable<null|scalar|\Stringable>
  159. */
  160. public function block_partial_form(array $context, array $blocks = []): iterable
  161. {
  162. $macros = $this->macros;
  163. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  164. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "partial_form"));
  165. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  166. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "partial_form"));
  167. // line 44
  168. yield " <p class=\"sub-title\">";
  169. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("front.scholar.lesson.show.cas_pratique.label"), "html", null, true);
  170. yield "</p>
  171. ";
  172. // line 45
  173. yield from $this->load("Front/Scholar/PracticalCase/show_with_tabs.html.twig", 45)->unwrap()->yield($context);
  174. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  175. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  176. return; yield;
  177. }
  178. // line 48
  179. /**
  180. * @return iterable<null|scalar|\Stringable>
  181. */
  182. public function block_side_nav_right(array $context, array $blocks = []): iterable
  183. {
  184. $macros = $this->macros;
  185. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  186. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "side_nav_right"));
  187. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  188. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "side_nav_right"));
  189. // line 49
  190. yield " ";
  191. if ((($tmp = 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.', 49, $this->source); })()), "user", [], "any", false, false, false, 49)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  192. // line 50
  193. yield " ";
  194. $preRendered = $this->extensions["Symfony\\UX\\TwigComponent\\Twig\\ComponentExtension"]->extensionPreCreateForRender("ChannelUserData:CursusLockout", Twig\Extension\CoreExtension::toArray(["cursus" => (((array_key_exists("cursus", $context) && !(null === $context["cursus"]))) ? ($context["cursus"]) : (null))]));
  195. if (null !== $preRendered) {
  196. echo $preRendered;
  197. } else {
  198. $preRenderEvent = $this->extensions["Symfony\\UX\\TwigComponent\\Twig\\ComponentExtension"]->startEmbeddedComponentRender("ChannelUserData:CursusLockout", Twig\Extension\CoreExtension::toArray(["cursus" => (((array_key_exists("cursus", $context) && !(null === $context["cursus"]))) ? ($context["cursus"]) : (null))]), $context, "Front/Scholar/PracticalCase/show.html.twig", 40034838941);
  199. $embeddedContext = $preRenderEvent->getVariables();
  200. $embeddedContext["__parent__"] = $preRenderEvent->getTemplate();
  201. if (!isset($embeddedContext["outerBlocks"])) {
  202. $embeddedContext["outerBlocks"] = new \Symfony\UX\TwigComponent\BlockStack();
  203. }
  204. $embeddedBlocks = $embeddedContext["outerBlocks"]->convert($blocks, 40034838941);
  205. $this->loadTemplate("Front/Scholar/PracticalCase/show.html.twig", "Front/Scholar/PracticalCase/show.html.twig", 50, "40034838941")->display($embeddedContext, $embeddedBlocks);
  206. $this->extensions["Symfony\\UX\\TwigComponent\\Twig\\ComponentExtension"]->finishEmbeddedComponentRender();
  207. }
  208. // line 51
  209. yield " ";
  210. }
  211. // line 52
  212. yield "
  213. ";
  214. // line 53
  215. if (array_key_exists("role", $context)) {
  216. // line 54
  217. yield " ";
  218. if (((isset($context["role"]) || array_key_exists("role", $context) ? $context["role"] : (function () { throw new RuntimeError('Variable "role" does not exist.', 54, $this->source); })()) === "learner")) {
  219. // line 55
  220. yield " ";
  221. yield from $this->load("Front/Scholar/PracticalCase/learner_messaging.html.twig", 55)->unwrap()->yield($context);
  222. // line 56
  223. yield " ";
  224. } elseif (((isset($context["role"]) || array_key_exists("role", $context) ? $context["role"] : (function () { throw new RuntimeError('Variable "role" does not exist.', 56, $this->source); })()) === "corrector")) {
  225. // line 57
  226. yield " ";
  227. yield from $this->load("Front/Scholar/PracticalCase/corrector_messaging.html.twig", 57)->unwrap()->yield($context);
  228. // line 58
  229. yield " ";
  230. }
  231. // line 59
  232. yield " ";
  233. }
  234. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  235. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  236. return; yield;
  237. }
  238. /**
  239. * @codeCoverageIgnore
  240. */
  241. public function getTemplateName(): string
  242. {
  243. return "Front/Scholar/PracticalCase/show.html.twig";
  244. }
  245. /**
  246. * @codeCoverageIgnore
  247. */
  248. public function isTraitable(): bool
  249. {
  250. return false;
  251. }
  252. /**
  253. * @codeCoverageIgnore
  254. */
  255. public function getDefaultEscapeStrategy(): string|false
  256. {
  257. return "html";
  258. }
  259. /**
  260. * @codeCoverageIgnore
  261. */
  262. public function getDebugInfo(): array
  263. {
  264. return array ( 291 => 59, 288 => 58, 285 => 57, 282 => 56, 279 => 55, 276 => 54, 274 => 53, 271 => 52, 268 => 51, 252 => 50, 249 => 49, 236 => 48, 225 => 45, 220 => 44, 207 => 43, 193 => 40, 180 => 39, 169 => 31, 168 => 30, 167 => 27, 166 => 26, 165 => 23, 164 => 22, 162 => 14, 149 => 13, 126 => 11, 112 => 8, 99 => 7, 87 => 4, 74 => 3, 51 => 1,);
  265. }
  266. public function getSourceContext(): Source
  267. {
  268. return new Source("{% extends \x27Layout/layout_side_nav.html.twig\x27 %}
  269. {% block back_to_dashboard %}
  270. {% include \x27Front/Scholar/Partial/_back_to_dashboard.html.twig\x27 %}
  271. {% endblock back_to_dashboard %}
  272. {% block title %}
  273. {{ \x27front.scholar.lesson.show.cas_pratique.show.title.label\x27 | trans }}
  274. {% endblock %}
  275. {% block attribute_body %}class=\"practical-case-front\"{% endblock %}
  276. {% block breadcrumbs %}
  277. {% include \x27@NellappSDK/Partials/component/breadcrumb/breadcrumb.html.twig\x27 with {
  278. \x27breadcrumb\x27 : {
  279. \x27items\x27: [
  280. {
  281. \x27title\x27: \x27Toutes mes formations\x27,
  282. \x27path\x27: path(\x27front_user_scholar_training_card\x27)
  283. },
  284. {
  285. \x27title\x27: training.name,
  286. \x27path\x27: path(\x27front_channel_training_show\x27, {\x27id\x27: training.id}),
  287. },
  288. {
  289. \x27title\x27: module.name,
  290. \x27path\x27: path(\x27front_channel_training_show\x27, {\x27id\x27: training.id})
  291. },
  292. {
  293. \x27title\x27: lesson.name,
  294. \x27path\x27: path(\x27front_channel_lesson_show\x27, {\x27lessonId\x27: lesson.id, \x27moduleId\x27: module.id, \x27trainingId\x27: training.id}),
  295. },
  296. {\x27title\x27: \x27front.scholar.lesson.show.cas_pratique.show.title.label\x27 | trans }
  297. ]
  298. }
  299. } %}
  300. {% endblock %}
  301. {% block page_title %}
  302. {{ practicalCase.title }}
  303. {% endblock %}
  304. {% block partial_form %}
  305. <p class=\"sub-title\">{{ \x27front.scholar.lesson.show.cas_pratique.label\x27 | trans }}</p>
  306. {% include \x27Front/Scholar/PracticalCase/show_with_tabs.html.twig\x27 %}
  307. {% endblock %}
  308. {% block side_nav_right %}
  309. {% if app.user %}
  310. {% component \x27ChannelUserData:CursusLockout\x27 with { cursus: cursus ?? null } %}{% endcomponent %}
  311. {% endif %}
  312. {% if role is defined %}
  313. {% if role is same as \x27learner\x27 %}
  314. {% include \x27Front/Scholar/PracticalCase/learner_messaging.html.twig\x27 %}
  315. {% elseif role is same as \x27corrector\x27 %}
  316. {% include \x27Front/Scholar/PracticalCase/corrector_messaging.html.twig\x27 %}
  317. {% endif %}
  318. {% endif %}
  319. {% endblock %}
  320. ", "Front/Scholar/PracticalCase/show.html.twig", "/var/www/html/templates/Front/Scholar/PracticalCase/show.html.twig");
  321. }
  322. }
  323. /* Front/Scholar/PracticalCase/show.html.twig */
  324. class __TwigTemplate_65356ed7688834e368df8e153816c3bc___40034838941 extends Template
  325. {
  326. private Source $source;
  327. /**
  328. * @var array<string, MacroNamespace>
  329. */
  330. private array $macros = [];
  331. public function __construct(Environment $env)
  332. {
  333. parent::__construct($env);
  334. $this->source = $this->getSourceContext();
  335. $this->blocks = [
  336. 'outer__block_fallback' => [$this, 'block_outer__block_fallback'],
  337. ];
  338. }
  339. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  340. {
  341. // line 50
  342. return $this->load((isset($context["__parent__"]) || array_key_exists("__parent__", $context) ? $context["__parent__"] : (function () { throw new RuntimeError('Variable "__parent__" does not exist.', 50, $this->source); })()), 50);
  343. }
  344. protected function doDisplay(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(), "template", "Front/Scholar/PracticalCase/show.html.twig"));
  349. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  350. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Front/Scholar/PracticalCase/show.html.twig"));
  351. yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  352. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  353. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  354. }
  355. /**
  356. * @return iterable<null|scalar|\Stringable>
  357. */
  358. public function block_outer__block_fallback(array $context, array $blocks = []): iterable
  359. {
  360. $macros = $this->macros;
  361. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  362. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  363. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  364. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  365. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  366. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  367. return; yield;
  368. }
  369. /**
  370. * @codeCoverageIgnore
  371. */
  372. public function getTemplateName(): string
  373. {
  374. return "Front/Scholar/PracticalCase/show.html.twig";
  375. }
  376. /**
  377. * @codeCoverageIgnore
  378. */
  379. public function isTraitable(): bool
  380. {
  381. return false;
  382. }
  383. /**
  384. * @codeCoverageIgnore
  385. */
  386. public function getDefaultEscapeStrategy(): string|false
  387. {
  388. return "html";
  389. }
  390. /**
  391. * @codeCoverageIgnore
  392. */
  393. public function getDebugInfo(): array
  394. {
  395. return array ( 425 => 50, 291 => 59, 288 => 58, 285 => 57, 282 => 56, 279 => 55, 276 => 54, 274 => 53, 271 => 52, 268 => 51, 252 => 50, 249 => 49, 236 => 48, 225 => 45, 220 => 44, 207 => 43, 193 => 40, 180 => 39, 169 => 31, 168 => 30, 167 => 27, 166 => 26, 165 => 23, 164 => 22, 162 => 14, 149 => 13, 126 => 11, 112 => 8, 99 => 7, 87 => 4, 74 => 3, 51 => 1,);
  396. }
  397. public function getSourceContext(): Source
  398. {
  399. return new Source("{% extends \x27Layout/layout_side_nav.html.twig\x27 %}
  400. {% block back_to_dashboard %}
  401. {% include \x27Front/Scholar/Partial/_back_to_dashboard.html.twig\x27 %}
  402. {% endblock back_to_dashboard %}
  403. {% block title %}
  404. {{ \x27front.scholar.lesson.show.cas_pratique.show.title.label\x27 | trans }}
  405. {% endblock %}
  406. {% block attribute_body %}class=\"practical-case-front\"{% endblock %}
  407. {% block breadcrumbs %}
  408. {% include \x27@NellappSDK/Partials/component/breadcrumb/breadcrumb.html.twig\x27 with {
  409. \x27breadcrumb\x27 : {
  410. \x27items\x27: [
  411. {
  412. \x27title\x27: \x27Toutes mes formations\x27,
  413. \x27path\x27: path(\x27front_user_scholar_training_card\x27)
  414. },
  415. {
  416. \x27title\x27: training.name,
  417. \x27path\x27: path(\x27front_channel_training_show\x27, {\x27id\x27: training.id}),
  418. },
  419. {
  420. \x27title\x27: module.name,
  421. \x27path\x27: path(\x27front_channel_training_show\x27, {\x27id\x27: training.id})
  422. },
  423. {
  424. \x27title\x27: lesson.name,
  425. \x27path\x27: path(\x27front_channel_lesson_show\x27, {\x27lessonId\x27: lesson.id, \x27moduleId\x27: module.id, \x27trainingId\x27: training.id}),
  426. },
  427. {\x27title\x27: \x27front.scholar.lesson.show.cas_pratique.show.title.label\x27 | trans }
  428. ]
  429. }
  430. } %}
  431. {% endblock %}
  432. {% block page_title %}
  433. {{ practicalCase.title }}
  434. {% endblock %}
  435. {% block partial_form %}
  436. <p class=\"sub-title\">{{ \x27front.scholar.lesson.show.cas_pratique.label\x27 | trans }}</p>
  437. {% include \x27Front/Scholar/PracticalCase/show_with_tabs.html.twig\x27 %}
  438. {% endblock %}
  439. {% block side_nav_right %}
  440. {% if app.user %}
  441. {% component \x27ChannelUserData:CursusLockout\x27 with { cursus: cursus ?? null } %}{% endcomponent %}
  442. {% endif %}
  443. {% if role is defined %}
  444. {% if role is same as \x27learner\x27 %}
  445. {% include \x27Front/Scholar/PracticalCase/learner_messaging.html.twig\x27 %}
  446. {% elseif role is same as \x27corrector\x27 %}
  447. {% include \x27Front/Scholar/PracticalCase/corrector_messaging.html.twig\x27 %}
  448. {% endif %}
  449. {% endif %}
  450. {% endblock %}
  451. ", "Front/Scholar/PracticalCase/show.html.twig", "/var/www/html/templates/Front/Scholar/PracticalCase/show.html.twig");
  452. }
  453. }