545 lines
28 KiB
PHP
Executable File
545 lines
28 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;
|
|
|
|
/* dashboard/index.twig */
|
|
class __TwigTemplate_83deae6ddcf0e0d5f7be1131d559f77e 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->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<null|scalar|\Stringable>
|
|
*/
|
|
public function block_title(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.title"), "html", null, true);
|
|
yield " - ";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["platformName"] ?? null), "html", null, true);
|
|
yield from [];
|
|
}
|
|
|
|
// line 5
|
|
/**
|
|
* @return iterable<null|scalar|\Stringable>
|
|
*/
|
|
public function block_content(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
// line 6
|
|
yield "<div class=\"d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom\">
|
|
<h1 class=\"h2\">";
|
|
// line 7
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.title"), "html", null, true);
|
|
yield "</h1>
|
|
<div class=\"btn-toolbar mb-2 mb-md-0\">
|
|
<div class=\"btn-group me-2\">
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
";
|
|
// line 16
|
|
if ((($tmp = ($context["seo_pending"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
|
|
// line 17
|
|
yield "<div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
|
|
<strong><i class=\"bi bi-exclamation-triangle-fill\"></i> ";
|
|
// line 18
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.seo_warning_title"), "html", null, true);
|
|
yield "</strong> ";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.seo_warning_message"), "html", null, true);
|
|
yield "
|
|
<a href=\"";
|
|
// line 19
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("admin/system/install-seo"), "html", null, true);
|
|
yield "\" class=\"btn btn-warning btn-sm ms-2\">";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.seo_install_repair_button"), "html", null, true);
|
|
yield "</a>
|
|
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\"></button>
|
|
</div>
|
|
";
|
|
}
|
|
// line 23
|
|
yield "
|
|
";
|
|
// line 24
|
|
if ((($tmp = ($context["cache_cleared"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
|
|
// line 25
|
|
yield "<div class=\"alert alert-success alert-dismissible fade show\" role=\"alert\">
|
|
<strong>";
|
|
// line 26
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.cache_cleared_title"), "html", null, true);
|
|
yield "</strong> ";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.cache_cleared_message", ["files" => ($context["deleted_count"] ?? null), "opcache" => (((($tmp = ($context["opcache_cleared"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getFunction('__')->getCallable()("dashboard.yes")) : ($this->env->getFunction('__')->getCallable()("dashboard.no")))]), "html", null, true);
|
|
yield "
|
|
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\"></button>
|
|
</div>
|
|
";
|
|
}
|
|
// line 30
|
|
yield "
|
|
";
|
|
// line 31
|
|
if ((($tmp = ($context["seo_pending"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
|
|
// line 32
|
|
yield "<div class=\"alert alert-warning alert-dismissible fade show\" role=\"alert\">
|
|
<strong><i class=\"bi bi-exclamation-triangle-fill\"></i> ";
|
|
// line 33
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.seo_warning_title"), "html", null, true);
|
|
yield "</strong> ";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.seo_missing_message"), "html", null, true);
|
|
yield "
|
|
<a href=\"";
|
|
// line 34
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("admin/system/install-seo"), "html", null, true);
|
|
yield "\" class=\"btn btn-warning btn-sm ms-2\">";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.seo_install_button"), "html", null, true);
|
|
yield "</a>
|
|
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\"></button>
|
|
</div>
|
|
";
|
|
}
|
|
// line 38
|
|
yield "
|
|
<!-- Syspanel Ad Section -->
|
|
<div class=\"row mb-4\">
|
|
<div class=\"col-12\">
|
|
<div class=\"card border-0 shadow-lg overflow-hidden\" style=\"border-radius: 24px; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); transition: transform 0.3s ease;\">
|
|
<div class=\"card-body p-0\">
|
|
<div class=\"row g-0 align-items-center\">
|
|
<div class=\"col-lg-7 p-4 p-md-5\">
|
|
<div class=\"d-inline-flex align-items-center px-3 py-1 rounded-pill mb-4\" style=\"background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2);\">
|
|
<span class=\"text-primary fw-bold small\"><i class=\"bi bi-rocket-takeoff-fill me-2\"></i> Syspanel Enterprise</span>
|
|
</div>
|
|
<h2 class=\"display-4 fw-bold text-white mb-4\">Conheça também os outros <span style=\"background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent;\">serviços Syspanel</span></h2>
|
|
<p class=\"lead text-light opacity-75 mb-4 fs-5\">
|
|
A solução definitiva para empresas que buscam excelência operacional, automação inteligente e crescimento escalável. Tudo o que você precisa em uma única plataforma.
|
|
</p>
|
|
<div class=\"row g-4 mb-5 text-light\">
|
|
<div class=\"col-md-6\">
|
|
<div class=\"d-flex align-items-start gap-3\">
|
|
<div class=\"rounded-circle bg-primary bg-opacity-10 p-2\">
|
|
<i class=\"bi bi-speedometer2 text-primary fs-4\"></i>
|
|
</div>
|
|
<div>
|
|
<h6 class=\"fw-bold mb-1\">Performance Ultra-Rápida</h6>
|
|
<p class=\"small opacity-75 mb-0\">Decisões em tempo real com dados precisos.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class=\"col-md-6\">
|
|
<div class=\"d-flex align-items-start gap-3\">
|
|
<div class=\"rounded-circle bg-primary bg-opacity-10 p-2\">
|
|
<i class=\"bi bi-shield-check text-primary fs-4\"></i>
|
|
</div>
|
|
<div>
|
|
<h6 class=\"fw-bold mb-1\">Segurança Avançada</h6>
|
|
<p class=\"small opacity-75 mb-0\">Proteção de dados de nível corporativo.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class=\"d-flex flex-wrap gap-3\">
|
|
<a href=\"https://home.syspanel.com.br\" target=\"_blank\" class=\"btn btn-primary btn-lg px-5 py-3 fw-bold shadow-sm\" style=\"border-radius: 16px; background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); border: none;\">
|
|
Começar Agora <i class=\"bi bi-arrow-right ms-2\"></i>
|
|
</a>
|
|
<a href=\"https://home.syspanel.com.br/contato\" target=\"_blank\" class=\"btn btn-outline-light btn-lg px-5 py-3 fw-bold\" style=\"border-radius: 16px;\">
|
|
Falar com Especialista
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class=\"col-lg-5 d-none d-lg-block position-relative\">
|
|
<div class=\"h-100\" style=\"min-height: 500px; background: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&q=80&w=1000') center/cover;\">
|
|
<div class=\"position-absolute top-0 start-0 w-100 h-100\" style=\"background: linear-gradient(to right, #0f172a, transparent);\"></div>
|
|
<div class=\"position-absolute bottom-0 start-0 p-5 w-100\">
|
|
<div class=\"glass-card p-4 rounded-4\" style=\"background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1);\">
|
|
<div class=\"d-flex align-items-center gap-4\">
|
|
<div class=\"p-3 bg-white bg-opacity-10 rounded-3\">
|
|
<i class=\"bi bi-graph-up text-white fs-3\"></i>
|
|
</div>
|
|
<div>
|
|
<div class=\"text-white fw-bold fs-5\">+250%</div>
|
|
<div class=\"text-light small opacity-75\">Aumento em produtividade média</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Statistics Cards -->
|
|
<div class=\"row\">
|
|
";
|
|
// line 112
|
|
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "role", [], "any", false, false, false, 112) == "super_admin")) {
|
|
// line 113
|
|
yield " <div class=\"col-xl-3 col-md-6 mb-4\">
|
|
<div class=\"card bg-primary text-white mb-4\">
|
|
<div class=\"card-body\">
|
|
<div class=\"row no-gutters align-items-center\">
|
|
<div class=\"col mr-2\">
|
|
<div class=\"small text-white-50 text-uppercase mb-1\">
|
|
";
|
|
// line 119
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.total_companies"), "html", null, true);
|
|
yield "</div>
|
|
<div class=\"h5 mb-0 font-weight-bold text-white\">";
|
|
// line 120
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["stats"] ?? null), "total_companies", [], "any", false, false, false, 120), "html", null, true);
|
|
yield "</div>
|
|
</div>
|
|
<div class=\"col-auto\">
|
|
<i class=\"bi bi-building fs-2 text-white-50\"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class=\"col-xl-3 col-md-6 mb-4\">
|
|
<div class=\"card bg-success text-white mb-4\">
|
|
<div class=\"card-body\">
|
|
<div class=\"row no-gutters align-items-center\">
|
|
<div class=\"col mr-2\">
|
|
<div class=\"small text-white-50 text-uppercase mb-1\">
|
|
";
|
|
// line 136
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.active_companies"), "html", null, true);
|
|
yield "</div>
|
|
<div class=\"h5 mb-0 font-weight-bold text-white\">";
|
|
// line 137
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["stats"] ?? null), "active_companies", [], "any", false, false, false, 137), "html", null, true);
|
|
yield "</div>
|
|
</div>
|
|
<div class=\"col-auto\">
|
|
<i class=\"bi bi-check-circle-fill fs-2 text-white-50\"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class=\"col-xl-3 col-md-6 mb-4\">
|
|
<div class=\"card bg-info text-white mb-4\">
|
|
<div class=\"card-body\">
|
|
<div class=\"row no-gutters align-items-center\">
|
|
<div class=\"col mr-2\">
|
|
<div class=\"small text-white-50 text-uppercase mb-1\">
|
|
";
|
|
// line 153
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.total_users"), "html", null, true);
|
|
yield "</div>
|
|
<div class=\"h5 mb-0 font-weight-bold text-white\">";
|
|
// line 154
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["stats"] ?? null), "total_users", [], "any", false, false, false, 154), "html", null, true);
|
|
yield "</div>
|
|
</div>
|
|
<div class=\"col-auto\">
|
|
<i class=\"bi bi-people-fill fs-2 text-white-50\"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class=\"col-xl-3 col-md-6 mb-4\">
|
|
<div class=\"card bg-warning text-white mb-4\">
|
|
<div class=\"card-body\">
|
|
<div class=\"row no-gutters align-items-center\">
|
|
<div class=\"col mr-2\">
|
|
<div class=\"small text-white-50 text-uppercase mb-1\">
|
|
";
|
|
// line 170
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.active_users"), "html", null, true);
|
|
yield "</div>
|
|
<div class=\"h5 mb-0 font-weight-bold text-white\">";
|
|
// line 171
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["stats"] ?? null), "active_users", [], "any", false, false, false, 171), "html", null, true);
|
|
yield "</div>
|
|
</div>
|
|
<div class=\"col-auto\">
|
|
<i class=\"bi bi-person-check fs-2 text-white-50\"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
";
|
|
}
|
|
// line 181
|
|
yield "</div>
|
|
|
|
<!-- Widgets Section -->
|
|
";
|
|
// line 184
|
|
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["widgets"] ?? null)) > 0)) {
|
|
// line 185
|
|
yield "<div class=\"row\">
|
|
";
|
|
// line 186
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = CoreExtension::ensureTraversable(($context["widgets"] ?? null));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["widget"]) {
|
|
// line 187
|
|
yield " <div class=\"col-lg-6 mb-4\">
|
|
";
|
|
// line 188
|
|
yield $context["widget"];
|
|
yield "
|
|
</div>
|
|
";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_key'], $context['widget'], $context['_parent']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 191
|
|
yield "</div>
|
|
";
|
|
}
|
|
// line 193
|
|
yield "
|
|
<!-- Recent Activity -->
|
|
<div class=\"card shadow mb-4\">
|
|
<div class=\"card-header py-3\">
|
|
<h6 class=\"m-0 font-weight-bold text-primary\">";
|
|
// line 197
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.recent_activity"), "html", null, true);
|
|
yield "</h6>
|
|
</div>
|
|
<div class=\"card-body\">
|
|
";
|
|
// line 200
|
|
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["recent_activity"] ?? null)) > 0)) {
|
|
// line 201
|
|
yield " <div class=\"table-responsive\">
|
|
<table class=\"table table-bordered\" width=\"100%\" cellspacing=\"0\">
|
|
<thead>
|
|
<tr>
|
|
<th>";
|
|
// line 205
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.activity.user"), "html", null, true);
|
|
yield "</th>
|
|
<th>";
|
|
// line 206
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.activity.action"), "html", null, true);
|
|
yield "</th>
|
|
<th>";
|
|
// line 207
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.activity.resource"), "html", null, true);
|
|
yield "</th>
|
|
<th>";
|
|
// line 208
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.activity.date"), "html", null, true);
|
|
yield "</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
";
|
|
// line 212
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = CoreExtension::ensureTraversable(($context["recent_activity"] ?? null));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["activity"]) {
|
|
// line 213
|
|
yield " <tr>
|
|
<td>";
|
|
// line 214
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "user_name", [], "any", false, false, false, 214), "html", null, true);
|
|
yield "</td>
|
|
<td>
|
|
<span class=\"badge badge-";
|
|
// line 216
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "action_color", [], "any", true, true, false, 216)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "action_color", [], "any", false, false, false, 216), "secondary")) : ("secondary")), "html", null, true);
|
|
yield "\">
|
|
";
|
|
// line 217
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()(("dashboard.activity." . CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "action", [], "any", false, false, false, 217))), "html", null, true);
|
|
yield "
|
|
</span>
|
|
</td>
|
|
<td>";
|
|
// line 220
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "resource_type", [], "any", false, false, false, 220), "html", null, true);
|
|
yield " #";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "resource_id", [], "any", false, false, false, 220), "html", null, true);
|
|
yield "</td>
|
|
<td>";
|
|
// line 221
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "created_at", [], "any", false, false, false, 221), "d/m/Y H:i"), "html", null, true);
|
|
yield "</td>
|
|
</tr>
|
|
";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_key'], $context['activity'], $context['_parent']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 224
|
|
yield " </tbody>
|
|
</table>
|
|
</div>
|
|
";
|
|
} else {
|
|
// line 228
|
|
yield " <p class=\"text-muted\">";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.no_recent_activity"), "html", null, true);
|
|
yield "</p>
|
|
";
|
|
}
|
|
// line 230
|
|
yield " </div>
|
|
</div>
|
|
|
|
<!-- Welcome Message -->
|
|
<div class=\"row\">
|
|
<div class=\"col-lg-12\">
|
|
<div class=\"card shadow mb-4\">
|
|
<div class=\"card-header py-3\">
|
|
<h6 class=\"m-0 font-weight-bold text-primary\">";
|
|
// line 238
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.welcome", ["platformName" => ($context["platformName"] ?? null)]), "html", null, true);
|
|
yield "</h6>
|
|
</div>
|
|
<div class=\"card-body\">
|
|
<p>";
|
|
// line 241
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.welcome_message", ["name" => CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "name", [], "any", false, false, false, 241)]), "html", null, true);
|
|
yield "</p>
|
|
|
|
";
|
|
// line 243
|
|
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "role", [], "any", false, false, false, 243) == "super_admin")) {
|
|
// line 244
|
|
yield " <div class=\"alert alert-info\">
|
|
<i class=\"bi bi-info-circle\"></i>
|
|
";
|
|
// line 246
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.super_admin_info"), "html", null, true);
|
|
yield "
|
|
<a href=\"";
|
|
// line 247
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("admin/modules/install"), "html", null, true);
|
|
yield "\" class=\"btn btn-sm btn-primary ms-2\">
|
|
<i class=\"bi bi-upload\"></i> ";
|
|
// line 248
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.install_module"), "html", null, true);
|
|
yield "
|
|
</a>
|
|
</div>
|
|
";
|
|
}
|
|
// line 252
|
|
yield "
|
|
";
|
|
// line 253
|
|
if (((CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "role", [], "any", false, false, false, 253) == "admin") || (CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "role", [], "any", false, false, false, 253) == "user"))) {
|
|
// line 254
|
|
yield " <div class=\"alert alert-success\">
|
|
<i class=\"bi bi-shield-check\"></i>
|
|
";
|
|
// line 256
|
|
yield (((CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "role", [], "any", false, false, false, 256) == "admin")) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.admin_info"), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.user_info"), "html", null, true)));
|
|
yield "
|
|
</div>
|
|
";
|
|
}
|
|
// line 259
|
|
yield "
|
|
<div class=\"mt-3\">
|
|
<a href=\"";
|
|
// line 261
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("profile"), "html", null, true);
|
|
yield "\" class=\"btn btn-primary btn-sm\">
|
|
<i class=\"bi bi-person\"></i> ";
|
|
// line 262
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.edit_profile"), "html", null, true);
|
|
yield "
|
|
</a>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
";
|
|
yield from [];
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getTemplateName(): string
|
|
{
|
|
return "dashboard/index.twig";
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function isTraitable(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getDebugInfo(): array
|
|
{
|
|
return array ( 502 => 262, 498 => 261, 494 => 259, 488 => 256, 484 => 254, 482 => 253, 479 => 252, 472 => 248, 468 => 247, 464 => 246, 460 => 244, 458 => 243, 453 => 241, 447 => 238, 437 => 230, 431 => 228, 425 => 224, 416 => 221, 410 => 220, 404 => 217, 400 => 216, 395 => 214, 392 => 213, 388 => 212, 381 => 208, 377 => 207, 373 => 206, 369 => 205, 363 => 201, 361 => 200, 355 => 197, 349 => 193, 345 => 191, 336 => 188, 333 => 187, 329 => 186, 326 => 185, 324 => 184, 319 => 181, 306 => 171, 302 => 170, 283 => 154, 279 => 153, 260 => 137, 256 => 136, 237 => 120, 233 => 119, 225 => 113, 223 => 112, 147 => 38, 138 => 34, 132 => 33, 129 => 32, 127 => 31, 124 => 30, 115 => 26, 112 => 25, 110 => 24, 107 => 23, 98 => 19, 92 => 18, 89 => 17, 87 => 16, 75 => 7, 72 => 6, 65 => 5, 52 => 3, 41 => 1,);
|
|
}
|
|
|
|
public function getSourceContext(): Source
|
|
{
|
|
return new Source("", "dashboard/index.twig", "/app/templates/dashboard/index.twig");
|
|
}
|
|
}
|