*/ private array $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'title' => [$this, 'block_title'], '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_content(array $context, array $blocks = []): iterable { $macros = $this->macros; // line 6 yield "

"; // line 8 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/fluxo-caixa"), "html", null, true); yield "\" class=\"btn btn-outline-secondary me-2\"> Voltar ao Fluxo
"; // line 19 if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["flash_messages"] ?? null), "success", [], "any", false, false, false, 19)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 20 yield "
"; // line 21 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["flash_messages"] ?? null), "success", [], "any", false, false, false, 21), "html", null, true); yield "
"; } // line 25 yield "
"; // line 41 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["categories"] ?? null)); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["cat"]) { // line 42 yield "
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cat"], "id", [], "any", false, false, false, 81), "html", null, true); yield "\" tabindex=\"-1\" aria-hidden=\"true\">
Editar Categoria: "; // line 85 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cat"], "name", [], "any", false, false, false, 85), "html", null, true); yield "
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()(("/admin/fluxo-caixa/categories/update/" . CoreExtension::getAttribute($this->env, $this->source, $context["cat"], "id", [], "any", false, false, false, 88))), "html", null, true); yield "\" method=\"POST\">
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cat"], "name", [], "any", false, false, false, 92), "html", null, true); yield "\" required>
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cat"], "color", [], "any", false, false, false, 104), "html", null, true); yield "\">
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cat"], "icon", [], "any", false, false, false, 109), "html", null, true); yield "\" placeholder=\"bi bi-tag\">
"; $context['_iterated'] = true; } // line 120 if (!$context['_iterated']) { // line 121 yield " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_key'], $context['cat'], $context['_parent'], $context['_iterated']); $context = array_intersect_key($context, $_parent) + $_parent; // line 125 yield "
Nome Tipo Padrão Cor Ícone Status Ações
"; // line 43 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cat"], "name", [], "any", false, false, false, 43), "html", null, true); yield " "; // line 45 if ((CoreExtension::getAttribute($this->env, $this->source, $context["cat"], "type", [], "any", false, false, false, 45) == "income")) { // line 46 yield " Receita "; } else { // line 48 yield " Despesa "; } // line 50 yield "
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cat"], "color", [], "any", false, false, false, 53), "html", null, true); yield "; margin-right: 8px;\">
"; // line 54 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cat"], "color", [], "any", false, false, false, 54), "html", null, true); yield "
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["cat"], "icon", [], "any", false, false, false, 57), "html", null, true); yield " fs-5\"> "; // line 59 if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["cat"], "is_active", [], "any", false, false, false, 59)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 60 yield " Ativa "; } else { // line 62 yield " Inativa "; } // line 64 yield "
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()(("/admin/fluxo-caixa/categories/delete/" . CoreExtension::getAttribute($this->env, $this->source, $context["cat"], "id", [], "any", false, false, false, 71))), "html", null, true); yield "\" method=\"POST\">
Nenhuma categoria cadastrada.
Nova Categoria
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("/admin/fluxo-caixa/categories/store"), "html", null, true); yield "\" method=\"POST\">
"; yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "@fluxocaixapro/admin/categories/index.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 297 => 140, 280 => 125, 271 => 121, 269 => 120, 253 => 109, 245 => 104, 237 => 99, 233 => 98, 224 => 92, 217 => 88, 211 => 85, 204 => 81, 192 => 72, 188 => 71, 182 => 68, 176 => 64, 172 => 62, 168 => 60, 166 => 59, 161 => 57, 155 => 54, 151 => 53, 146 => 50, 142 => 48, 138 => 46, 136 => 45, 131 => 43, 128 => 42, 123 => 41, 105 => 25, 98 => 21, 95 => 20, 93 => 19, 81 => 10, 76 => 8, 72 => 6, 65 => 5, 52 => 3, 41 => 1,); } public function getSourceContext(): Source { return new Source("", "@fluxocaixapro/admin/categories/index.twig", "/app/modules/fluxocaixapro/views/admin/categories/index.twig"); } }