614 lines
35 KiB
PHP
Executable File
614 lines
35 KiB
PHP
Executable File
<?php
|
|
|
|
use Twig\Environment;
|
|
use Twig\Error\LoaderError;
|
|
use Twig\Error\RuntimeError;
|
|
use Twig\Extension\CoreExtension;
|
|
use Twig\Extension\SandboxExtension;
|
|
use Twig\Markup;
|
|
use Twig\Sandbox\SecurityError;
|
|
use Twig\Sandbox\SecurityNotAllowedTagError;
|
|
use Twig\Sandbox\SecurityNotAllowedFilterError;
|
|
use Twig\Sandbox\SecurityNotAllowedFunctionError;
|
|
use Twig\Source;
|
|
use Twig\Template;
|
|
use Twig\TemplateWrapper;
|
|
|
|
/* layouts/dashboard.twig */
|
|
class __TwigTemplate_0d3dd437951260cf9a725483d4e92a1f extends Template
|
|
{
|
|
private Source $source;
|
|
/**
|
|
* @var array<string, Template>
|
|
*/
|
|
private array $macros = [];
|
|
|
|
public function __construct(Environment $env)
|
|
{
|
|
parent::__construct($env);
|
|
|
|
$this->source = $this->getSourceContext();
|
|
|
|
$this->parent = false;
|
|
|
|
$this->blocks = [
|
|
'title' => [$this, 'block_title'],
|
|
'head' => [$this, 'block_head'],
|
|
'sidebar' => [$this, 'block_sidebar'],
|
|
'content' => [$this, 'block_content'],
|
|
'scripts' => [$this, 'block_scripts'],
|
|
];
|
|
}
|
|
|
|
protected function doDisplay(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
// line 1
|
|
yield "<!DOCTYPE html>
|
|
<html lang=\"";
|
|
// line 2
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::replace(Twig\Extension\CoreExtension::default($this->env->getFunction('session')->getCallable()("lang"), "pt_BR"), ["_" => "-"]), "html", null, true);
|
|
yield "\">
|
|
<head>
|
|
<meta charset=\"UTF-8\">
|
|
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
|
|
<title>";
|
|
// line 6
|
|
yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
|
|
yield "</title>
|
|
|
|
<!-- Dynamic Admin Theme CSS -->
|
|
";
|
|
// line 9
|
|
if ((($context["admin_theme_slug"] ?? null) == "sb-admin")) {
|
|
// line 10
|
|
yield " <link href=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('asset_url')->getCallable()("css/sb-admin.css"), "html", null, true);
|
|
yield "\" rel=\"stylesheet\">
|
|
";
|
|
} else {
|
|
// line 12
|
|
yield " <link href=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('asset_url')->getCallable()((("themes/admin/" . ($context["admin_theme_slug"] ?? null)) . "/css/style.css")), "html", null, true);
|
|
yield "\" rel=\"stylesheet\">
|
|
";
|
|
}
|
|
// line 14
|
|
yield " <!-- Font Awesome (Legacy - Removed) -->
|
|
<!-- <script src=\"https://use.fontawesome.com/releases/v6.3.0/js/all.js\" crossorigin=\"anonymous\"></script> -->
|
|
<!-- Bootstrap Icons (For compatibility with existing modules) -->
|
|
<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css\">
|
|
|
|
<!-- Quill Editor CSS (se habilitado) -->
|
|
<link href=\"https://cdn.quilljs.com/1.3.6/quill.snow.css\" rel=\"stylesheet\">
|
|
|
|
<style>
|
|
.form-control-xs {
|
|
height: calc(1.5em + 0.5rem + 2px);
|
|
padding: 0.25rem 0.5rem;
|
|
font-size: 0.75rem;
|
|
border-radius: 0.2rem;
|
|
}
|
|
.x-small {
|
|
font-size: 0.7rem;
|
|
}
|
|
.btn-xs {
|
|
padding: 0.1rem 0.3rem;
|
|
font-size: 0.7rem;
|
|
line-height: 1.2;
|
|
border-radius: 0.2rem;
|
|
}
|
|
</style>
|
|
|
|
<!-- DataTables CSS -->
|
|
<link href=\"https://cdn.datatables.net/1.13.7/css/dataTables.bootstrap5.min.css\" rel=\"stylesheet\">
|
|
|
|
<!-- Lightbox2 CSS -->
|
|
<link href=\"https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.4/css/lightbox.min.css\" rel=\"stylesheet\">
|
|
|
|
<!-- Alpine.js -->
|
|
<script src=\"https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js\" defer></script>
|
|
|
|
";
|
|
// line 49
|
|
yield from $this->unwrap()->yieldBlock('head', $context, $blocks);
|
|
// line 50
|
|
yield "</head>
|
|
<body class=\"sb-nav-fixed\">
|
|
<nav class=\"sb-topnav navbar navbar-expand navbar-dark bg-dark\">
|
|
<!-- Navbar Brand-->
|
|
<a class=\"navbar-brand ps-3\" href=\"";
|
|
// line 54
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("dashboard"), "html", null, true);
|
|
yield "\">
|
|
";
|
|
// line 55
|
|
if ((($context["active_theme"] ?? null) && CoreExtension::getAttribute($this->env, $this->source, ($context["active_theme"] ?? null), "themes_logo", [], "any", false, false, false, 55))) {
|
|
// line 56
|
|
yield " <img src=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["active_theme"] ?? null), "themes_logo", [], "any", false, false, false, 56), "html", null, true);
|
|
yield "\" alt=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.app_name", ["platformName" => ($context["platformName"] ?? null)]), "html", null, true);
|
|
yield "\" height=\"30\">
|
|
";
|
|
} else {
|
|
// line 58
|
|
yield " <img src=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('asset_url')->getCallable()("img/logo_syscms.png"), "html", null, true);
|
|
yield "\" alt=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.app_name", ["platformName" => ($context["platformName"] ?? null)]), "html", null, true);
|
|
yield "\" height=\"30\">
|
|
";
|
|
}
|
|
// line 60
|
|
yield " </a>
|
|
<!-- Sidebar Toggle-->
|
|
<button class=\"btn btn-link btn-sm order-1 order-lg-0 me-4 me-lg-0\" id=\"sidebarToggle\" href=\"#!\">
|
|
<i class=\"bi bi-list\"></i>
|
|
</button>
|
|
|
|
";
|
|
// line 66
|
|
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["auth"] ?? null), "user", [], "any", false, false, false, 66)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
|
|
// line 67
|
|
yield " <!-- User Dropdown-->
|
|
<ul class=\"navbar-nav ms-auto ms-md-0 me-3 me-lg-4\">
|
|
<li class=\"nav-item\">
|
|
<a class=\"nav-link\" href=\"";
|
|
// line 70
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("/"), "html", null, true);
|
|
yield "\" target=\"_blank\"><i class=\"bi bi-house\"></i> ";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.menu.home"), "html", null, true);
|
|
yield "</a>
|
|
</li>
|
|
";
|
|
// line 72
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = CoreExtension::ensureTraversable(($context["config_pages_visibility"] ?? null));
|
|
foreach ($context['_seq'] as $context["key"] => $context["visibility"]) {
|
|
// line 73
|
|
yield " ";
|
|
if ((CoreExtension::getAttribute($this->env, $this->source, $context["visibility"], "dashboard", [], "any", false, false, false, 73) && ($context["key"] != "index"))) {
|
|
// line 74
|
|
yield " ";
|
|
$context["icon"] = "bi bi-file-text";
|
|
// line 75
|
|
yield " ";
|
|
if (($context["key"] == "about")) {
|
|
$context["icon"] = "bi bi-info-circle";
|
|
// line 76
|
|
yield " ";
|
|
} elseif (($context["key"] == "contact")) {
|
|
$context["icon"] = "bi bi-envelope";
|
|
// line 77
|
|
yield " ";
|
|
} elseif (($context["key"] == "services")) {
|
|
$context["icon"] = "bi bi-briefcase";
|
|
// line 78
|
|
yield " ";
|
|
}
|
|
// line 79
|
|
yield " <li class=\"nav-item\">
|
|
<a class=\"nav-link\" href=\"";
|
|
// line 80
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()($context["key"]), "html", null, true);
|
|
yield "\" target=\"_blank\">
|
|
<i class=\"";
|
|
// line 81
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["icon"] ?? null), "html", null, true);
|
|
yield "\"></i> ";
|
|
yield ((($this->env->getFunction('__')->getCallable()(("layout.menu." . $context["key"])) != ("layout.menu." . $context["key"]))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()(("layout.menu." . $context["key"])), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["visibility"], "title", [], "any", false, false, false, 81), "html", null, true)));
|
|
yield "
|
|
</a>
|
|
</li>
|
|
";
|
|
}
|
|
// line 85
|
|
yield " ";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['key'], $context['visibility'], $context['_parent']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 86
|
|
yield "
|
|
";
|
|
// line 88
|
|
yield " ";
|
|
if ((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["auth"] ?? null), "user", [], "any", false, false, false, 88), "role", [], "any", false, false, false, 88) != "admin") && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["auth"] ?? null), "user", [], "any", false, false, false, 88), "role", [], "any", false, false, false, 88) != "super_admin")) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["auth"] ?? null), "user", [], "any", false, false, false, 88), "role", [], "any", false, false, false, 88) != "member"))) {
|
|
// line 89
|
|
yield " ";
|
|
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["auth"] ?? null), "user", [], "any", false, true, false, 89), "company", [], "any", true, true, false, 89) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["auth"] ?? null), "user", [], "any", false, true, false, 89), "company", [], "any", false, true, false, 89), "modules", [], "any", true, true, false, 89))) {
|
|
// line 90
|
|
yield " ";
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["auth"] ?? null), "user", [], "any", false, false, false, 90), "company", [], "any", false, false, false, 90), "modules", [], "any", false, false, false, 90));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
|
|
// line 91
|
|
yield " ";
|
|
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "pivot", [], "any", false, false, false, 91), "bus_modules_is_enabled", [], "any", false, false, false, 91) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "pivot", [], "any", false, false, false, 91), "bus_modules_show_dashboard_nav", [], "any", false, false, false, 91))) {
|
|
// line 92
|
|
yield " ";
|
|
$context["route"] = CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_name", [], "any", false, false, false, 92);
|
|
// line 93
|
|
yield " ";
|
|
$context["label"] = CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_display_name", [], "any", false, false, false, 93);
|
|
// line 94
|
|
yield " ";
|
|
$context["icon"] = "bi bi-puzzle";
|
|
// line 95
|
|
yield "
|
|
";
|
|
// line 97
|
|
yield " ";
|
|
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_settings", [], "any", false, true, false, 97), "menu", [], "any", false, true, false, 97), "public", [], "any", true, true, false, 97)) {
|
|
// line 98
|
|
yield " ";
|
|
$context["route"] = (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_settings", [], "any", false, true, false, 98), "menu", [], "any", false, true, false, 98), "public", [], "any", false, true, false, 98), "route", [], "any", true, true, false, 98) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_settings", [], "any", false, false, false, 98), "menu", [], "any", false, false, false, 98), "public", [], "any", false, false, false, 98), "route", [], "any", false, false, false, 98)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_settings", [], "any", false, false, false, 98), "menu", [], "any", false, false, false, 98), "public", [], "any", false, false, false, 98), "route", [], "any", false, false, false, 98)) : (($context["route"] ?? null)));
|
|
// line 99
|
|
yield " ";
|
|
$context["label"] = (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_settings", [], "any", false, true, false, 99), "menu", [], "any", false, true, false, 99), "public", [], "any", false, true, false, 99), "label", [], "any", true, true, false, 99) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_settings", [], "any", false, false, false, 99), "menu", [], "any", false, false, false, 99), "public", [], "any", false, false, false, 99), "label", [], "any", false, false, false, 99)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_settings", [], "any", false, false, false, 99), "menu", [], "any", false, false, false, 99), "public", [], "any", false, false, false, 99), "label", [], "any", false, false, false, 99)) : (($context["label"] ?? null)));
|
|
// line 100
|
|
yield " ";
|
|
}
|
|
// line 101
|
|
yield "
|
|
";
|
|
// line 102
|
|
if ((CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_name", [], "any", false, false, false, 102) == "faq")) {
|
|
// line 103
|
|
yield " ";
|
|
$context["route"] = "faq";
|
|
// line 104
|
|
yield " ";
|
|
$context["label"] = $this->env->getFunction('__')->getCallable()("layout.menu.faq");
|
|
// line 105
|
|
yield " ";
|
|
$context["icon"] = "bi bi-question-circle";
|
|
// line 106
|
|
yield " ";
|
|
} elseif ((CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_name", [], "any", false, false, false, 106) == "blog")) {
|
|
// line 107
|
|
yield " ";
|
|
$context["route"] = "publicposts";
|
|
// line 108
|
|
yield " ";
|
|
$context["label"] = $this->env->getFunction('__')->getCallable()("layout.menu.posts");
|
|
// line 109
|
|
yield " ";
|
|
$context["icon"] = "bi bi-book";
|
|
// line 110
|
|
yield " ";
|
|
} elseif ((CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_name", [], "any", false, false, false, 110) == "vitrine")) {
|
|
// line 111
|
|
yield " ";
|
|
$context["route"] = "publicvitrine";
|
|
// line 112
|
|
yield " ";
|
|
$context["label"] = $this->env->getFunction('__')->getCallable()("layout.menu.vitrine");
|
|
// line 113
|
|
yield " ";
|
|
$context["icon"] = "bi bi-shop";
|
|
// line 114
|
|
yield " ";
|
|
} elseif ((CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_name", [], "any", false, false, false, 114) == "pagebuilder")) {
|
|
// line 115
|
|
yield " ";
|
|
$context["route"] = "";
|
|
yield " ";
|
|
// line 116
|
|
yield " ";
|
|
$context["label"] = $this->env->getFunction('__')->getCallable()("layout.menu.pages");
|
|
// line 117
|
|
yield " ";
|
|
$context["icon"] = "bi bi-file-text";
|
|
// line 118
|
|
yield " ";
|
|
}
|
|
// line 119
|
|
yield "
|
|
<li class=\"nav-item\">
|
|
<a class=\"nav-link\" href=\"";
|
|
// line 121
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()(($context["route"] ?? null)), "html", null, true);
|
|
yield "\" target=\"_blank\"><i class=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["icon"] ?? null), "html", null, true);
|
|
yield "\"></i> ";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()(($context["label"] ?? null)), "html", null, true);
|
|
yield "</a>
|
|
</li>
|
|
";
|
|
}
|
|
// line 124
|
|
yield " ";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_key'], $context['module'], $context['_parent']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 125
|
|
yield " ";
|
|
}
|
|
// line 126
|
|
yield " ";
|
|
}
|
|
// line 127
|
|
yield "
|
|
";
|
|
// line 128
|
|
yield from $this->load("partials/language-switcher.twig", 128)->unwrap()->yield($context);
|
|
// line 129
|
|
yield " <li class=\"nav-item dropdown\">
|
|
<a class=\"nav-link dropdown-toggle\" id=\"navbarDropdown\" href=\"#\" role=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
|
|
";
|
|
// line 131
|
|
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "users_avatar", [], "any", false, false, false, 131)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
|
|
// line 132
|
|
yield " <img src=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "avatar_url", [], "any", false, false, false, 132), "html", null, true);
|
|
yield "\" alt=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "display_name", [], "any", false, false, false, 132), "html", null, true);
|
|
yield "\" class=\"rounded-circle\" style=\"width: 25px; height: 25px; object-fit: cover; margin-right: 5px;\">
|
|
";
|
|
} else {
|
|
// line 134
|
|
yield " <i class=\"bi bi-person\"></i>
|
|
";
|
|
}
|
|
// line 136
|
|
yield " ";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "display_name", [], "any", false, false, false, 136), "html", null, true);
|
|
yield "
|
|
</a>
|
|
<ul class=\"dropdown-menu dropdown-menu-end\" aria-labelledby=\"navbarDropdown\">
|
|
<li><a class=\"dropdown-item\" href=\"";
|
|
// line 139
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("profile"), "html", null, true);
|
|
yield "\">";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.profile.title"), "html", null, true);
|
|
yield "</a></li>
|
|
<li><hr class=\"dropdown-divider\" /></li>
|
|
<li><a class=\"dropdown-item\" href=\"";
|
|
// line 141
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("logout"), "html", null, true);
|
|
yield "\">";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("auth.logout"), "html", null, true);
|
|
yield "</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
";
|
|
}
|
|
// line 146
|
|
yield " </nav>
|
|
|
|
<div id=\"layoutSidenav\">
|
|
<div id=\"layoutSidenav_nav\">
|
|
";
|
|
// line 150
|
|
yield from $this->unwrap()->yieldBlock('sidebar', $context, $blocks);
|
|
// line 153
|
|
yield " </div>
|
|
|
|
<div id=\"layoutSidenav_content\">
|
|
<main>
|
|
<div class=\"container-fluid px-4\">
|
|
";
|
|
// line 158
|
|
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
|
|
// line 161
|
|
yield " </div>
|
|
</main>
|
|
|
|
<footer class=\"py-4 bg-light mt-auto\">
|
|
<div class=\"container-fluid px-4\">
|
|
<div class=\"d-flex align-items-center justify-content-between small\">
|
|
<div class=\"text-muted\">
|
|
Copyright © ";
|
|
// line 168
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["platformName"] ?? null), "html", null, true);
|
|
yield " ";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "Y"), "html", null, true);
|
|
yield "
|
|
|
|
|
Desenvolvido com <a href=\"https://syscms.syspanel.com.br\" target=\"_blank\">SysCMS 2026</a>
|
|
</div>
|
|
<div>
|
|
<a href=\"/user_terms.html\" target=\"_blank\">";
|
|
// line 173
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.footer.terms"), "html", null, true);
|
|
yield "</a>
|
|
·
|
|
<a href=\"/eula.html\" target=\"_blank\">";
|
|
// line 175
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.footer.eula"), "html", null, true);
|
|
yield "</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Bootstrap JS -->
|
|
<script src=\"";
|
|
// line 184
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('asset_url')->getCallable()("js/bootstrap.bundle.min.js"), "html", null, true);
|
|
yield "\"></script>
|
|
|
|
<!-- SB Admin Custom JS -->
|
|
<script src=\"";
|
|
// line 187
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('asset_url')->getCallable()("js/sb-admin.js"), "html", null, true);
|
|
yield "\"></script>
|
|
|
|
<!-- DataTables JS -->
|
|
<script src=\"https://code.jquery.com/jquery-3.7.0.js\"></script>
|
|
<script src=\"https://cdn.datatables.net/1.13.7/js/jquery.dataTables.min.js\"></script>
|
|
<script src=\"https://cdn.datatables.net/1.13.7/js/dataTables.bootstrap5.min.js\"></script>
|
|
|
|
<!-- Quill Editor JS (se habilitado) -->
|
|
<script src=\"https://cdn.quilljs.com/1.3.6/quill.js\"></script>
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
var editorContainer = document.getElementById('quill-editor');
|
|
if (editorContainer) {
|
|
var quill = new Quill('#quill-editor', {
|
|
theme: 'snow',
|
|
modules: {
|
|
toolbar: [
|
|
['bold', 'italic', 'underline', 'strike'],
|
|
['blockquote', 'code-block'],
|
|
[{ 'header': 1 }, { 'header': 2 }],
|
|
[{ 'list': 'ordered'}, { 'list': 'bullet' }],
|
|
[{ 'script': 'sub'}, { 'script': 'super' }],
|
|
[{ 'indent': '-1'}, { 'indent': '+1' }],
|
|
[{ 'direction': 'rtl' }],
|
|
[{ 'size': ['small', false, 'large', 'huge'] }],
|
|
[{ 'header': [1, 2, 3, 4, 5, 6, false] }],
|
|
[{ 'color': [] }, { 'background': [] }],
|
|
[{ 'font': [] }],
|
|
[{ 'align': [] }],
|
|
['clean'],
|
|
['link', 'image', 'video']
|
|
]
|
|
}
|
|
});
|
|
|
|
// Sync with hidden textarea
|
|
var targetId = editorContainer.getAttribute('data-target');
|
|
var targetInput = targetId ? document.getElementById(targetId) : null;
|
|
|
|
// Fallback: try to find a hidden textarea next to the editor
|
|
if (!targetInput) {
|
|
targetInput = editorContainer.nextElementSibling;
|
|
if (targetInput && targetInput.tagName !== 'TEXTAREA') {
|
|
targetInput = null;
|
|
}
|
|
}
|
|
|
|
if (targetInput) {
|
|
quill.on('text-change', function() {
|
|
targetInput.value = quill.root.innerHTML;
|
|
});
|
|
|
|
var form = editorContainer.closest('form');
|
|
if (form) {
|
|
form.addEventListener('submit', function() {
|
|
targetInput.value = quill.root.innerHTML;
|
|
});
|
|
}
|
|
}
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<!-- Lightbox2 JS -->
|
|
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.4/js/lightbox.min.js\"></script>
|
|
<script>
|
|
lightbox.option({
|
|
'resizeDuration': 200,
|
|
'wrapAround': true,
|
|
'showImageNumberLabel': true,
|
|
'imageFadeDuration': 300
|
|
});
|
|
</script>
|
|
|
|
";
|
|
// line 261
|
|
yield from $this->unwrap()->yieldBlock('scripts', $context, $blocks);
|
|
// line 262
|
|
yield "</body>
|
|
</html>
|
|
";
|
|
yield from [];
|
|
}
|
|
|
|
// line 6
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_title(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["platformName"] ?? null), "html", null, true);
|
|
yield " - Dashboard";
|
|
yield from [];
|
|
}
|
|
|
|
// line 49
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_head(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
yield from [];
|
|
}
|
|
|
|
// line 150
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_sidebar(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
// line 151
|
|
yield " ";
|
|
yield from $this->load("partials/sidebar.twig", 151)->unwrap()->yield($context);
|
|
// line 152
|
|
yield " ";
|
|
yield from [];
|
|
}
|
|
|
|
// line 158
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_content(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
// line 159
|
|
yield " <!-- Main content will be injected here -->
|
|
";
|
|
yield from [];
|
|
}
|
|
|
|
// line 261
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_scripts(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
yield from [];
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getTemplateName(): string
|
|
{
|
|
return "layouts/dashboard.twig";
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function isTraitable(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getDebugInfo(): array
|
|
{
|
|
return array ( 576 => 261, 570 => 159, 563 => 158, 558 => 152, 555 => 151, 548 => 150, 538 => 49, 526 => 6, 519 => 262, 517 => 261, 440 => 187, 434 => 184, 422 => 175, 417 => 173, 407 => 168, 398 => 161, 396 => 158, 389 => 153, 387 => 150, 381 => 146, 371 => 141, 364 => 139, 357 => 136, 353 => 134, 345 => 132, 343 => 131, 339 => 129, 337 => 128, 334 => 127, 331 => 126, 328 => 125, 322 => 124, 312 => 121, 308 => 119, 305 => 118, 302 => 117, 299 => 116, 295 => 115, 292 => 114, 289 => 113, 286 => 112, 283 => 111, 280 => 110, 277 => 109, 274 => 108, 271 => 107, 268 => 106, 265 => 105, 262 => 104, 259 => 103, 257 => 102, 254 => 101, 251 => 100, 248 => 99, 245 => 98, 242 => 97, 239 => 95, 236 => 94, 233 => 93, 230 => 92, 227 => 91, 222 => 90, 219 => 89, 216 => 88, 213 => 86, 207 => 85, 198 => 81, 194 => 80, 191 => 79, 188 => 78, 184 => 77, 180 => 76, 176 => 75, 173 => 74, 170 => 73, 166 => 72, 159 => 70, 154 => 67, 152 => 66, 144 => 60, 136 => 58, 128 => 56, 126 => 55, 122 => 54, 116 => 50, 114 => 49, 77 => 14, 71 => 12, 65 => 10, 63 => 9, 57 => 6, 50 => 2, 47 => 1,);
|
|
}
|
|
|
|
public function getSourceContext(): Source
|
|
{
|
|
return new Source("", "layouts/dashboard.twig", "/app/templates/layouts/dashboard.twig");
|
|
}
|
|
}
|