*/ private array $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'title' => [$this, 'block_title'], 'head' => [$this, 'block_head'], 'content' => [$this, 'block_content'], ]; } protected function doGetParent(array $context): bool|string|Template|TemplateWrapper { // line 1 return "layouts/dashboard.twig"; } protected function doDisplay(array $context, array $blocks = []): iterable { $macros = $this->macros; $this->parent = $this->load("layouts/dashboard.twig", 1); yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks)); } // line 3 /** * @return iterable */ public function block_title(array $context, array $blocks = []): iterable { $macros = $this->macros; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["title"] ?? null), "html", null, true); yield " - "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["platformName"] ?? null), "html", null, true); yield from []; } // line 5 /** * @return iterable */ public function block_head(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 6 yield " "; yield from []; } // line 40 /** * @return iterable */ public function block_content(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 41 yield "

"; // line 43 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["title"] ?? null), "html", null, true); yield "

env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("/admin/notes"), "html", null, true); yield "\" method=\"GET\" class=\"d-flex gap-2 me-3\">
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("notes.search_placeholder"), "html", null, true); yield "\" value=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "search", [], "any", false, false, false, 48), "html", null, true); yield "\">
"; // line 56 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "search", [], "any", false, false, false, 56) || CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "subject_id", [], "any", false, false, false, 56))) { // line 57 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("/admin/notes"), "html", null, true); yield "\" class=\"btn btn-outline-secondary\" title=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("notes.cancel"), "html", null, true); yield "\"> "; } // line 59 yield "
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("/admin/notes/create"), "html", null, true); yield "\" class=\"btn btn-primary\"> "; // line 64 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("notes.add_note"), "html", null, true); yield "
"; // line 69 if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["flash_messages"] ?? null), "success", [], "any", false, false, false, 69)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 70 yield "
"; // line 71 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["flash_messages"] ?? null), "success", [], "any", false, false, false, 71), "html", null, true); yield "
"; } // line 75 yield "
"; // line 77 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["notes"] ?? null)); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["note"]) { // line 78 yield "
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["note"], "notes_color", [], "any", false, false, false, 79), "html", null, true); yield ";\"> "; // line 80 if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["note"], "notes_is_pinned", [], "any", false, false, false, 80)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 81 yield "
"; } // line 83 yield "
"; // line 87 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["note"], "notes_title", [], "any", false, false, false, 87), "html", null, true); yield " "; // line 88 if ((CoreExtension::getAttribute($this->env, $this->source, $context["note"], "notes_image", [], "any", false, false, false, 88) || CoreExtension::getAttribute($this->env, $this->source, $context["note"], "notes_file", [], "any", false, false, false, 88))) { // line 89 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::default($this->env->getFunction('__')->getCallable()("notes.has_attachments"), "Possui anexos"), "html", null, true); yield "\"> "; } // line 93 yield "
"; // line 124 yield CoreExtension::getAttribute($this->env, $this->source, $context["note"], "notes_content", [], "any", false, false, false, 124); yield "
"; $context['_iterated'] = true; } // line 142 if (!$context['_iterated']) { // line 143 yield "

"; // line 146 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("notes.no_notes"), "html", null, true); yield "

"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_key'], $context['note'], $context['_parent'], $context['_iterated']); $context = array_intersect_key($context, $_parent) + $_parent; // line 150 yield "
"; // line 158 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("notes.manage_subjects"), "html", null, true); yield "
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("/admin/notes/subjects/store"), "html", null, true); yield "\" method=\"POST\" class=\"mb-4\">
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("notes.subject_name"), "html", null, true); yield "\" required>
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("notes.subject_color"), "html", null, true); yield "\">
"; // line 177 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["subjects"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["subject"]) { // line 178 yield "
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["subject"], "subjects_color", [], "any", false, false, false, 180), "html", null, true); yield ";\"> "; // line 181 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["subject"], "subjects_name", [], "any", false, false, false, 181), "html", null, true); yield "
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()(("/admin/notes/subjects/delete/" . CoreExtension::getAttribute($this->env, $this->source, $context["subject"], "subjects_id", [], "any", false, false, false, 183))), "html", null, true); yield "\" method=\"POST\" onsubmit=\"return confirm('"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("notes.delete_subject_confirm"), "html", null, true); yield "')\">
"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_key'], $context['subject'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 188 yield "
"; yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "@notes/admin/index.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 440 => 188, 430 => 184, 424 => 183, 419 => 181, 415 => 180, 411 => 178, 407 => 177, 398 => 171, 392 => 168, 386 => 165, 380 => 162, 374 => 159, 370 => 158, 360 => 150, 350 => 146, 345 => 143, 343 => 142, 333 => 137, 327 => 136, 324 => 135, 318 => 132, 312 => 130, 310 => 129, 302 => 124, 290 => 115, 283 => 113, 274 => 107, 269 => 105, 262 => 101, 258 => 100, 249 => 93, 241 => 89, 239 => 88, 235 => 87, 229 => 83, 225 => 81, 223 => 80, 219 => 79, 216 => 78, 211 => 77, 207 => 75, 200 => 71, 197 => 70, 195 => 69, 187 => 64, 183 => 63, 178 => 61, 174 => 59, 166 => 57, 164 => 56, 161 => 55, 148 => 53, 144 => 52, 140 => 51, 132 => 48, 126 => 45, 121 => 43, 117 => 41, 110 => 40, 73 => 6, 66 => 5, 53 => 3, 42 => 1,); } public function getSourceContext(): Source { return new Source("", "@notes/admin/index.twig", "/app/modules/notes/views/admin/index.twig"); } }