<?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_b50bbc2aedacfc0fd3e66e16b4273e81 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 rel=\"stylesheet\" href=\"";
// line 5
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 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 "\">
<link rel=\"stylesheet\" href=\"";
// line 7
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 60
/**
* @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 61
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 64
/**
* @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 65
yield "<div class=\"d-flex\">
";
// line 68
yield " ";
yield from $this->unwrap()->yieldBlock('sidebar', $context, $blocks);
// line 286
yield "
<div class=\"page home-page\">
";
// line 288
yield from $this->unwrap()->yieldBlock('header', $context, $blocks);
// line 304
yield "
<section class=\"container-fluid mt-4\">
";
// line 306
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 307
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 311
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 318
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 325
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 331
$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 332
yield " <option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["year"], "id", [], "any", false, false, false, 332), "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.', 332, $this->source); })()), "session", [], "any", false, false, false, 332), "get", ["session_school_year"], "method", false, false, false, 332) == CoreExtension::getAttribute($this->env, $this->source, $context["year"], "id", [], "any", false, false, false, 332))) {
yield "selected";
}
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["year"], "code", [], "any", false, false, false, 332), "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 334
yield " </select>
</div>
</div>
";
}
// line 338
yield "
";
// line 339
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
// line 340
yield " </section>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 68
/**
* @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 69
yield " <nav class=\"side-navbar\">
<div class=\"side-navbar-wrapper\">
";
// line 71
yield from $this->unwrap()->yieldBlock('identification', $context, $blocks);
// line 90
yield "
";
// line 91
yield from $this->unwrap()->yieldBlock('menu', $context, $blocks);
// line 283
yield " </div>
</nav>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 71
/**
* @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 72
yield " <div class=\"sidenav-header d-flex align-items-center justify-content-center\">
<div class=\"sidenav-header-inner text-center\">
<img src=";
// line 74
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.', 74, $this->source); })()), "user", [], "any", false, false, false, 74), "avatar", [75], "method", false, false, false, 74), "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 77
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 78
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.', 78, $this->source); })()), "user", [], "any", false, false, false, 78), "username", [], "any", false, false, false, 78), "html", null, true);
yield "
";
}
// line 80
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 91
/**
* @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 92
yield " <div class=\"main-menu\">
<ul id=\"side-main-menu\" class=\"side-menu list-unstyled\">
";
// line 94
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 95
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.', 95, $this->source); })()), "request", [], "any", false, false, false, 95), "attributes", [], "any", false, false, false, 95), "get", ["_route"], "method", false, false, false, 95) == "admin_school_years")) {
yield "active";
}
yield "\">
<a href=\"";
// line 96
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 101
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.', 101, $this->source); })()), "request", [], "any", false, false, false, 101), "attributes", [], "any", false, false, false, 101), "get", ["_route"], "method", false, false, false, 101) == "admin_quaters")) {
yield "active";
}
yield "\">
<a href=\"";
// line 102
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 107
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.', 107, $this->source); })()), "request", [], "any", false, false, false, 107), "attributes", [], "any", false, false, false, 107), "get", ["_route"], "method", false, false, false, 107) == "admin_sequences")) {
yield "active";
}
yield "\">
<a href=\"";
// line 108
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 113
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.', 113, $this->source); })()), "request", [], "any", false, false, false, 113), "attributes", [], "any", false, false, false, 113), "get", ["_route"], "method", false, false, false, 113) == "admin_programs")) {
yield "active";
}
yield "\">
<a href=\"";
// line 114
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 119
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.', 119, $this->source); })()), "request", [], "any", false, false, false, 119), "attributes", [], "any", false, false, false, 119), "get", ["_route"], "method", false, false, false, 119) == "admin_sections")) {
yield "active";
}
yield "\">
<a href=\"";
// line 120
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 125
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.', 125, $this->source); })()), "request", [], "any", false, false, false, 125), "attributes", [], "any", false, false, false, 125), "get", ["_route"], "method", false, false, false, 125) == "admin_cycles")) {
yield "active";
}
yield "\">
<a href=\"";
// line 126
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 131
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.', 131, $this->source); })()), "request", [], "any", false, false, false, 131), "attributes", [], "any", false, false, false, 131), "get", ["_route"], "method", false, false, false, 131) == "admin_levels")) {
yield "active";
}
yield "\">
<a href=\"";
// line 132
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 137
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.', 137, $this->source); })()), "request", [], "any", false, false, false, 137), "attributes", [], "any", false, false, false, 137), "get", ["_route"], "method", false, false, false, 137) == "admin_classrooms")) {
yield "active";
}
yield "\">
<a href=\"";
// line 138
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 143
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.', 143, $this->source); })()), "request", [], "any", false, false, false, 143), "attributes", [], "any", false, false, false, 143), "get", ["_route"], "method", false, false, false, 143) == "admin_modules")) {
yield "active";
}
yield "\">
<a href=\"";
// line 144
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 149
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.', 149, $this->source); })()), "request", [], "any", false, false, false, 149), "attributes", [], "any", false, false, false, 149), "get", ["_route"], "method", false, false, false, 149) == "admin_domains")) {
yield "active";
}
yield "\">
<a href=\"";
// line 150
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 155
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.', 155, $this->source); })()), "request", [], "any", false, false, false, 155), "attributes", [], "any", false, false, false, 155), "get", ["_route"], "method", false, false, false, 155) == "admin_courses")) {
yield "active";
}
yield "\">
<a href=\"";
// line 156
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 161
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.', 161, $this->source); })()), "request", [], "any", false, false, false, 161), "attributes", [], "any", false, false, false, 161), "get", ["_route"], "method", false, false, false, 161) == "admin_subscriptions")) {
yield "active";
}
yield "\">
<a href=\"";
// line 162
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 167
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.', 167, $this->source); })()), "request", [], "any", false, false, false, 167), "attributes", [], "any", false, false, false, 167), "get", ["_route"], "method", false, false, false, 167) == "admin_students")) {
yield "active";
}
yield "\">
<a href=\"";
// line 168
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 173
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.', 173, $this->source); })()), "request", [], "any", false, false, false, 173), "attributes", [], "any", false, false, false, 173), "get", ["_route"], "method", false, false, false, 173) == "admin_attributions")) {
yield "active";
}
yield "\">
<a href=\"";
// line 174
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 179
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.', 179, $this->source); })()), "request", [], "any", false, false, false, 179), "attributes", [], "any", false, false, false, 179), "get", ["_route"], "method", false, false, false, 179) == "admin_users")) {
yield "active";
}
yield "\">
<a href=\"";
// line 180
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 187
yield " ";
// line 188
yield " ";
// line 189
yield "
<li class=\"
";
// line 191
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.', 191, $this->source); })()), "request", [], "any", false, false, false, 191), "attributes", [], "any", false, false, false, 191), "get", ["_route"], "method", false, false, false, 191)) && is_string($_v1 = "app_finance_") && str_starts_with($_v0, $_v1))) {
// line 192
yield " active
";
}
// line 194
yield " \">
<a href=\"";
// line 195
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 202
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.', 202, $this->source); })()), "request", [], "any", false, false, false, 202), "attributes", [], "any", false, false, false, 202), "get", ["_route"], "method", false, false, false, 202) == "app_finance_dashboard")) {
yield "active";
}
yield "\">
<a href=\"";
// line 203
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 209
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.', 209, $this->source); })()), "request", [], "any", false, false, false, 209), "attributes", [], "any", false, false, false, 209), "get", ["_route"], "method", false, false, false, 209)) && is_string($_v3 = "app_finance_fee_definition") && str_starts_with($_v2, $_v3))) {
yield "active";
}
yield "\">
<a href=\"";
// line 210
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 216
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.', 216, $this->source); })()), "request", [], "any", false, false, false, 216), "attributes", [], "any", false, false, false, 216), "get", ["_route"], "method", false, false, false, 216)) && is_string($_v5 = "app_finance_payment_") && str_starts_with($_v4, $_v5))) {
yield "active";
}
yield "\">
<a href=\"";
// line 217
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 227
yield "
<li class=\"";
// line 229
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.', 229, $this->source); })()), "request", [], "any", false, false, false, 229), "attributes", [], "any", false, false, false, 229), "get", ["_route"], "method", false, false, false, 229) == "financial_scope_index")) {
yield "active";
}
yield "\">
<a href=\"";
// line 230
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 235
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.', 235, $this->source); })()), "request", [], "any", false, false, false, 235), "attributes", [], "any", false, false, false, 235), "get", ["_route"], "method", false, false, false, 235) == "admin_statistics")) {
yield "active";
}
yield "\">
<a href=\"";
// line 236
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 242
yield "
<li class=\"";
// line 243
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.', 243, $this->source); })()), "request", [], "any", false, false, false, 243), "attributes", [], "any", false, false, false, 243), "get", ["_route"], "method", false, false, false, 243) == "admin_evaluations")) {
yield "active";
}
yield "\">
<a href=\"";
// line 244
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 250
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_DISCIPLINE")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 251
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.', 251, $this->source); })()), "request", [], "any", false, false, false, 251), "attributes", [], "any", false, false, false, 251), "get", ["_route"], "method", false, false, false, 251) == "admin_abscences_sheet_index")) {
yield "active";
}
yield "\">
<a href=\"";
// line 252
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 258
yield "
";
// line 259
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_FINANCIAL")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 260
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.', 260, $this->source); })()), "request", [], "any", false, false, false, 260), "attributes", [], "any", false, false, false, 260), "get", ["_route"], "method", false, false, false, 260) == "app_payment_index")) {
yield "active";
}
yield "\">
<a href=\"";
// line 261
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 266
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.', 266, $this->source); })()), "request", [], "any", false, false, false, 266), "attributes", [], "any", false, false, false, 266), "get", ["_route"], "method", false, false, false, 266) == "admin_paymentPlans")) {
yield "active";
}
yield "\">
<a href=\"";
// line 267
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 273
yield "
<li class=\"";
// line 274
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.', 274, $this->source); })()), "request", [], "any", false, false, false, 274), "attributes", [], "any", false, false, false, 274), "get", ["_route"], "method", false, false, false, 274) == "app_account")) {
yield "active";
}
yield "\">
<a href=\"";
// line 275
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 288
/**
* @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 289
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 291
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 294
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.', 294, $this->source); })()), "user", [], "any", false, false, false, 294)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 295
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 298
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 299
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("logout"), "html", null, true);
yield "\">
</form>
";
}
// line 302
yield " </header>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 339
/**
* @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 347
/**
* @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 349
/**
* @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 350
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
<script src=\"";
// line 351
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 352
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 353
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 354
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 367
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 ( 976 => 367, 960 => 354, 956 => 353, 952 => 352, 948 => 351, 944 => 350, 931 => 349, 909 => 347, 887 => 339, 875 => 302, 869 => 299, 865 => 298, 860 => 295, 858 => 294, 852 => 291, 848 => 289, 835 => 288, 816 => 275, 810 => 274, 807 => 273, 798 => 267, 792 => 266, 784 => 261, 777 => 260, 775 => 259, 772 => 258, 763 => 252, 756 => 251, 754 => 250, 745 => 244, 739 => 243, 736 => 242, 727 => 236, 721 => 235, 713 => 230, 707 => 229, 703 => 227, 691 => 217, 685 => 216, 676 => 210, 670 => 209, 661 => 203, 655 => 202, 645 => 195, 642 => 194, 638 => 192, 636 => 191, 632 => 189, 630 => 188, 628 => 187, 619 => 180, 613 => 179, 605 => 174, 599 => 173, 591 => 168, 585 => 167, 577 => 162, 571 => 161, 563 => 156, 557 => 155, 549 => 150, 543 => 149, 535 => 144, 529 => 143, 521 => 138, 515 => 137, 507 => 132, 501 => 131, 493 => 126, 487 => 125, 479 => 120, 473 => 119, 465 => 114, 459 => 113, 451 => 108, 445 => 107, 437 => 102, 431 => 101, 423 => 96, 416 => 95, 414 => 94, 410 => 92, 397 => 91, 377 => 80, 371 => 78, 369 => 77, 355 => 74, 351 => 72, 338 => 71, 325 => 283, 323 => 91, 320 => 90, 318 => 71, 314 => 69, 301 => 68, 285 => 340, 283 => 339, 280 => 338, 274 => 334, 259 => 332, 255 => 331, 246 => 325, 236 => 318, 226 => 311, 220 => 307, 218 => 306, 214 => 304, 212 => 288, 208 => 286, 205 => 68, 201 => 65, 188 => 64, 174 => 61, 161 => 60, 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 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");
}
}