<?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;
/* layout/backEndLayout.html.twig */
class __TwigTemplate_a7f122802e91a8eb3f52c0237fc0e32b 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 = [
'stylesheets' => [$this, 'block_stylesheets'],
'title' => [$this, 'block_title'],
'main' => [$this, 'block_main'],
'sidebar' => [$this, 'block_sidebar'],
'identification' => [$this, 'block_identification'],
'menu' => [$this, 'block_menu'],
'header' => [$this, 'block_header'],
'content' => [$this, 'block_content'],
'footer' => [$this, 'block_footer'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "layout/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout/backEndLayout.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout/backEndLayout.html.twig"));
$this->parent = $this->load("layout/base.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 4
yield " ";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
<link href=\"";
// line 5
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/grasp_mobile_progress_circle-1.0.0.min.js"), "html", null, true);
yield "\" rel=\"stylesheet\" type=\"text/css\" />
<link href=\"";
// line 6
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/jquery.mCustomScrollbar.css"), "html", null, true);
yield "\" rel=\"stylesheet\" type=\"text/css\" />
<link rel=\"stylesheet\" href=\"";
// line 7
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/style.blue.css"), "html", null, true);
yield "\">
<link rel=\"stylesheet\" href=\"";
// line 8
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/jquery.mCustomScrollbar.css"), "html", null, true);
yield "\">
<link rel=\"stylesheet\" href=\"";
// line 9
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.css"), "html", null, true);
yield "\">
<style>
/* Sidebar */
.side-navbar {
position: fixed;
top: 0;
left: 0;
width: 220px;
height: 100vh;
background: #2f3e47;
color: white;
overflow-y: auto;
transition: all 0.3s ease;
z-index: 999;
}
.side-navbar a { color: #d1d4d6; display:block; padding:10px 15px; }
.side-navbar a:hover { background:#1e2a31; color:white; }
.sidenav-header img { width:70px; border-radius:50%; margin-bottom:10px; }
/* Collapsed sidebar (mobile) */
.side-navbar.collapsed {
left: -220px;
}
/* Content */
.flex-grow-1 {
margin-left: 220px;
transition: margin 0.3s ease;
}
.side-navbar.collapsed ~ .flex-grow-1 {
margin-left: 0;
}
/* Header */
.header { background:white; border-bottom:1px solid #eee; padding:10px 20px; display:flex; justify-content:space-between; align-items:center; }
/* Dashboard cards */
.dashboard-card { background:white; border-radius:8px; padding:15px; box-shadow:0 2px 6px rgba(0,0,0,0.1); text-align:center; }
.dashboard-card i { font-size:2em; margin-bottom:5px; }
/* Toggle button */
#toggle-btn { font-size:1.3em; cursor:pointer; color:#2f3e47; }
/* Responsive */
@media (max-width: 768px) {
.flex-grow-1 { margin-left: 0; }
.side-navbar { left: -220px; }
.side-navbar.collapsed { left: 0; }
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 62
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 63
yield " ";
yield from $this->yieldParentBlock("title", $context, $blocks);
yield " / Administration
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 66
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_main(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 67
yield "<div class=\"d-flex\">
";
// line 70
yield " ";
yield from $this->unwrap()->yieldBlock('sidebar', $context, $blocks);
// line 288
yield "
<div class=\"page home-page\">
";
// line 290
yield from $this->unwrap()->yieldBlock('header', $context, $blocks);
// line 306
yield "
<section class=\"container-fluid mt-4\">
";
// line 308
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 309
yield " <div class=\"row mb-4\">
<div class=\"col-md-3\">
<div class=\"dashboard-card text-center\">
<i class=\"fa fa-graduation-cap text-primary\"></i>
<h4>";
// line 313
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\StatExtension']->students(), "html", null, true);
yield "</h4>
<p>Élèves</p>
</div>
</div>
<div class=\"col-md-3\">
<div class=\"dashboard-card text-center\">
<i class=\"fa fa-users text-success\"></i>
<h4>";
// line 320
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\StatExtension']->teachers(), "html", null, true);
yield "</h4>
<p>Enseignants</p>
</div>
</div>
<div class=\"col-md-3\">
<div class=\"dashboard-card text-center\">
<i class=\"fa fa-home text-warning\"></i>
<h4>";
// line 327
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\StatExtension']->rooms(), "html", null, true);
yield "</h4>
<p>Classes</p>
</div>
</div>
<div class=\"col-md-3\">
<select class=\"form-control\" id=\"select_year\">
";
// line 333
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::reverse($this->env->getCharset(), $this->extensions['App\Twig\AppExtension']->years()));
foreach ($context['_seq'] as $context["_key"] => $context["year"]) {
// line 334
yield " <option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["year"], "id", [], "any", false, false, false, 334), "html", null, true);
yield "\" ";
if ((CoreExtension::getAttribute($this->env, $this->source, 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.', 334, $this->source); })()), "session", [], "any", false, false, false, 334), "get", ["session_school_year"], "method", false, false, false, 334) == CoreExtension::getAttribute($this->env, $this->source, $context["year"], "id", [], "any", false, false, false, 334))) {
yield "selected";
}
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["year"], "code", [], "any", false, false, false, 334), "html", null, true);
yield "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['year'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 336
yield " </select>
</div>
</div>
";
}
// line 340
yield "
";
// line 341
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
// line 342
yield " </section>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 70
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_sidebar(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar"));
// line 71
yield " <nav class=\"side-navbar\">
<div class=\"side-navbar-wrapper\">
";
// line 73
yield from $this->unwrap()->yieldBlock('identification', $context, $blocks);
// line 92
yield "
";
// line 93
yield from $this->unwrap()->yieldBlock('menu', $context, $blocks);
// line 285
yield " </div>
</nav>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 73
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_identification(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "identification"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "identification"));
// line 74
yield " <div class=\"sidenav-header d-flex align-items-center justify-content-center\">
<div class=\"sidenav-header-inner text-center\">
<img src=";
// line 76
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
yield " \"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, 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.', 76, $this->source); })()), "user", [], "any", false, false, false, 76), "avatar", [75], "method", false, false, false, 76), "html", null, true);
yield "\" ";
} else {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/avatar-2.jpg"), "html", null, true);
yield " ";
}
yield " class=\"img-fluid rounded-circle\" alt=\"user-avatar\">
<h2 class=\"h5 text-uppercase\"></h2>
<span class=\"text-uppercase\">
";
// line 79
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 80
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, 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.', 80, $this->source); })()), "user", [], "any", false, false, false, 80), "username", [], "any", false, false, false, 80), "html", null, true);
yield "
";
}
// line 82
yield " </span>
</div>
<div class=\"sidenav-header-logo\">
<a href=\"index.html\" class=\"brand-small text-center\">
<strong></strong>
<strong class=\"text-primary\">D</strong>
</a>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 93
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_menu(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
// line 94
yield " <div class=\"main-menu\">
<ul id=\"side-main-menu\" class=\"side-menu list-unstyled\">
";
// line 96
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 97
yield " <li class=\"";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 97, $this->source); })()), "request", [], "any", false, false, false, 97), "attributes", [], "any", false, false, false, 97), "get", ["_route"], "method", false, false, false, 97) == "admin_school_years")) {
yield "active";
}
yield "\">
<a href=\"";
// line 98
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_school_years");
yield "\">
<i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>
<span>Années scolaires</span>
</a>
</li>
<li class=\"";
// line 103
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 103, $this->source); })()), "request", [], "any", false, false, false, 103), "attributes", [], "any", false, false, false, 103), "get", ["_route"], "method", false, false, false, 103) == "admin_quaters")) {
yield "active";
}
yield "\">
<a href=\"";
// line 104
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_quaters");
yield "\">
<i class=\"fa fa-calendar-check-o\" aria-hidden=\"true\"></i>
<span>Trimestres</span>
</a>
</li>
<li class=\"";
// line 109
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 109, $this->source); })()), "request", [], "any", false, false, false, 109), "attributes", [], "any", false, false, false, 109), "get", ["_route"], "method", false, false, false, 109) == "admin_sequences")) {
yield "active";
}
yield "\">
<a href=\"";
// line 110
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_sequences");
yield "\">
<i class=\"fa fa-calendar-minus-o\" aria-hidden=\"true\"></i>
<span>Séquences</span>
</a>
</li>
<li class=\"";
// line 115
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 115, $this->source); })()), "request", [], "any", false, false, false, 115), "attributes", [], "any", false, false, false, 115), "get", ["_route"], "method", false, false, false, 115) == "admin_programs")) {
yield "active";
}
yield "\">
<a href=\"";
// line 116
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_programs");
yield "\">
<i class=\"fa fa-table\" aria-hidden=\"true\"></i>
<span>Programmes</span>
</a>
</li>
<li class=\"";
// line 121
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 121, $this->source); })()), "request", [], "any", false, false, false, 121), "attributes", [], "any", false, false, false, 121), "get", ["_route"], "method", false, false, false, 121) == "admin_sections")) {
yield "active";
}
yield "\">
<a href=\"";
// line 122
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_sections");
yield "\">
<i class=\"fa fa-th-large\" aria-hidden=\"true\"></i>
<span>Sections</span>
</a>
</li>
<li class=\"";
// line 127
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 127, $this->source); })()), "request", [], "any", false, false, false, 127), "attributes", [], "any", false, false, false, 127), "get", ["_route"], "method", false, false, false, 127) == "admin_cycles")) {
yield "active";
}
yield "\">
<a href=\"";
// line 128
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_cycles");
yield "\">
<i class=\"fa fa-th-list\" aria-hidden=\"true\"></i>
<span>Cycles</span>
</a>
</li>
<li class=\"";
// line 133
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 133, $this->source); })()), "request", [], "any", false, false, false, 133), "attributes", [], "any", false, false, false, 133), "get", ["_route"], "method", false, false, false, 133) == "admin_levels")) {
yield "active";
}
yield "\">
<a href=\"";
// line 134
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_levels");
yield "\">
<i class=\"fa fa-list-ul\" aria-hidden=\"true\"></i>
<span>Niveaux</span>
</a>
</li>
<li class=\"";
// line 139
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 139, $this->source); })()), "request", [], "any", false, false, false, 139), "attributes", [], "any", false, false, false, 139), "get", ["_route"], "method", false, false, false, 139) == "admin_classrooms")) {
yield "active";
}
yield "\">
<a href=\"";
// line 140
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms");
yield "\">
<i class=\"fa fa-indent\" aria-hidden=\"true\"></i>
<span>Classes</span>
</a>
</li>
<li class=\"";
// line 145
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 145, $this->source); })()), "request", [], "any", false, false, false, 145), "attributes", [], "any", false, false, false, 145), "get", ["_route"], "method", false, false, false, 145) == "admin_modules")) {
yield "active";
}
yield "\">
<a href=\"";
// line 146
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_modules");
yield "\">
<i class=\"fa fa-folder-open-o\" aria-hidden=\"true\"></i>
<span>Module</span>
</a>
</li>
<li class=\"";
// line 151
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 151, $this->source); })()), "request", [], "any", false, false, false, 151), "attributes", [], "any", false, false, false, 151), "get", ["_route"], "method", false, false, false, 151) == "admin_domains")) {
yield "active";
}
yield "\">
<a href=\"";
// line 152
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_domains");
yield "\">
<i class=\"fa fa-user-md\" aria-hidden=\"true\"></i>
<span>Departement.</span>
</a>
</li>
<li class=\"";
// line 157
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 157, $this->source); })()), "request", [], "any", false, false, false, 157), "attributes", [], "any", false, false, false, 157), "get", ["_route"], "method", false, false, false, 157) == "admin_courses")) {
yield "active";
}
yield "\">
<a href=\"";
// line 158
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_courses");
yield "\">
<i class=\"fa fa-book\" aria-hidden=\"true\"></i>
<span>Matières</span>
</a>
</li>
<li class=\"";
// line 163
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 163, $this->source); })()), "request", [], "any", false, false, false, 163), "attributes", [], "any", false, false, false, 163), "get", ["_route"], "method", false, false, false, 163) == "admin_subscriptions")) {
yield "active";
}
yield "\">
<a href=\"";
// line 164
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_subscriptions");
yield "\">
<i class=\"fa fa-exchange\" aria-hidden=\"true\"></i>
<span>Inscriptions</span>
</a>
</li>
<li class=\"";
// line 169
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 169, $this->source); })()), "request", [], "any", false, false, false, 169), "attributes", [], "any", false, false, false, 169), "get", ["_route"], "method", false, false, false, 169) == "admin_students")) {
yield "active";
}
yield "\">
<a href=\"";
// line 170
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_students", ["type" => "new_students_not_yet_registered_checkbox"]);
yield "\">
<i class=\"fa fa-users\"></i>
<span>Eleves</span>
</a>
</li>
<li class=\"";
// line 175
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 175, $this->source); })()), "request", [], "any", false, false, false, 175), "attributes", [], "any", false, false, false, 175), "get", ["_route"], "method", false, false, false, 175) == "admin_attributions")) {
yield "active";
}
yield "\">
<a href=\"";
// line 176
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_attributions");
yield "\">
<i class=\"fa fa-map-signs\" aria-hidden=\"true\"></i>
<span>Attributions</span>
</a>
</li>
<li class=\"";
// line 181
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 181, $this->source); })()), "request", [], "any", false, false, false, 181), "attributes", [], "any", false, false, false, 181), "get", ["_route"], "method", false, false, false, 181) == "admin_users")) {
yield "active";
}
yield "\">
<a href=\"";
// line 182
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_users");
yield "\">
<i class=\"fa fa-user\" aria-hidden=\"true\"></i>
<span>Personnel</span>
</a>
</li>
";
// line 189
yield " ";
// line 190
yield " ";
// line 191
yield "
<li class=\"
";
// line 193
if ((is_string($_v0 = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 193, $this->source); })()), "request", [], "any", false, false, false, 193), "attributes", [], "any", false, false, false, 193), "get", ["_route"], "method", false, false, false, 193)) && is_string($_v1 = "app_finance_") && str_starts_with($_v0, $_v1))) {
// line 194
yield " active
";
}
// line 196
yield " \">
<a href=\"";
// line 197
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_finance_dashboard");
yield "\">
<i class=\"fa fa-money\"></i>
<span>Finances</span>
</a>
<ul class=\"list-unstyled\">
<li class=\"";
// line 204
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 204, $this->source); })()), "request", [], "any", false, false, false, 204), "attributes", [], "any", false, false, false, 204), "get", ["_route"], "method", false, false, false, 204) == "app_finance_dashboard")) {
yield "active";
}
yield "\">
<a href=\"";
// line 205
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_finance_dashboard");
yield "\">
<i class=\"fa fa-dashboard\"></i>
Tableau de bord
</a>
</li>
<li class=\"";
// line 211
if ((is_string($_v2 = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 211, $this->source); })()), "request", [], "any", false, false, false, 211), "attributes", [], "any", false, false, false, 211), "get", ["_route"], "method", false, false, false, 211)) && is_string($_v3 = "app_finance_fee_definition") && str_starts_with($_v2, $_v3))) {
yield "active";
}
yield "\">
<a href=\"";
// line 212
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_finance_fee_definition_index");
yield "\">
<i class=\"fa fa-list-alt\"></i>
Définitions des frais
</a>
</li>
<li class=\"";
// line 218
if ((is_string($_v4 = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 218, $this->source); })()), "request", [], "any", false, false, false, 218), "attributes", [], "any", false, false, false, 218), "get", ["_route"], "method", false, false, false, 218)) && is_string($_v5 = "app_finance_payment_") && str_starts_with($_v4, $_v5))) {
yield "active";
}
yield "\">
<a href=\"";
// line 219
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_finance_payment_list");
yield "\">
<i class=\"fa fa-credit-card\"></i>
Paiements
</a>
</li>
</ul>
</li>
";
// line 229
yield "
<li class=\"";
// line 231
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 231, $this->source); })()), "request", [], "any", false, false, false, 231), "attributes", [], "any", false, false, false, 231), "get", ["_route"], "method", false, false, false, 231) == "financial_scope_index")) {
yield "active";
}
yield "\">
<a href=\"";
// line 232
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("financial_scope_index");
yield "\">
<i class=\"fa fa-hand-holding-usd\" aria-hidden=\"true\"></i>
<span>Financier</span>
</a>
</li>
<li class=\"";
// line 237
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 237, $this->source); })()), "request", [], "any", false, false, false, 237), "attributes", [], "any", false, false, false, 237), "get", ["_route"], "method", false, false, false, 237) == "admin_statistics")) {
yield "active";
}
yield "\">
<a href=\"";
// line 238
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_statistics");
yield "\">
<i class=\"fa fa-area-chart\" aria-hidden=\"true\"></i>
<span>Statistiques</span>
</a>
</li>
";
}
// line 244
yield "
<li class=\"";
// line 245
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 245, $this->source); })()), "request", [], "any", false, false, false, 245), "attributes", [], "any", false, false, false, 245), "get", ["_route"], "method", false, false, false, 245) == "admin_evaluations")) {
yield "active";
}
yield "\">
<a href=\"";
// line 246
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_evaluations");
yield "\">
<i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i>
<span>Evaluations</span>
</a>
</li>
";
// line 252
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_DISCIPLINE")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 253
yield " <li class=\"";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 253, $this->source); })()), "request", [], "any", false, false, false, 253), "attributes", [], "any", false, false, false, 253), "get", ["_route"], "method", false, false, false, 253) == "admin_abscences_sheet_index")) {
yield "active";
}
yield "\">
<a href=\"";
// line 254
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_abscences_sheet_index");
yield "\">
<i class=\"fa fa-exclamation-triangle\" aria-hidden=\"true\"></i>
<span>Discipline</span>
</a>
</li>
";
}
// line 260
yield "
";
// line 261
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_FINANCIAL")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 262
yield " <li class=\"";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 262, $this->source); })()), "request", [], "any", false, false, false, 262), "attributes", [], "any", false, false, false, 262), "get", ["_route"], "method", false, false, false, 262) == "app_payment_index")) {
yield "active";
}
yield "\">
<a href=\"";
// line 263
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_payment_index");
yield "\">
<i class=\"fa fa-credit-card\" aria-hidden=\"true\"></i>
<span>Payment</span>
</a>
</li>
<li class=\"";
// line 268
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 268, $this->source); })()), "request", [], "any", false, false, false, 268), "attributes", [], "any", false, false, false, 268), "get", ["_route"], "method", false, false, false, 268) == "admin_paymentPlans")) {
yield "active";
}
yield "\">
<a href=\"";
// line 269
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_paymentPlans");
yield "\">
<i class=\"fa fa-clock-o\" aria-hidden=\"true\"></i>
<span>Scolarite</span>
</a>
</li>
";
}
// line 275
yield "
<li class=\"";
// line 276
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 276, $this->source); })()), "request", [], "any", false, false, false, 276), "attributes", [], "any", false, false, false, 276), "get", ["_route"], "method", false, false, false, 276) == "app_account")) {
yield "active";
}
yield "\">
<a href=\"";
// line 277
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_account");
yield "\">
<i class=\"fa fa-user-circle\"></i>
<span>Account</span>
</a>
</li>
</ul>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 290
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 291
yield " <header class=\"header d-flex align-items-center justify-content-between\">
<a id=\"toggle-btn\" href=\"#\" class=\"menu-btn\"><i class=\"fa fa-bars\"></i></a>
<a href=\"";
// line 293
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_home");
yield "\" class=\"navbar-brand text-center\">
<strong class=\"text-primary\">SCHOOL MANAGEMENT SYSTEM</strong>
</a>
";
// line 296
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.', 296, $this->source); })()), "user", [], "any", false, false, false, 296)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 297
yield " <a id=\"logout_btn\" href=\"#\" onclick=\"event.preventDefault(); document.getElementById('js-logout-form').submit();\" class=\"btn btn-warning\">
<i class=\"fa fa-sign-out\"></i>
</a>
<form id=\"js-logout-form\" action=\"";
// line 300
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
yield "\" style=\"display:none;\" method=\"POST\">
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 301
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("logout"), "html", null, true);
yield "\">
</form>
";
}
// line 304
yield " </header>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 341
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 349
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_footer(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 351
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 352
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
<script src=\"";
// line 353
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/jquery.cookie.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 354
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/grasp_mobile_progress_circle-1.0.0.min.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 355
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/jquery.validate.min.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 356
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/jquery.mCustomScrollbar.concat.min.js"), "html", null, true);
yield "\"></script>
<script>
// Toggle sidebar menu
\$('#toggle-btn').on('click', function(e) {
e.preventDefault();
\$('.side-navbar').toggleClass('collapsed');
});
// Changement d'année scolaire
\$('#select_year').on('change', function() {
\$.ajax({
type: \"POST\",
url: \"";
// line 369
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("update_school_year");
yield "\",
data: { selectedSchoolYear: \$(this).val() },
success: function(){ location.reload(); },
error: function(e){ console.log(e); alert(\"Echec.\"); }
});
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "layout/backEndLayout.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 984 => 369, 968 => 356, 964 => 355, 960 => 354, 956 => 353, 952 => 352, 939 => 351, 917 => 349, 895 => 341, 883 => 304, 877 => 301, 873 => 300, 868 => 297, 866 => 296, 860 => 293, 856 => 291, 843 => 290, 824 => 277, 818 => 276, 815 => 275, 806 => 269, 800 => 268, 792 => 263, 785 => 262, 783 => 261, 780 => 260, 771 => 254, 764 => 253, 762 => 252, 753 => 246, 747 => 245, 744 => 244, 735 => 238, 729 => 237, 721 => 232, 715 => 231, 711 => 229, 699 => 219, 693 => 218, 684 => 212, 678 => 211, 669 => 205, 663 => 204, 653 => 197, 650 => 196, 646 => 194, 644 => 193, 640 => 191, 638 => 190, 636 => 189, 627 => 182, 621 => 181, 613 => 176, 607 => 175, 599 => 170, 593 => 169, 585 => 164, 579 => 163, 571 => 158, 565 => 157, 557 => 152, 551 => 151, 543 => 146, 537 => 145, 529 => 140, 523 => 139, 515 => 134, 509 => 133, 501 => 128, 495 => 127, 487 => 122, 481 => 121, 473 => 116, 467 => 115, 459 => 110, 453 => 109, 445 => 104, 439 => 103, 431 => 98, 424 => 97, 422 => 96, 418 => 94, 405 => 93, 385 => 82, 379 => 80, 377 => 79, 363 => 76, 359 => 74, 346 => 73, 333 => 285, 331 => 93, 328 => 92, 326 => 73, 322 => 71, 309 => 70, 293 => 342, 291 => 341, 288 => 340, 282 => 336, 267 => 334, 263 => 333, 254 => 327, 244 => 320, 234 => 313, 228 => 309, 226 => 308, 222 => 306, 220 => 290, 216 => 288, 213 => 70, 209 => 67, 196 => 66, 182 => 63, 169 => 62, 106 => 9, 102 => 8, 98 => 7, 94 => 6, 90 => 5, 85 => 4, 72 => 3, 49 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'layout/base.html.twig' %}
{% block stylesheets %}
{{ parent() }}
<link href=\"{{ asset('assets/js/grasp_mobile_progress_circle-1.0.0.min.js') }}\" rel=\"stylesheet\" type=\"text/css\" />
<link href=\"{{ asset('assets/css/jquery.mCustomScrollbar.css') }}\" rel=\"stylesheet\" type=\"text/css\" />
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/style.blue.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/jquery.mCustomScrollbar.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.css') }}\">
<style>
/* Sidebar */
.side-navbar {
position: fixed;
top: 0;
left: 0;
width: 220px;
height: 100vh;
background: #2f3e47;
color: white;
overflow-y: auto;
transition: all 0.3s ease;
z-index: 999;
}
.side-navbar a { color: #d1d4d6; display:block; padding:10px 15px; }
.side-navbar a:hover { background:#1e2a31; color:white; }
.sidenav-header img { width:70px; border-radius:50%; margin-bottom:10px; }
/* Collapsed sidebar (mobile) */
.side-navbar.collapsed {
left: -220px;
}
/* Content */
.flex-grow-1 {
margin-left: 220px;
transition: margin 0.3s ease;
}
.side-navbar.collapsed ~ .flex-grow-1 {
margin-left: 0;
}
/* Header */
.header { background:white; border-bottom:1px solid #eee; padding:10px 20px; display:flex; justify-content:space-between; align-items:center; }
/* Dashboard cards */
.dashboard-card { background:white; border-radius:8px; padding:15px; box-shadow:0 2px 6px rgba(0,0,0,0.1); text-align:center; }
.dashboard-card i { font-size:2em; margin-bottom:5px; }
/* Toggle button */
#toggle-btn { font-size:1.3em; cursor:pointer; color:#2f3e47; }
/* Responsive */
@media (max-width: 768px) {
.flex-grow-1 { margin-left: 0; }
.side-navbar { left: -220px; }
.side-navbar.collapsed { left: 0; }
}
</style>
{% endblock %}
{% block title %}
{{ parent() }} / Administration
{% endblock %}
{% block main %}
<div class=\"d-flex\">
{# Sidebar #}
{% block sidebar %}
<nav class=\"side-navbar\">
<div class=\"side-navbar-wrapper\">
{% block identification %}
<div class=\"sidenav-header d-flex align-items-center justify-content-center\">
<div class=\"sidenav-header-inner text-center\">
<img src={% if is_granted(\"IS_AUTHENTICATED_REMEMBERED\") %} \"{{ app.user.avatar(75) }}\" {% else %} {{ asset(\"img/avatar-2.jpg\") }} {% endif %} class=\"img-fluid rounded-circle\" alt=\"user-avatar\">
<h2 class=\"h5 text-uppercase\"></h2>
<span class=\"text-uppercase\">
{% if is_granted(\"IS_AUTHENTICATED_REMEMBERED\") %}
{{ app.user.username }}
{% endif %}
</span>
</div>
<div class=\"sidenav-header-logo\">
<a href=\"index.html\" class=\"brand-small text-center\">
<strong></strong>
<strong class=\"text-primary\">D</strong>
</a>
</div>
</div>
{% endblock identification %}
{% block menu %}
<div class=\"main-menu\">
<ul id=\"side-main-menu\" class=\"side-menu list-unstyled\">
{% if is_granted('ROLE_ADMIN') %}
<li class=\"{% if app.request.attributes.get('_route') == \"admin_school_years\" %}active{% endif %}\">
<a href=\"{{ path('admin_school_years') }}\">
<i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>
<span>Années scolaires</span>
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') == \"admin_quaters\" %}active{% endif %}\">
<a href=\"{{ path('admin_quaters') }}\">
<i class=\"fa fa-calendar-check-o\" aria-hidden=\"true\"></i>
<span>Trimestres</span>
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') == \"admin_sequences\" %}active{% endif %}\">
<a href=\"{{ path('admin_sequences') }}\">
<i class=\"fa fa-calendar-minus-o\" aria-hidden=\"true\"></i>
<span>Séquences</span>
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') == \"admin_programs\" %}active{% endif %}\">
<a href=\"{{ path('admin_programs') }}\">
<i class=\"fa fa-table\" aria-hidden=\"true\"></i>
<span>Programmes</span>
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') == \"admin_sections\" %}active{% endif %}\">
<a href=\"{{ path('admin_sections') }}\">
<i class=\"fa fa-th-large\" aria-hidden=\"true\"></i>
<span>Sections</span>
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') == \"admin_cycles\" %}active{% endif %}\">
<a href=\"{{ path('admin_cycles') }}\">
<i class=\"fa fa-th-list\" aria-hidden=\"true\"></i>
<span>Cycles</span>
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') == \"admin_levels\" %}active{% endif %}\">
<a href=\"{{ path('admin_levels') }}\">
<i class=\"fa fa-list-ul\" aria-hidden=\"true\"></i>
<span>Niveaux</span>
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') == \"admin_classrooms\" %}active{% endif %}\">
<a href=\"{{ path('admin_classrooms') }}\">
<i class=\"fa fa-indent\" aria-hidden=\"true\"></i>
<span>Classes</span>
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') == \"admin_modules\" %}active{% endif %}\">
<a href=\"{{ path('admin_modules') }}\">
<i class=\"fa fa-folder-open-o\" aria-hidden=\"true\"></i>
<span>Module</span>
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') == \"admin_domains\" %}active{% endif %}\">
<a href=\"{{ path('admin_domains') }}\">
<i class=\"fa fa-user-md\" aria-hidden=\"true\"></i>
<span>Departement.</span>
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') == \"admin_courses\" %}active{% endif %}\">
<a href=\"{{ path('admin_courses') }}\">
<i class=\"fa fa-book\" aria-hidden=\"true\"></i>
<span>Matières</span>
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') == \"admin_subscriptions\" %}active{% endif %}\">
<a href=\"{{ path('admin_subscriptions') }}\">
<i class=\"fa fa-exchange\" aria-hidden=\"true\"></i>
<span>Inscriptions</span>
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') == \"admin_students\" %}active{% endif %}\">
<a href=\"{{ path('admin_students', { 'type': \"new_students_not_yet_registered_checkbox\" }) }}\">
<i class=\"fa fa-users\"></i>
<span>Eleves</span>
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') == \"admin_attributions\" %}active{% endif %}\">
<a href=\"{{ path('admin_attributions') }}\">
<i class=\"fa fa-map-signs\" aria-hidden=\"true\"></i>
<span>Attributions</span>
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') == \"admin_users\" %}active{% endif %}\">
<a href=\"{{ path('admin_users') }}\">
<i class=\"fa fa-user\" aria-hidden=\"true\"></i>
<span>Personnel</span>
</a>
</li>
{# ================================================= #}
{# ================= MENU FINANCES ================= #}
{# ================================================= #}
<li class=\"
{% if app.request.attributes.get('_route') starts with 'app_finance_' %}
active
{% endif %}
\">
<a href=\"{{ path('app_finance_dashboard') }}\">
<i class=\"fa fa-money\"></i>
<span>Finances</span>
</a>
<ul class=\"list-unstyled\">
<li class=\"{% if app.request.attributes.get('_route') == 'app_finance_dashboard' %}active{% endif %}\">
<a href=\"{{ path('app_finance_dashboard') }}\">
<i class=\"fa fa-dashboard\"></i>
Tableau de bord
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') starts with 'app_finance_fee_definition' %}active{% endif %}\">
<a href=\"{{ path('app_finance_fee_definition_index') }}\">
<i class=\"fa fa-list-alt\"></i>
Définitions des frais
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') starts with 'app_finance_payment_' %}active{% endif %}\">
<a href=\"{{ path('app_finance_payment_list') }}\">
<i class=\"fa fa-credit-card\"></i>
Paiements
</a>
</li>
</ul>
</li>
{# ============== FIN MENU FINANCES ============== #}
<li class=\"{% if app.request.attributes.get('_route') == \"financial_scope_index\" %}active{% endif %}\">
<a href=\"{{ path('financial_scope_index') }}\">
<i class=\"fa fa-hand-holding-usd\" aria-hidden=\"true\"></i>
<span>Financier</span>
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') == \"admin_statistics\" %}active{% endif %}\">
<a href=\"{{ path('admin_statistics') }}\">
<i class=\"fa fa-area-chart\" aria-hidden=\"true\"></i>
<span>Statistiques</span>
</a>
</li>
{% endif %}
<li class=\"{% if app.request.attributes.get('_route') == \"admin_evaluations\" %}active{% endif %}\">
<a href=\"{{ path('admin_evaluations') }}\">
<i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i>
<span>Evaluations</span>
</a>
</li>
{% if is_granted('ROLE_DISCIPLINE') %}
<li class=\"{% if app.request.attributes.get('_route') == \"admin_abscences_sheet_index\" %}active{% endif %}\">
<a href=\"{{ path('admin_abscences_sheet_index') }}\">
<i class=\"fa fa-exclamation-triangle\" aria-hidden=\"true\"></i>
<span>Discipline</span>
</a>
</li>
{% endif %}
{% if is_granted('ROLE_FINANCIAL') %}
<li class=\"{% if app.request.attributes.get('_route') == \"app_payment_index\" %}active{% endif %}\">
<a href=\"{{ path('app_payment_index') }}\">
<i class=\"fa fa-credit-card\" aria-hidden=\"true\"></i>
<span>Payment</span>
</a>
</li>
<li class=\"{% if app.request.attributes.get('_route') == \"admin_paymentPlans\" %}active{% endif %}\">
<a href=\"{{ path('admin_paymentPlans') }}\">
<i class=\"fa fa-clock-o\" aria-hidden=\"true\"></i>
<span>Scolarite</span>
</a>
</li>
{% endif %}
<li class=\"{% if app.request.attributes.get('_route') == \"app_account\" %}active{% endif %}\">
<a href=\"{{ path('app_account') }}\">
<i class=\"fa fa-user-circle\"></i>
<span>Account</span>
</a>
</li>
</ul>
</div>
{% endblock menu %}
</div>
</nav>
{% endblock sidebar %}
<div class=\"page home-page\">
{% block header %}
<header class=\"header d-flex align-items-center justify-content-between\">
<a id=\"toggle-btn\" href=\"#\" class=\"menu-btn\"><i class=\"fa fa-bars\"></i></a>
<a href=\"{{ path('app_home') }}\" class=\"navbar-brand text-center\">
<strong class=\"text-primary\">SCHOOL MANAGEMENT SYSTEM</strong>
</a>
{% if app.user %}
<a id=\"logout_btn\" href=\"#\" onclick=\"event.preventDefault(); document.getElementById('js-logout-form').submit();\" class=\"btn btn-warning\">
<i class=\"fa fa-sign-out\"></i>
</a>
<form id=\"js-logout-form\" action=\"{{ path('app_logout') }}\" style=\"display:none;\" method=\"POST\">
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('logout') }}\">
</form>
{% endif %}
</header>
{% endblock %}
<section class=\"container-fluid mt-4\">
{% if is_granted('ROLE_ADMIN') %}
<div class=\"row mb-4\">
<div class=\"col-md-3\">
<div class=\"dashboard-card text-center\">
<i class=\"fa fa-graduation-cap text-primary\"></i>
<h4>{{ students_count() }}</h4>
<p>Élèves</p>
</div>
</div>
<div class=\"col-md-3\">
<div class=\"dashboard-card text-center\">
<i class=\"fa fa-users text-success\"></i>
<h4>{{ teachers_count() }}</h4>
<p>Enseignants</p>
</div>
</div>
<div class=\"col-md-3\">
<div class=\"dashboard-card text-center\">
<i class=\"fa fa-home text-warning\"></i>
<h4>{{ rooms_count() }}</h4>
<p>Classes</p>
</div>
</div>
<div class=\"col-md-3\">
<select class=\"form-control\" id=\"select_year\">
{% for year in years()|reverse %}
<option value=\"{{ year.id }}\" {% if app.session.get('session_school_year') == year.id %}selected{% endif %}>{{ year.code }}</option>
{% endfor %}
</select>
</div>
</div>
{% endif %}
{% block content %}{% endblock %}
</section>
</div>
</div>
{% endblock %}
{% block footer %}{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"{{ asset('assets/js/jquery.cookie.js') }}\"></script>
<script src=\"{{ asset('assets/js/grasp_mobile_progress_circle-1.0.0.min.js') }}\"></script>
<script src=\"{{ asset('assets/js/jquery.validate.min.js') }}\"></script>
<script src=\"{{ asset('assets/js/jquery.mCustomScrollbar.concat.min.js') }}\"></script>
<script>
// Toggle sidebar menu
\$('#toggle-btn').on('click', function(e) {
e.preventDefault();
\$('.side-navbar').toggleClass('collapsed');
});
// Changement d'année scolaire
\$('#select_year').on('change', function() {
\$.ajax({
type: \"POST\",
url: \"{{ path('update_school_year') }}\",
data: { selectedSchoolYear: \$(this).val() },
success: function(){ location.reload(); },
error: function(e){ console.log(e); alert(\"Echec.\"); }
});
});
</script>
{% endblock %}", "layout/backEndLayout.html.twig", "/var/www/bethesda/templates/layout/backEndLayout.html.twig");
}
}