var/cache/dev/twig/c8/c84ea71f2c22e94b038980904b8040ed.php line 54

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* classroom/show.html.twig */
  16. class __TwigTemplate_20b837fda154308a57de8bf7077a8921 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'content' => [$this'block_content'],
  29.             'javascripts' => [$this'block_javascripts'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "layout/backEndLayout.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""classroom/show.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""classroom/show.html.twig"));
  44.         $this->parent $this->loadTemplate("layout/backEndLayout.html.twig""classroom/show.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_content(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  62.         // line 4
  63.         yield "
  64.     <div class=\"row mt-4\">
  65.         <div class=\"col-1 mar-bot30\">
  66.           ";
  67.         // line 7
  68.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  69.             // line 8
  70.             yield "            <a class=\"btn btn-info\" href=\"";
  71.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_new");
  72.             yield "\">
  73.                 <i class=\"fa fa-plus\"></i>
  74.                 
  75.                                                                                                                                                 
  76.                                                                                                                             
  77.                                                                                                             
  78.                                                                                             
  79.      
  80.             </a>
  81.             ";
  82.         }
  83.         // line 18
  84.         yield "        </div>
  85.           
  86.           
  87.         </div>
  88.         <div class=\"col-11 jumbotron\">
  89.             <article class=\"p-3\">
  90.                 <table class=\"table table-hover record_properties center\">
  91.                     <tbody>
  92.                         <tr>
  93.                             <th scope=\"row\">
  94.                                 Nom
  95.                                                                                                                                                                                                                                                             
  96.                                                                                                                                                                                                                             
  97.                                                                                                                                                                                             
  98.                                                                                                                                                             
  99.                                                                                                                             
  100.                                                                                             
  101.                                                             
  102.                             </th>
  103.                             <td>
  104.                                 ";
  105.         // line 39
  106.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["classroom"]) || array_key_exists("classroom"$context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.'39$this->source); })()), "name", [], "any"falsefalsefalse39), "html"nulltrue);
  107.         yield "
  108.                             </td>
  109.                         </tr>
  110.                         <tr>
  111.                             <th scope=\"row\">
  112.                                 Niveau
  113.                                                                                                                                                                                                                                                             
  114.                                                                                                                                                                                                                             
  115.                                                                                                                                                                                             
  116.                                                                                                                                                             
  117.                                                                                                                             
  118.                                                                                             
  119.                                                             
  120.                             </th>
  121.                             <td>
  122.                                 ";
  123.         // line 54
  124.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["classroom"]) || array_key_exists("classroom"$context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.'54$this->source); })()), "level", [], "any"falsefalsefalse54), "html"nulltrue);
  125.         yield "
  126.                             </td>
  127.                         </tr>
  128.                         <tr>
  129.                             <th scope=\"row\">
  130.                                 Titulaire
  131.                                                                                                                                                                                                                                                             
  132.                                                                                                                                                                                                                             
  133.                                                                                                                                                                                             
  134.                                                                                                                                                             
  135.                                                                                                                             
  136.                                                                                             
  137.                                                             
  138.                             </th>
  139.                             <td>
  140.                                 ";
  141.         // line 69
  142.         if ((null === (isset($context["mainteacher"]) || array_key_exists("mainteacher"$context) ? $context["mainteacher"] : (function () { throw new RuntimeError('Variable "mainteacher" does not exist.'69$this->source); })()))) {
  143.             // line 70
  144.             yield "                                    
  145.                                     ";
  146.         } else {
  147.             // line 72
  148.             yield "                                      ";
  149.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["mainteacher"]) || array_key_exists("mainteacher"$context) ? $context["mainteacher"] : (function () { throw new RuntimeError('Variable "mainteacher" does not exist.'72$this->source); })()), "fullName", [], "any"falsefalsefalse72), "html"nulltrue);
  150.             yield "
  151.                                 ";
  152.         }
  153.         // line 74
  154.         yield "                             
  155.                             </td>
  156.                         </tr>
  157.                         <tr>
  158.                             <th scope=\"row\">
  159.                                 Classe d'examen                                                                                                                                                                                                                                                             
  160.                                                                                                                                                                                                                             
  161.                                                                                                                                                                                             
  162.                                                                                                                                                             
  163.                                                                                                                             
  164.                                                                                             
  165.                                                             
  166.                             </th>
  167.                             <td>
  168.                                 ";
  169.         // line 88
  170.         if ((CoreExtension::getAttribute($this->env$this->source, (isset($context["classroom"]) || array_key_exists("classroom"$context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.'88$this->source); })()), "apc", [], "any"falsefalsefalse88) == true)) {
  171.             // line 89
  172.             yield "                                    OUI
  173.                                                                                                                                                                                                                                                                                                 \t\t\t\t\t\t\t\t
  174.                                                                                                                                                                                                                                                                                             
  175.                                                                                                                                                                                                                                                         
  176.                                                                                                                                                                                                                     
  177.                                                                                                                                                                                 
  178.                                                                                                                                             
  179.                                                                                                         
  180.                                                                     
  181.                                 ";
  182.         } else {
  183.             // line 99
  184.             yield "                                    NON
  185.                                                                                                                                                                                                                                                                                                 \t\t\t\t\t\t\t\t
  186.                                                                                                                                                                                                                                                                                             
  187.                                                                                                                                                                                                                                                         
  188.                                                                                                                                                                                                                     
  189.                                                                                                                                                                                 
  190.                                                                                                                                             
  191.                                                                                                         
  192.                                                                     
  193.                                 ";
  194.         }
  195.         // line 109
  196.         yield "                            </td>
  197.                         </tr>
  198.                     </tbody>
  199.                 </table>
  200.                 <div class=\"btn-group record_actions\">
  201.                     <a class=\"btn btn-info\" href=\"";
  202.         // line 116
  203.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms");
  204.         yield "\">
  205.                         <i class=\"fa fa-list\"></i>
  206.                         ";
  207.         // line 118
  208.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Listing", [], "admin"), "html"nulltrue);
  209.         yield "
  210.                     </a>
  211.                     ";
  212.         // line 120
  213.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  214.             // line 121
  215.             yield "                        <a class=\"btn btn-primary\" href=\"";
  216.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_edit", ["id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["classroom"]) || array_key_exists("classroom"$context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.'121$this->source); })()), "id", [], "any"falsefalsefalse121)]), "html"nulltrue);
  217.             yield "\">
  218.                             <i class=\"fa fa-edit\"></i>
  219.                             ";
  220.             // line 123
  221.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Edit", [], "admin"), "html"nulltrue);
  222.             yield "
  223.                         </a>
  224.                 
  225.                     <a target=\"_blank\" class=\"btn btn-file\"  data-toggle=\"modal\" data-target=\"#form_modal_courses\" >
  226.                         <i class=\"fa fa-file-excel-o\"></i>
  227.                         Recap. Seq
  228.                                                                                                                                                                                                                     
  229.                                                                                                                                                                                             
  230.                                                                                                                                                                     
  231.                                                                                                                                             
  232.                                                                                                                     
  233.                                                                                             
  234.                                                                     
  235.                                             
  236.                     </a>
  237.                     <a target=\"_blank\" class=\"btn btn-warning\" href=\"";
  238.             // line 138
  239.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_reportcards_seq", ["id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["classroom"]) || array_key_exists("classroom"$context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.'138$this->source); })()), "id", [], "any"falsefalsefalse138)]), "html"nulltrue);
  240.             yield "\">
  241.                         <i class=\"fa fa-file\"></i>
  242.                         Bull Seq
  243.                                                                                                                                                                                                                     
  244.                                                                                                                                                                                             
  245.                                                                                                                                                                     
  246.                                                                                                                                             
  247.                                                                                                                     
  248.                                                                                             
  249.                                                                     
  250.                                             
  251.                     </a>
  252.                     <a  target=\"_blank\" class=\"btn btn-file\"data-toggle=\"modal\" data-target=\"#form_modal_reportcard_params\">
  253.                         <i class=\"fa fa-file\"></i>
  254.                         Bull Trim
  255.                                                                                                                                                                                                                     
  256.                                                                                                                                                                                             
  257.                                                                                                                                                                     
  258.                                                                                                                                             
  259.                                                                                                                     
  260.                                                                                             
  261.                                                                     
  262.                                             
  263.                     </a>
  264.                     <a target=\"_blank\" class=\"btn btn-outline-warning\" href=\"";
  265.             // line 163
  266.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_recapitulatif_trim", ["id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["classroom"]) || array_key_exists("classroom"$context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.'163$this->source); })()), "id", [], "any"falsefalsefalse163)]), "html"nulltrue);
  267.             yield "\">
  268.                         <i class=\"fa fa-file-excel-o\"></i>
  269.                         Recap Trim
  270.                                                                                                                                                                                                                     
  271.                                                                                                                                                                                             
  272.                                                                                                                                                                     
  273.                                                                                                                                             
  274.                                                                                                                     
  275.                                                                                             
  276.                                                                     
  277.                                             
  278.                     </a>
  279.                     <a  target=\"_blank\" class=\"btn btn-file\" href=\"";
  280.             // line 175
  281.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_class_reportcards_apc_year", ["id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["classroom"]) || array_key_exists("classroom"$context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.'175$this->source); })()), "id", [], "any"falsefalsefalse175)]), "html"nulltrue);
  282.             yield "\">
  283.                         <i class=\"fa fa-file\"></i>
  284.                         Bull Ann V1
  285.                                                                                                                                                                                                                     
  286.                                                                                                                                                                                             
  287.                                                                                                                                                                     
  288.                                                                                                                                             
  289.                                                                                                                     
  290.                                                                                             
  291.                                                                     
  292.                                             
  293.                     </a>
  294.                     <a target=\"_blank\" class=\"btn btn-file\"  >
  295.                         <i class=\"fa fa-file\"></i>
  296.                         Bull Ann V2
  297.                                                                                                                                                                                                                     
  298.                                                                                                                                                                                             
  299.                                                                                                                                                                     
  300.                                                                                                                                             
  301.                                                                                                                     
  302.                                                                                             
  303.                                                                     
  304.                                             
  305.                     </a>
  306.                     <a  target=\"_blank\" class=\"btn btn-light\" href=\"";
  307.             // line 199
  308.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_current_fulfilled_eval_show", ["id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["classroom"]) || array_key_exists("classroom"$context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.'199$this->source); })()), "id", [], "any"falsefalsefalse199)]), "html"nulltrue);
  309.             yield "\">
  310.                         <i class=\"fa fa-list-ul\"></i>
  311.                         Dépot des PV
  312.                                                                                                                                                                                                                     
  313.                                                                                                                                                                                             
  314.                                                                                                                                                                     
  315.                                                                                                                                             
  316.                                                                                                                     
  317.                                                                                             
  318.                                                                     
  319.                                             
  320.                     </a>
  321.                     
  322.                         <button class=\"btn btn-danger\" type=\"submit\">
  323.                             <i class=\"fa fa-trash-o\"></i>
  324.                             ";
  325.             // line 214
  326.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Delete", [], "admin"), "html"nulltrue);
  327.             yield "
  328.                         </button>
  329.                     ";
  330.         }
  331.         // line 217
  332.         yield "                </div>
  333.                 <div class=\"card-header text-center\">
  334.                     <h2>
  335.                         Liste des Ã©lèves incrits dans la classe 
  336.                                                                                                                                                                                             
  337.                                                                                                                                                                     
  338.                                                                                                                                             
  339.                                                                                                                     
  340.                                                                                             
  341.                                                                     
  342.                                             
  343.                     </h2>
  344.                 </div>
  345.                 <table class=\"table table-striped table-hover table-bordered records_list center\">
  346.                     <thead>
  347.                         <tr>
  348.                             <th scope=\"col\">
  349.                                 Matricule
  350.                                                                                                                                                                                                                                                             
  351.                                                                                                                                                                                                                             
  352.                                                                                                                                                                                             
  353.                                                                                                                                                             
  354.                                                                                                                             
  355.                                                                                             
  356.                                                             
  357.                             </th>
  358.                             <th scope=\"col\">
  359.                                 Nom
  360.                                                                                                                                                                                                                                                             
  361.                                                                                                                                                                                                                             
  362.                                                                                                                                                                                             
  363.                                                                                                                                                             
  364.                                                                                                                             
  365.                                                                                             
  366.                                                             
  367.                             </th>
  368.                             <th scope=\"col\">
  369.                                 Prénom
  370.                                                                                                                                                                                                                                                             
  371.                                                                                                                                                                                                                             
  372.                                                                                                                                                                                             
  373.                                                                                                                                                             
  374.                                                                                                                             
  375.                                                                                             
  376.                                                             
  377.                             </th>
  378.                             <th scope=\"col\">
  379.                                 Photo
  380.                                                                                                                                                                                                                                                             
  381.                                                                                                                                                                                                                             
  382.                                                                                                                                                                                             
  383.                                                                                                                                                             
  384.                                                                                                                             
  385.                                                                                             
  386.                                                             
  387.                             </th>
  388.                              <th scope=\"col\">
  389.                                 Action
  390.                                                                                                                                                                                                                                                             
  391.                                                                                                                                                                                                                             
  392.                                                                                                                                                                                             
  393.                                                                                                                                                             
  394.                                                                                                                             
  395.                                                                                             
  396.                                                             
  397.                             </th>
  398.                         </tr>
  399.                     </thead>
  400.                     <tbody>
  401.                         ";
  402.         // line 287
  403.         $context["effectif"] = 0;
  404.         // line 288
  405.         yield "                        ";
  406.         $context['_parent'] = $context;
  407.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["studentEnrolled"]) || array_key_exists("studentEnrolled"$context) ? $context["studentEnrolled"] : (function () { throw new RuntimeError('Variable "studentEnrolled" does not exist.'288$this->source); })()));
  408.         foreach ($context['_seq'] as $context["_key"] => $context["std"]) {
  409.             // line 289
  410.             yield "                            <tr>
  411.                                 <td>
  412.                                     <a href=\"";
  413.             // line 291
  414.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_students_show", ["id" => CoreExtension::getAttribute($this->env$this->source$context["std"], "id", [], "any"falsefalsefalse291)]), "html"nulltrue);
  415.             yield "\">
  416.                                         ";
  417.             // line 292
  418.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["std"], "matricule", [], "any"falsefalsefalse292), "html"nulltrue);
  419.             yield "
  420.                                     </a>
  421.                                 </td>
  422.                                 <td>
  423.                                     ";
  424.             // line 296
  425.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["std"], "lastname", [], "any"falsefalsefalse296), "html"nulltrue);
  426.             yield "
  427.                                 </td>
  428.                                 <td>
  429.                                     ";
  430.             // line 299
  431.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["std"], "firstname", [], "any"falsefalsefalse299), "html"nulltrue);
  432.             yield "
  433.                                 </td>
  434.                                 <td>
  435.                                     ";
  436.             // line 302
  437.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["fileExists"]) || array_key_exists("fileExists"$context) ? $context["fileExists"] : (function () { throw new RuntimeError('Variable "fileExists" does not exist.'302$this->source); })()), CoreExtension::getAttribute($this->env$this->source$context["std"], "id", [], "any"falsefalsefalse302), [], "array"falsefalsefalse302), "html"nulltrue);
  438.             yield "
  439.                                 </td>
  440.                                 <td>
  441.                                     ";
  442.             // line 305
  443.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  444.                 // line 306
  445.                 yield "                                        <a class=\"btn btn-outline-danger\" href=\"";
  446.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_students_unregister", ["id" => CoreExtension::getAttribute($this->env$this->source$context["std"], "id", [], "any"falsefalsefalse306), "room_id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["classroom"]) || array_key_exists("classroom"$context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.'306$this->source); })()), "id", [], "any"falsefalsefalse306)]), "html"nulltrue);
  447.                 yield "\">
  448.                                                 <i class=\"fa fa-ban\"></i>
  449.                                         </a>
  450.                                         <a class=\"btn btn-outline-warning\" href=\"";
  451.                 // line 309
  452.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_students_edit", ["id" => CoreExtension::getAttribute($this->env$this->source$context["std"], "id", [], "any"falsefalsefalse309)]), "html"nulltrue);
  453.                 yield "\">
  454.                                         <i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i>                                 
  455.                                         </a>
  456.                                     ";
  457.             }
  458.             // line 313
  459.             yield "                                    
  460.                                 </td>
  461.                                 ";
  462.             // line 315
  463.             $context["effectif"] = ((isset($context["effectif"]) || array_key_exists("effectif"$context) ? $context["effectif"] : (function () { throw new RuntimeError('Variable "effectif" does not exist.'315$this->source); })()) + 1);
  464.             // line 316
  465.             yield "
  466.                             </tr>
  467.                         ";
  468.         }
  469.         $_parent $context['_parent'];
  470.         unset($context['_seq'], $context['_key'], $context['std'], $context['_parent']);
  471.         $context array_intersect_key($context$_parent) + $_parent;
  472.         // line 320
  473.         yield "                        <tr>
  474.                             <td class=\"center\" colspan=\"2\">
  475.                                 Effectif
  476.                                                                                                                                                                                                                                                             
  477.                                                                                                                                                                                                                             
  478.                                                                                                                                                                                             
  479.                                                                                                                                                             
  480.                                                                                                                             
  481.                                                                                             
  482.                                                             
  483.                             </td>
  484.                             <td>
  485.                                 ";
  486.         // line 332
  487.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["effectif"]) || array_key_exists("effectif"$context) ? $context["effectif"] : (function () { throw new RuntimeError('Variable "effectif" does not exist.'332$this->source); })()), "html"nulltrue);
  488.         yield "
  489.                             </td>
  490.                         </tr>
  491.                     </tbody>
  492.                 </table>
  493.                 <div class=\"card-header text-center\">
  494.                     <h2>
  495.                         Matières programmées dans la classe 
  496.                                                                                                                                                                                             
  497.                                                                                                                                                                     
  498.                                                                                                                                             
  499.                                                                                                                     
  500.                                                                                             
  501.                                                                     
  502.                                             
  503.                     </h2>
  504.                 </div>
  505.                 <table class=\"table table-striped table-hover table-bordered records_list center\">
  506.                     <thead>
  507.                         <tr>
  508.                             <th scope=\"col\">
  509.                                 Module 
  510.                                                                                                                                                                                                                                                             
  511.                                                                                                                                                                                                                             
  512.                                                                                                                                                                                             
  513.                                                                                                                                                             
  514.                                                                                                                             
  515.                                                                                             
  516.                                                             
  517.                             </th>
  518.                             <th scope=\"col\">
  519.                                 Code 
  520.                                                                                                                                                                                                                                                             
  521.                                                                                                                                                                                                                             
  522.                                                                                                                                                                                             
  523.                                                                                                                                                             
  524.                                                                                                                             
  525.                                                                                             
  526.                                                             
  527.                             </th>
  528.                             <th scope=\"col\">
  529.                                 Intitulé 
  530.                                                                                                                                                                                                                                                             
  531.                                                                                                                                                                                                                             
  532.                                                                                                                                                                                             
  533.                                                                                                                                                             
  534.                                                                                                                             
  535.                                                                                             
  536.                                                             
  537.                             </th>
  538.                             <th scope=\"col\">
  539.                                 Coef 
  540.                                                                                                                                                                                                                                                             
  541.                                                                                                                                                                                                                             
  542.                                                                                                                                                                                             
  543.                                                                                                                                                             
  544.                                                                                                                             
  545.                                                                                             
  546.                                                             
  547.                             </th>
  548.                             <th scope=\"col\">
  549.                                 Enseignant 
  550.                                                                                                                                                                                                                                                             
  551.                                                                                                                                                                                                                             
  552.                                                                                                                                                                                             
  553.                                                                                                                                                             
  554.                                                                                                                             
  555.                                                                                             
  556.                                                             
  557.                             </th>
  558.                         </tr>
  559.                     </thead>
  560.                     <tbody>
  561.                         ";
  562.         // line 409
  563.         $context["totalCoef"] = 0;
  564.         // line 410
  565.         yield "                        ";
  566.         $context['_parent'] = $context;
  567.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["modules"]) || array_key_exists("modules"$context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.'410$this->source); })()));
  568.         foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
  569.             // line 411
  570.             yield "                            <tr>
  571.                                 ";
  572.             // line 413
  573.             $context['_parent'] = $context;
  574.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source$context["module"], "courses", [], "any"falsefalsefalse413));
  575.             foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
  576.                 // line 414
  577.                 yield "                                    <tr>
  578.                                         <td>
  579.                                             ";
  580.                 // line 416
  581.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["module"], "name", [], "any"falsefalsefalse416), "html"nulltrue);
  582.                 yield "
  583.                                         </td>
  584.                                         <td>
  585.                                             <a href=\"";
  586.                 // line 419
  587.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_courses_show", ["id" => CoreExtension::getAttribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse419)]), "html"nulltrue);
  588.                 yield "\">
  589.                                                 ";
  590.                 // line 420
  591.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["course"], "code", [], "any"falsefalsefalse420), "html"nulltrue);
  592.                 yield "
  593.                                             </a>
  594.                                         </td>
  595.                                         <td>
  596.                                             ";
  597.                 // line 425
  598.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["course"], "wording", [], "any"falsefalsefalse425), "html"nulltrue);
  599.                 yield "
  600.                                         </td>
  601.                                         <td>
  602.                                             ";
  603.                 // line 428
  604.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["course"], "coefficient", [], "any"falsefalsefalse428), "html"nulltrue);
  605.                 yield "
  606.                                         </td>
  607.                                         <td>
  608.                                             ";
  609.                 // line 432
  610.                 if (CoreExtension::getAttribute($this->env$this->source, ($context["attributions"] ?? null), CoreExtension::getAttribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse432), [], "array"truetruefalse432)) {
  611.                     // line 433
  612.                     yield "                                                ";
  613.                     if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  614.                         // line 434
  615.                         yield "                                                    <a href=\"";
  616.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_attributions_edit", ["id" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["attributions"]) || array_key_exists("attributions"$context) ? $context["attributions"] : (function () { throw new RuntimeError('Variable "attributions" does not exist.'434$this->source); })()), CoreExtension::getAttribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse434), [], "array"falsefalsefalse434), "id", [], "any"falsefalsefalse434)]), "html"nulltrue);
  617.                         yield "\">
  618.                                                         ";
  619.                         // line 435
  620.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["attributions"]) || array_key_exists("attributions"$context) ? $context["attributions"] : (function () { throw new RuntimeError('Variable "attributions" does not exist.'435$this->source); })()), CoreExtension::getAttribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse435), [], "array"falsefalsefalse435), "teacher", [], "any"falsefalsefalse435), "fullName", [], "any"falsefalsefalse435), "html"nulltrue);
  621.                         yield "
  622.                                                     </a>
  623.                                                 ";
  624.                     } else {
  625.                         // line 438
  626.                         yield "                                                    ";
  627.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["attributions"]) || array_key_exists("attributions"$context) ? $context["attributions"] : (function () { throw new RuntimeError('Variable "attributions" does not exist.'438$this->source); })()), CoreExtension::getAttribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse438), [], "array"falsefalsefalse438), "teacher", [], "any"falsefalsefalse438), "fullName", [], "any"falsefalsefalse438), "html"nulltrue);
  628.                         yield "
  629.                                                 ";
  630.                     }
  631.                     // line 440
  632.                     yield "                                            ";
  633.                 } else {
  634.                     // line 441
  635.                     yield "                                            ";
  636.                     if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  637.                         // line 442
  638.                         yield "                                                <a href=\"";
  639.                         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_attributions_new");
  640.                         yield "\">
  641.                                                     Pas encore attribue
  642.                                                 </a>
  643.                                              ";
  644.                     }
  645.                     // line 446
  646.                     yield "                                            ";
  647.                 }
  648.                 // line 447
  649.                 yield "
  650.                                         </td>
  651.                                         ";
  652.                 // line 449
  653.                 $context["totalCoef"] = ((isset($context["totalCoef"]) || array_key_exists("totalCoef"$context) ? $context["totalCoef"] : (function () { throw new RuntimeError('Variable "totalCoef" does not exist.'449$this->source); })()) + CoreExtension::getAttribute($this->env$this->source$context["course"], "coefficient", [], "any"falsefalsefalse449));
  654.                 // line 450
  655.                 yield "                                    </tr>
  656.                                 ";
  657.             }
  658.             $_parent $context['_parent'];
  659.             unset($context['_seq'], $context['_key'], $context['course'], $context['_parent']);
  660.             $context array_intersect_key($context$_parent) + $_parent;
  661.             // line 452
  662.             yield "
  663.                             </tr>
  664.                             <tr>
  665.                                 <td class=\"center\" colspan=\"3\">
  666.                                     total cumul coef 
  667.                                                                                                                                                                                                                                                                                             
  668.                                                                                                                                                                                                                                                         
  669.                                                                                                                                                                                                                     
  670.                                                                                                                                                                                 
  671.                                                                                                                                             
  672.                                                                                                         
  673.                                                                     
  674.                                 </td>
  675.                                 <td>
  676.                                     ";
  677.             // line 466
  678.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["totalCoef"]) || array_key_exists("totalCoef"$context) ? $context["totalCoef"] : (function () { throw new RuntimeError('Variable "totalCoef" does not exist.'466$this->source); })()), "html"nulltrue);
  679.             yield "
  680.                                 </td>
  681.                             </tr>
  682.                         ";
  683.         }
  684.         $_parent $context['_parent'];
  685.         unset($context['_seq'], $context['_key'], $context['module'], $context['_parent']);
  686.         $context array_intersect_key($context$_parent) + $_parent;
  687.         // line 470
  688.         yield "
  689.                     </tbody>
  690.                 </table>
  691.             </article>
  692.             <section id=\"graphs\">
  693.                 <article class=\"p-3\">
  694.                     <canvas id=\"schoolPerformanceGraph\" width=\"700\" height=\"250\"></canvas>
  695.                 </article>
  696.                 ";
  697.         // line 478
  698.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["classroom"]) || array_key_exists("classroom"$context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.'478$this->source); })()), "apc", [], "any"falsefalsefalse478)) {
  699.             // line 479
  700.             yield "                  <article class=\"p-3\">
  701.                     <canvas id=\"officialExamsGraph\" width=\"200\" height=\"220\" ></canvas>
  702.                 </article>
  703.                 ";
  704.         }
  705.         // line 483
  706.         yield "            </section>
  707.         </div>
  708.     </div>
  709. <!-- Modal pour le choix de cours qui vont figurer dans le recaputulatif sequentiel -->
  710. <div class=\"modal fade\" id=\"form_modal_courses\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
  711.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  712.     <div class=\"modal-content\">
  713.       <div class=\"modal-header border-bottom-0\">
  714.         <h5 class=\"modal-title\" id=\"exampleModalLabel\">Choisir les cours a qui doivent figurer dans le recapitulatif</h5>
  715.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  716.           <span aria-hidden=\"true\">&times;</span>
  717.         </button>
  718.       </div>
  719.       <form action=\"";
  720.         // line 496
  721.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_recapitulatif_seq", ["id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["classroom"]) || array_key_exists("classroom"$context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.'496$this->source); })()), "id", [], "any"falsefalsefalse496)]), "html"nulltrue);
  722.         yield "\" method=\"post\">
  723.         <div class=\"modal-body\">
  724.           <div class=\"form-group\">
  725.              ";
  726.         // line 499
  727.         $context['_parent'] = $context;
  728.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["modules"]) || array_key_exists("modules"$context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.'499$this->source); })()));
  729.         foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
  730.             // line 500
  731.             yield "                ";
  732.             $context['_parent'] = $context;
  733.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source$context["module"], "courses", [], "any"falsefalsefalse500));
  734.             foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
  735.                 // line 501
  736.                 yield "                <li class=\"list-group-item\">
  737.                         <input class=\"form-check-input me-1\" type=\"checkbox\" checked name=\"selected_courses[]\" value=";
  738.                 // line 502
  739.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse502), "html"nulltrue);
  740.                 yield " >
  741.                         ";
  742.                 // line 503
  743.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["course"], "wording", [], "any"falsefalsefalse503), "html"nulltrue);
  744.                 yield "
  745.                 </li>
  746.                 ";
  747.             }
  748.             $_parent $context['_parent'];
  749.             unset($context['_seq'], $context['_key'], $context['course'], $context['_parent']);
  750.             $context array_intersect_key($context$_parent) + $_parent;
  751.             // line 506
  752.             yield "             ";
  753.         }
  754.         $_parent $context['_parent'];
  755.         unset($context['_seq'], $context['_key'], $context['module'], $context['_parent']);
  756.         $context array_intersect_key($context$_parent) + $_parent;
  757.         // line 507
  758.         yield "          </div>
  759.         </div>
  760.       
  761.         <div class=\"modal-footer border-top-0 d-flex justify-content-center\">
  762.           <button type=\"submit\" class=\"btn btn-success\">Submit</button>
  763.         </div>
  764.       </form>
  765.     </div>
  766.   </div>
  767. </div>
  768. <!-- Modal pour le parametrage de la presentation des bulletins. -->
  769. <div class=\"modal fade\" id=\"form_modal_reportcard_params\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalRange\" aria-hidden=\"true\">
  770.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  771.     <div class=\"modal-content\">
  772.       <div class=\"modal-header border-bottom-0\">
  773.         <h5 class=\"modal-title\" id=\"exampleModalLabel\">Reajuster les  parametres de production des bulletins</h5>
  774.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  775.           <span aria-hidden=\"true\">&times;</span>
  776.         </button>
  777.       </div>
  778.       <form action=\"";
  779.         // line 527
  780.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_reportcards_trim_2024", ["id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["classroom"]) || array_key_exists("classroom"$context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.'527$this->source); })()), "id", [], "any"falsefalsefalse527)]), "html"nulltrue);
  781.         yield "\" method=\"post\">
  782.         <div class=\"modal-body\">
  783.            <div class=\"form-group\">
  784.             <label for=\"header_font_size\">Taille de des caracteres dans l entete</label>
  785.             <input type=\"range\" class=\"form-control\" name=\"header_font_size\" id=\"header_font_size\" min=\"1\" max=\"1.6\" step=\"0.01\">
  786.           </div>
  787.           <div class=\"form-group\">
  788.             <label for=\"line_height\">Hauteur des lignes dans le tableau</label>
  789.             <input type=\"range\" class=\"form-control\" name=\"line_height\" id=\"line_height\" min=\"0.5\" max=\"1.5\" step=\"0.01\">
  790.           </div>
  791.           <div class=\"form-check\">
  792.             <input class=\"form-check-input\" type=\"checkbox\"  id=\"copyright\"  name=\"copyright\">
  793.             <label class=\"form-check-label\" for=\"copyright\">
  794.                 Ajout du copyright en pied du bulletin?
  795.             </label>
  796.          </div>
  797.          <div class=\"form-check\">
  798.             <input class=\"form-check-input\" type=\"checkbox\"  id=\"reverse\"  name=\"reverse\">
  799.             <label class=\"form-check-label\" for=\"reverse\">
  800.                 Sens inverse
  801.             </label>
  802.          </div>
  803.         </div>
  804.       
  805.         <div class=\"modal-footer border-top-0 d-flex justify-content-center\">
  806.           <button type=\"submit\" class=\"btn btn-success\">Submit</button>
  807.         </div>
  808.       </form>
  809.     </div>
  810.   </div>
  811. </div>
  812. ";
  813.         
  814.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  815.         
  816.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  817.         yield from [];
  818.     }
  819.     // line 559
  820.     /**
  821.      * @return iterable<null|scalar|\Stringable>
  822.      */
  823.     public function block_javascripts(array $context, array $blocks = []): iterable
  824.     {
  825.         $macros $this->macros;
  826.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  827.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  828.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  829.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  830.         // line 560
  831.         yield "    ";
  832.         yield from $this->yieldParentBlock("javascripts"$context$blocks);
  833.         yield "
  834.     
  835.     <script type=\"text/javascript\">
  836.                         const schoolPerformanceGraph = \$(\"#schoolPerformanceGraph\");                       
  837.                         const datasets = [];
  838.                         //Generate a random color
  839.                         const randomRgbColor = () => {
  840.                             let r = Math.floor(Math.random() * 256); // Random between 0-255
  841.                             let g = Math.floor(Math.random() * 256); // Random between 0-255
  842.                             let b = Math.floor(Math.random() * 256); // Random between 0-255
  843.                             return 'rgb(' + r + ',' + g + ',' + b + ')';
  844.                         };
  845.                        
  846.                        
  847.                                 ";
  848.         // line 575
  849.         if (array_key_exists("session1"$context)) {
  850.             // line 576
  851.             yield "                                    datasets.push( {
  852.                                         label: \"Session 1\",
  853.                                         data : ";
  854.             // line 578
  855.             yield (isset($context["session1"]) || array_key_exists("session1"$context) ? $context["session1"] : (function () { throw new RuntimeError('Variable "session1" does not exist.'578$this->source); })());
  856.             yield ",
  857.                                         fill : false,
  858.                                         backgroundColor: randomRgbColor()
  859.                                     } )
  860.                                 ";
  861.         }
  862.         // line 583
  863.         yield "                                ";
  864.         if (array_key_exists("session2"$context)) {
  865.             // line 584
  866.             yield "                                    datasets.push( {
  867.                                         label: \"Session 2\",
  868.                                         data : ";
  869.             // line 586
  870.             yield (isset($context["session2"]) || array_key_exists("session2"$context) ? $context["session2"] : (function () { throw new RuntimeError('Variable "session2" does not exist.'586$this->source); })());
  871.             yield ",
  872.                                         fill : false,
  873.                                         backgroundColor: randomRgbColor()
  874.                                     } )
  875.                                 ";
  876.         }
  877.         // line 591
  878.         yield "                                 ";
  879.         if (array_key_exists("session3"$context)) {
  880.             // line 592
  881.             yield "                                    datasets.push( {
  882.                                         label: \"Session 3\",
  883.                                         data : ";
  884.             // line 594
  885.             yield (isset($context["session3"]) || array_key_exists("session3"$context) ? $context["session3"] : (function () { throw new RuntimeError('Variable "session3" does not exist.'594$this->source); })());
  886.             yield ",
  887.                                         fill : false,
  888.                                         backgroundColor: randomRgbColor()
  889.                                     } )
  890.                                 ";
  891.         }
  892.         // line 599
  893.         yield "                                 ";
  894.         if (array_key_exists("session4"$context)) {
  895.             // line 600
  896.             yield "                                    datasets.push( {
  897.                                         label: \"Session 4\",
  898.                                         data : ";
  899.             // line 602
  900.             yield (isset($context["session4"]) || array_key_exists("session4"$context) ? $context["session4"] : (function () { throw new RuntimeError('Variable "session4" does not exist.'602$this->source); })());
  901.             yield ",
  902.                                         fill : false,
  903.                                         backgroundColor: randomRgbColor()
  904.                                     } )
  905.                                 ";
  906.         }
  907.         // line 607
  908.         yield "                                 ";
  909.         if (array_key_exists("session5"$context)) {
  910.             // line 608
  911.             yield "                                    datasets.push( {
  912.                                         label: \"Session 5\",
  913.                                         data : ";
  914.             // line 610
  915.             yield (isset($context["session5"]) || array_key_exists("session5"$context) ? $context["session5"] : (function () { throw new RuntimeError('Variable "session5" does not exist.'610$this->source); })());
  916.             yield ",
  917.                                         fill : false,
  918.                                         backgroundColor: randomRgbColor()
  919.                                     } )
  920.                                 ";
  921.         }
  922.         // line 615
  923.         yield "                                 ";
  924.         if (array_key_exists("session6"$context)) {
  925.             // line 616
  926.             yield "                                    datasets.push( {
  927.                                         label: \"Session 6\",
  928.                                         data : ";
  929.             // line 618
  930.             yield (isset($context["session6"]) || array_key_exists("session6"$context) ? $context["session6"] : (function () { throw new RuntimeError('Variable "session6" does not exist.'618$this->source); })());
  931.             yield ",
  932.                                         fill : false,
  933.                                         backgroundColor: randomRgbColor()
  934.                                     } )
  935.                                 ";
  936.         }
  937.         // line 623
  938.         yield "                           
  939.                             
  940.                            
  941.                             
  942.                         
  943.                              
  944.                        
  945.                        let graph = new Chart(schoolPerformanceGraph, {
  946.                             type:\"bar\",
  947.                             data : {
  948.                                 labels: ";
  949.         // line 634
  950.         yield (isset($context["cours"]) || array_key_exists("cours"$context) ? $context["cours"] : (function () { throw new RuntimeError('Variable "cours" does not exist.'634$this->source); })());
  951.         yield ",
  952.                                 datasets: datasets,
  953.                             }, 
  954.                              options: {
  955.                                 plugins: {
  956.                                     title: {
  957.                                         display: true,
  958.                                         text: 'Performances generales annuelles ',
  959.                                         font: {
  960.                                             size: 24,
  961.                                             style: 'bold',
  962.                                             family: 'Helvetica Neue',
  963.                                         },
  964.                                         position: 'bottom',
  965.                                         
  966.                                     }
  967.                                 }
  968.                             }
  969.                         });
  970.        
  971.              
  972.                                 
  973.                                     
  974.     
  975.     // Get the chart element for student category
  976.     let studentCategoryChartElement = document.querySelector(\"#studentCategoryChart\");
  977.     // Create the chart for student category
  978.     let studentCategoryChart = new Chart(studentCategoryChartElement, {
  979.         type: \"pie\",
  980.         data: {
  981.             labels: [\"Passed\", \"Failed\"],
  982.             datasets: [{
  983.                 data: [/* Add data here for the number of students passed and failed */],
  984.                 backgroundColor: [\"green\", \"red\"]
  985.             }]
  986.         }
  987.     });
  988.     // Get the chart element for mention category
  989.     let officialExamsGraph = document.querySelector(\"#officialExamsGraph\");
  990.     // Create the chart for mention category
  991.     const colors = [];
  992.     const mentionCountCategories = ";
  993.         // line 676
  994.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["mentionCountCategories"]) || array_key_exists("mentionCountCategories"$context) ? $context["mentionCountCategories"] : (function () { throw new RuntimeError('Variable "mentionCountCategories" does not exist.'676$this->source); })()), "html"nulltrue);
  995.         yield ";
  996.     mentionCountCategories.map(cat => {
  997.         colors.push(randomRgbColor());
  998.     })
  999.     let officialExamsChart = new Chart(officialExamsGraph, {
  1000.         type: \"pie\",
  1001.         data: {
  1002.             labels:  ";
  1003.         // line 683
  1004.         yield (isset($context["mentionCategories"]) || array_key_exists("mentionCategories"$context) ? $context["mentionCategories"] : (function () { throw new RuntimeError('Variable "mentionCategories" does not exist.'683$this->source); })());
  1005.         yield ",
  1006.             datasets: [{
  1007.                 data: ";
  1008.         // line 685
  1009.         yield (isset($context["mentionCountCategories"]) || array_key_exists("mentionCountCategories"$context) ? $context["mentionCountCategories"] : (function () { throw new RuntimeError('Variable "mentionCountCategories" does not exist.'685$this->source); })());
  1010.         yield ",
  1011.                 backgroundColor: colors
  1012.             }]
  1013.         }, 
  1014.          options: {
  1015.                                 plugins: {
  1016.                                     title: {
  1017.                                         display: true,
  1018.                                         text: 'Resultats aux examens officiels ',
  1019.                                         font: {
  1020.                                             size: 24,
  1021.                                             style: 'bold',
  1022.                                             family: 'Helvetica Neue',
  1023.                                         },
  1024.                                         position: 'bottom',
  1025.                                         
  1026.                                     }
  1027.                                 }
  1028.                             }
  1029.     });
  1030. </script>
  1031. ";
  1032.         
  1033.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1034.         
  1035.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1036.         yield from [];
  1037.     }
  1038.     /**
  1039.      * @codeCoverageIgnore
  1040.      */
  1041.     public function getTemplateName(): string
  1042.     {
  1043.         return "classroom/show.html.twig";
  1044.     }
  1045.     /**
  1046.      * @codeCoverageIgnore
  1047.      */
  1048.     public function isTraitable(): bool
  1049.     {
  1050.         return false;
  1051.     }
  1052.     /**
  1053.      * @codeCoverageIgnore
  1054.      */
  1055.     public function getDebugInfo(): array
  1056.     {
  1057.         return array (  1044 => 685,  1039 => 683,  1029 => 676,  984 => 634,  971 => 623,  963 => 618,  959 => 616,  956 => 615,  948 => 610,  944 => 608,  941 => 607,  933 => 602,  929 => 600,  926 => 599,  918 => 594,  914 => 592,  911 => 591,  903 => 586,  899 => 584,  896 => 583,  888 => 578,  884 => 576,  882 => 575,  863 => 560,  850 => 559,  807 => 527,  785 => 507,  779 => 506,  770 => 503,  766 => 502,  763 => 501,  758 => 500,  754 => 499,  748 => 496,  733 => 483,  727 => 479,  725 => 478,  715 => 470,  705 => 466,  689 => 452,  682 => 450,  680 => 449,  676 => 447,  673 => 446,  665 => 442,  662 => 441,  659 => 440,  653 => 438,  647 => 435,  642 => 434,  639 => 433,  637 => 432,  630 => 428,  624 => 425,  616 => 420,  612 => 419,  606 => 416,  602 => 414,  598 => 413,  594 => 411,  589 => 410,  587 => 409,  507 => 332,  493 => 320,  484 => 316,  482 => 315,  478 => 313,  471 => 309,  464 => 306,  462 => 305,  456 => 302,  450 => 299,  444 => 296,  437 => 292,  433 => 291,  429 => 289,  424 => 288,  422 => 287,  350 => 217,  344 => 214,  326 => 199,  299 => 175,  284 => 163,  256 => 138,  238 => 123,  232 => 121,  230 => 120,  225 => 118,  220 => 116,  211 => 109,  199 => 99,  187 => 89,  185 => 88,  169 => 74,  163 => 72,  159 => 70,  157 => 69,  139 => 54,  121 => 39,  98 => 18,  84 => 8,  82 => 7,  77 => 4,  64 => 3,  41 => 1,);
  1058.     }
  1059.     public function getSourceContext(): Source
  1060.     {
  1061.         return new Source("{% extends \"layout/backEndLayout.html.twig\" %}
  1062. {% block content %}
  1063.     <div class=\"row mt-4\">
  1064.         <div class=\"col-1 mar-bot30\">
  1065.           {% if is_granted('ROLE_ADMIN') %}
  1066.             <a class=\"btn btn-info\" href=\"{{ path('admin_classrooms_new') }}\">
  1067.                 <i class=\"fa fa-plus\"></i>
  1068.                 
  1069.                                                                                                                                                 
  1070.                                                                                                                             
  1071.                                                                                                             
  1072.                                                                                             
  1073.      
  1074.             </a>
  1075.             {% endif %}
  1076.         </div>
  1077.           
  1078.           
  1079.         </div>
  1080.         <div class=\"col-11 jumbotron\">
  1081.             <article class=\"p-3\">
  1082.                 <table class=\"table table-hover record_properties center\">
  1083.                     <tbody>
  1084.                         <tr>
  1085.                             <th scope=\"row\">
  1086.                                 Nom
  1087.                                                                                                                                                                                                                                                             
  1088.                                                                                                                                                                                                                             
  1089.                                                                                                                                                                                             
  1090.                                                                                                                                                             
  1091.                                                                                                                             
  1092.                                                                                             
  1093.                                                             
  1094.                             </th>
  1095.                             <td>
  1096.                                 {{ classroom.name }}
  1097.                             </td>
  1098.                         </tr>
  1099.                         <tr>
  1100.                             <th scope=\"row\">
  1101.                                 Niveau
  1102.                                                                                                                                                                                                                                                             
  1103.                                                                                                                                                                                                                             
  1104.                                                                                                                                                                                             
  1105.                                                                                                                                                             
  1106.                                                                                                                             
  1107.                                                                                             
  1108.                                                             
  1109.                             </th>
  1110.                             <td>
  1111.                                 {{ classroom.level }}
  1112.                             </td>
  1113.                         </tr>
  1114.                         <tr>
  1115.                             <th scope=\"row\">
  1116.                                 Titulaire
  1117.                                                                                                                                                                                                                                                             
  1118.                                                                                                                                                                                                                             
  1119.                                                                                                                                                                                             
  1120.                                                                                                                                                             
  1121.                                                                                                                             
  1122.                                                                                             
  1123.                                                             
  1124.                             </th>
  1125.                             <td>
  1126.                                 {% if mainteacher is null %}
  1127.                                     
  1128.                                     {% else %}
  1129.                                       {{mainteacher.fullName}}
  1130.                                 {% endif %}
  1131.                              
  1132.                             </td>
  1133.                         </tr>
  1134.                         <tr>
  1135.                             <th scope=\"row\">
  1136.                                 Classe d'examen                                                                                                                                                                                                                                                             
  1137.                                                                                                                                                                                                                             
  1138.                                                                                                                                                                                             
  1139.                                                                                                                                                             
  1140.                                                                                                                             
  1141.                                                                                             
  1142.                                                             
  1143.                             </th>
  1144.                             <td>
  1145.                                 {% if (classroom.apc == true) %}
  1146.                                     OUI
  1147.                                                                                                                                                                                                                                                                                                 \t\t\t\t\t\t\t\t
  1148.                                                                                                                                                                                                                                                                                             
  1149.                                                                                                                                                                                                                                                         
  1150.                                                                                                                                                                                                                     
  1151.                                                                                                                                                                                 
  1152.                                                                                                                                             
  1153.                                                                                                         
  1154.                                                                     
  1155.                                 {% else %}
  1156.                                     NON
  1157.                                                                                                                                                                                                                                                                                                 \t\t\t\t\t\t\t\t
  1158.                                                                                                                                                                                                                                                                                             
  1159.                                                                                                                                                                                                                                                         
  1160.                                                                                                                                                                                                                     
  1161.                                                                                                                                                                                 
  1162.                                                                                                                                             
  1163.                                                                                                         
  1164.                                                                     
  1165.                                 {% endif %}
  1166.                             </td>
  1167.                         </tr>
  1168.                     </tbody>
  1169.                 </table>
  1170.                 <div class=\"btn-group record_actions\">
  1171.                     <a class=\"btn btn-info\" href=\"{{ path('admin_classrooms') }}\">
  1172.                         <i class=\"fa fa-list\"></i>
  1173.                         {{ 'Listing'|trans({}, 'admin') }}
  1174.                     </a>
  1175.                     {% if is_granted('ROLE_ADMIN') %}
  1176.                         <a class=\"btn btn-primary\" href=\"{{ path('admin_classrooms_edit', {id: classroom.id}) }}\">
  1177.                             <i class=\"fa fa-edit\"></i>
  1178.                             {{ 'Edit'|trans({}, 'admin') }}
  1179.                         </a>
  1180.                 
  1181.                     <a target=\"_blank\" class=\"btn btn-file\"  data-toggle=\"modal\" data-target=\"#form_modal_courses\" >
  1182.                         <i class=\"fa fa-file-excel-o\"></i>
  1183.                         Recap. Seq
  1184.                                                                                                                                                                                                                     
  1185.                                                                                                                                                                                             
  1186.                                                                                                                                                                     
  1187.                                                                                                                                             
  1188.                                                                                                                     
  1189.                                                                                             
  1190.                                                                     
  1191.                                             
  1192.                     </a>
  1193.                     <a target=\"_blank\" class=\"btn btn-warning\" href=\"{{ path('admin_classrooms_reportcards_seq', {id: classroom.id}) }}\">
  1194.                         <i class=\"fa fa-file\"></i>
  1195.                         Bull Seq
  1196.                                                                                                                                                                                                                     
  1197.                                                                                                                                                                                             
  1198.                                                                                                                                                                     
  1199.                                                                                                                                             
  1200.                                                                                                                     
  1201.                                                                                             
  1202.                                                                     
  1203.                                             
  1204.                     </a>
  1205.                     <a  target=\"_blank\" class=\"btn btn-file\"data-toggle=\"modal\" data-target=\"#form_modal_reportcard_params\">
  1206.                         <i class=\"fa fa-file\"></i>
  1207.                         Bull Trim
  1208.                                                                                                                                                                                                                     
  1209.                                                                                                                                                                                             
  1210.                                                                                                                                                                     
  1211.                                                                                                                                             
  1212.                                                                                                                     
  1213.                                                                                             
  1214.                                                                     
  1215.                                             
  1216.                     </a>
  1217.                     <a target=\"_blank\" class=\"btn btn-outline-warning\" href=\"{{ path('admin_classrooms_recapitulatif_trim', {id: classroom.id}) }}\">
  1218.                         <i class=\"fa fa-file-excel-o\"></i>
  1219.                         Recap Trim
  1220.                                                                                                                                                                                                                     
  1221.                                                                                                                                                                                             
  1222.                                                                                                                                                                     
  1223.                                                                                                                                             
  1224.                                                                                                                     
  1225.                                                                                             
  1226.                                                                     
  1227.                                             
  1228.                     </a>
  1229.                     <a  target=\"_blank\" class=\"btn btn-file\" href=\"{{ path('admin_class_reportcards_apc_year', {id: classroom.id}) }}\">
  1230.                         <i class=\"fa fa-file\"></i>
  1231.                         Bull Ann V1
  1232.                                                                                                                                                                                                                     
  1233.                                                                                                                                                                                             
  1234.                                                                                                                                                                     
  1235.                                                                                                                                             
  1236.                                                                                                                     
  1237.                                                                                             
  1238.                                                                     
  1239.                                             
  1240.                     </a>
  1241.                     <a target=\"_blank\" class=\"btn btn-file\"  >
  1242.                         <i class=\"fa fa-file\"></i>
  1243.                         Bull Ann V2
  1244.                                                                                                                                                                                                                     
  1245.                                                                                                                                                                                             
  1246.                                                                                                                                                                     
  1247.                                                                                                                                             
  1248.                                                                                                                     
  1249.                                                                                             
  1250.                                                                     
  1251.                                             
  1252.                     </a>
  1253.                     <a  target=\"_blank\" class=\"btn btn-light\" href=\"{{ path('admin_current_fulfilled_eval_show', {id: classroom.id}) }}\">
  1254.                         <i class=\"fa fa-list-ul\"></i>
  1255.                         Dépot des PV
  1256.                                                                                                                                                                                                                     
  1257.                                                                                                                                                                                             
  1258.                                                                                                                                                                     
  1259.                                                                                                                                             
  1260.                                                                                                                     
  1261.                                                                                             
  1262.                                                                     
  1263.                                             
  1264.                     </a>
  1265.                     
  1266.                         <button class=\"btn btn-danger\" type=\"submit\">
  1267.                             <i class=\"fa fa-trash-o\"></i>
  1268.                             {{ 'Delete'|trans({}, 'admin') }}
  1269.                         </button>
  1270.                     {% endif %}
  1271.                 </div>
  1272.                 <div class=\"card-header text-center\">
  1273.                     <h2>
  1274.                         Liste des Ã©lèves incrits dans la classe 
  1275.                                                                                                                                                                                             
  1276.                                                                                                                                                                     
  1277.                                                                                                                                             
  1278.                                                                                                                     
  1279.                                                                                             
  1280.                                                                     
  1281.                                             
  1282.                     </h2>
  1283.                 </div>
  1284.                 <table class=\"table table-striped table-hover table-bordered records_list center\">
  1285.                     <thead>
  1286.                         <tr>
  1287.                             <th scope=\"col\">
  1288.                                 Matricule
  1289.                                                                                                                                                                                                                                                             
  1290.                                                                                                                                                                                                                             
  1291.                                                                                                                                                                                             
  1292.                                                                                                                                                             
  1293.                                                                                                                             
  1294.                                                                                             
  1295.                                                             
  1296.                             </th>
  1297.                             <th scope=\"col\">
  1298.                                 Nom
  1299.                                                                                                                                                                                                                                                             
  1300.                                                                                                                                                                                                                             
  1301.                                                                                                                                                                                             
  1302.                                                                                                                                                             
  1303.                                                                                                                             
  1304.                                                                                             
  1305.                                                             
  1306.                             </th>
  1307.                             <th scope=\"col\">
  1308.                                 Prénom
  1309.                                                                                                                                                                                                                                                             
  1310.                                                                                                                                                                                                                             
  1311.                                                                                                                                                                                             
  1312.                                                                                                                                                             
  1313.                                                                                                                             
  1314.                                                                                             
  1315.                                                             
  1316.                             </th>
  1317.                             <th scope=\"col\">
  1318.                                 Photo
  1319.                                                                                                                                                                                                                                                             
  1320.                                                                                                                                                                                                                             
  1321.                                                                                                                                                                                             
  1322.                                                                                                                                                             
  1323.                                                                                                                             
  1324.                                                                                             
  1325.                                                             
  1326.                             </th>
  1327.                              <th scope=\"col\">
  1328.                                 Action
  1329.                                                                                                                                                                                                                                                             
  1330.                                                                                                                                                                                                                             
  1331.                                                                                                                                                                                             
  1332.                                                                                                                                                             
  1333.                                                                                                                             
  1334.                                                                                             
  1335.                                                             
  1336.                             </th>
  1337.                         </tr>
  1338.                     </thead>
  1339.                     <tbody>
  1340.                         {% set effectif =0 %}
  1341.                         {% for std in studentEnrolled %}
  1342.                             <tr>
  1343.                                 <td>
  1344.                                     <a href=\"{{ path('admin_students_show', {id: std.id}) }}\">
  1345.                                         {{ std.matricule }}
  1346.                                     </a>
  1347.                                 </td>
  1348.                                 <td>
  1349.                                     {{ std.lastname }}
  1350.                                 </td>
  1351.                                 <td>
  1352.                                     {{ std.firstname }}
  1353.                                 </td>
  1354.                                 <td>
  1355.                                     {{ fileExists[std.id] }}
  1356.                                 </td>
  1357.                                 <td>
  1358.                                     {% if is_granted('ROLE_ADMIN') %}
  1359.                                         <a class=\"btn btn-outline-danger\" href=\"{{ path('admin_students_unregister', {id: std.id, room_id:classroom.id}) }}\">
  1360.                                                 <i class=\"fa fa-ban\"></i>
  1361.                                         </a>
  1362.                                         <a class=\"btn btn-outline-warning\" href=\"{{ path('admin_students_edit', {id: std.id}) }}\">
  1363.                                         <i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i>                                 
  1364.                                         </a>
  1365.                                     {% endif %}
  1366.                                     
  1367.                                 </td>
  1368.                                 {% set effectif = effectif + 1 %}
  1369.                             </tr>
  1370.                         {% endfor %}
  1371.                         <tr>
  1372.                             <td class=\"center\" colspan=\"2\">
  1373.                                 Effectif
  1374.                                                                                                                                                                                                                                                             
  1375.                                                                                                                                                                                                                             
  1376.                                                                                                                                                                                             
  1377.                                                                                                                                                             
  1378.                                                                                                                             
  1379.                                                                                             
  1380.                                                             
  1381.                             </td>
  1382.                             <td>
  1383.                                 {{ effectif }}
  1384.                             </td>
  1385.                         </tr>
  1386.                     </tbody>
  1387.                 </table>
  1388.                 <div class=\"card-header text-center\">
  1389.                     <h2>
  1390.                         Matières programmées dans la classe 
  1391.                                                                                                                                                                                             
  1392.                                                                                                                                                                     
  1393.                                                                                                                                             
  1394.                                                                                                                     
  1395.                                                                                             
  1396.                                                                     
  1397.                                             
  1398.                     </h2>
  1399.                 </div>
  1400.                 <table class=\"table table-striped table-hover table-bordered records_list center\">
  1401.                     <thead>
  1402.                         <tr>
  1403.                             <th scope=\"col\">
  1404.                                 Module 
  1405.                                                                                                                                                                                                                                                             
  1406.                                                                                                                                                                                                                             
  1407.                                                                                                                                                                                             
  1408.                                                                                                                                                             
  1409.                                                                                                                             
  1410.                                                                                             
  1411.                                                             
  1412.                             </th>
  1413.                             <th scope=\"col\">
  1414.                                 Code 
  1415.                                                                                                                                                                                                                                                             
  1416.                                                                                                                                                                                                                             
  1417.                                                                                                                                                                                             
  1418.                                                                                                                                                             
  1419.                                                                                                                             
  1420.                                                                                             
  1421.                                                             
  1422.                             </th>
  1423.                             <th scope=\"col\">
  1424.                                 Intitulé 
  1425.                                                                                                                                                                                                                                                             
  1426.                                                                                                                                                                                                                             
  1427.                                                                                                                                                                                             
  1428.                                                                                                                                                             
  1429.                                                                                                                             
  1430.                                                                                             
  1431.                                                             
  1432.                             </th>
  1433.                             <th scope=\"col\">
  1434.                                 Coef 
  1435.                                                                                                                                                                                                                                                             
  1436.                                                                                                                                                                                                                             
  1437.                                                                                                                                                                                             
  1438.                                                                                                                                                             
  1439.                                                                                                                             
  1440.                                                                                             
  1441.                                                             
  1442.                             </th>
  1443.                             <th scope=\"col\">
  1444.                                 Enseignant 
  1445.                                                                                                                                                                                                                                                             
  1446.                                                                                                                                                                                                                             
  1447.                                                                                                                                                                                             
  1448.                                                                                                                                                             
  1449.                                                                                                                             
  1450.                                                                                             
  1451.                                                             
  1452.                             </th>
  1453.                         </tr>
  1454.                     </thead>
  1455.                     <tbody>
  1456.                         {% set totalCoef =0 %}
  1457.                         {% for module in modules %}
  1458.                             <tr>
  1459.                                 {% for course in module.courses %}
  1460.                                     <tr>
  1461.                                         <td>
  1462.                                             {{ module.name }}
  1463.                                         </td>
  1464.                                         <td>
  1465.                                             <a href=\"{{ path('admin_courses_show', {id: course.id}) }}\">
  1466.                                                 {{ course.code }}
  1467.                                             </a>
  1468.                                         </td>
  1469.                                         <td>
  1470.                                             {{ course.wording }}
  1471.                                         </td>
  1472.                                         <td>
  1473.                                             {{ course.coefficient }}
  1474.                                         </td>
  1475.                                         <td>
  1476.                                             {% if attributions[course.id] is defined %}
  1477.                                                 {% if is_granted('ROLE_ADMIN') %}
  1478.                                                     <a href=\"{{ path('admin_attributions_edit', {id: attributions[course.id].id}) }}\">
  1479.                                                         {{attributions[course.id].teacher.fullName}}
  1480.                                                     </a>
  1481.                                                 {% else %}
  1482.                                                     {{attributions[course.id].teacher.fullName}}
  1483.                                                 {% endif %}
  1484.                                             {% else %}
  1485.                                             {% if is_granted('ROLE_ADMIN') %}
  1486.                                                 <a href=\"{{ path('admin_attributions_new') }}\">
  1487.                                                     Pas encore attribue
  1488.                                                 </a>
  1489.                                              {% endif %}
  1490.                                             {% endif %}
  1491.                                         </td>
  1492.                                         {% set totalCoef = totalCoef+course.coefficient %}
  1493.                                     </tr>
  1494.                                 {% endfor %}
  1495.                             </tr>
  1496.                             <tr>
  1497.                                 <td class=\"center\" colspan=\"3\">
  1498.                                     total cumul coef 
  1499.                                                                                                                                                                                                                                                                                             
  1500.                                                                                                                                                                                                                                                         
  1501.                                                                                                                                                                                                                     
  1502.                                                                                                                                                                                 
  1503.                                                                                                                                             
  1504.                                                                                                         
  1505.                                                                     
  1506.                                 </td>
  1507.                                 <td>
  1508.                                     {{ totalCoef }}
  1509.                                 </td>
  1510.                             </tr>
  1511.                         {% endfor %}
  1512.                     </tbody>
  1513.                 </table>
  1514.             </article>
  1515.             <section id=\"graphs\">
  1516.                 <article class=\"p-3\">
  1517.                     <canvas id=\"schoolPerformanceGraph\" width=\"700\" height=\"250\"></canvas>
  1518.                 </article>
  1519.                 {% if classroom.apc %}
  1520.                   <article class=\"p-3\">
  1521.                     <canvas id=\"officialExamsGraph\" width=\"200\" height=\"220\" ></canvas>
  1522.                 </article>
  1523.                 {% endif %}
  1524.             </section>
  1525.         </div>
  1526.     </div>
  1527. <!-- Modal pour le choix de cours qui vont figurer dans le recaputulatif sequentiel -->
  1528. <div class=\"modal fade\" id=\"form_modal_courses\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
  1529.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  1530.     <div class=\"modal-content\">
  1531.       <div class=\"modal-header border-bottom-0\">
  1532.         <h5 class=\"modal-title\" id=\"exampleModalLabel\">Choisir les cours a qui doivent figurer dans le recapitulatif</h5>
  1533.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  1534.           <span aria-hidden=\"true\">&times;</span>
  1535.         </button>
  1536.       </div>
  1537.       <form action=\"{{ path('admin_classrooms_recapitulatif_seq', {'id':classroom.id}) }}\" method=\"post\">
  1538.         <div class=\"modal-body\">
  1539.           <div class=\"form-group\">
  1540.              {% for module in modules %}
  1541.                 {% for course in module.courses %}
  1542.                 <li class=\"list-group-item\">
  1543.                         <input class=\"form-check-input me-1\" type=\"checkbox\" checked name=\"selected_courses[]\" value={{course.id}} >
  1544.                         {{course.wording}}
  1545.                 </li>
  1546.                 {% endfor %}
  1547.              {% endfor %}
  1548.           </div>
  1549.         </div>
  1550.       
  1551.         <div class=\"modal-footer border-top-0 d-flex justify-content-center\">
  1552.           <button type=\"submit\" class=\"btn btn-success\">Submit</button>
  1553.         </div>
  1554.       </form>
  1555.     </div>
  1556.   </div>
  1557. </div>
  1558. <!-- Modal pour le parametrage de la presentation des bulletins. -->
  1559. <div class=\"modal fade\" id=\"form_modal_reportcard_params\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalRange\" aria-hidden=\"true\">
  1560.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  1561.     <div class=\"modal-content\">
  1562.       <div class=\"modal-header border-bottom-0\">
  1563.         <h5 class=\"modal-title\" id=\"exampleModalLabel\">Reajuster les  parametres de production des bulletins</h5>
  1564.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  1565.           <span aria-hidden=\"true\">&times;</span>
  1566.         </button>
  1567.       </div>
  1568.       <form action=\"{{ path('admin_classrooms_reportcards_trim_2024', {'id':classroom.id}) }}\" method=\"post\">
  1569.         <div class=\"modal-body\">
  1570.            <div class=\"form-group\">
  1571.             <label for=\"header_font_size\">Taille de des caracteres dans l entete</label>
  1572.             <input type=\"range\" class=\"form-control\" name=\"header_font_size\" id=\"header_font_size\" min=\"1\" max=\"1.6\" step=\"0.01\">
  1573.           </div>
  1574.           <div class=\"form-group\">
  1575.             <label for=\"line_height\">Hauteur des lignes dans le tableau</label>
  1576.             <input type=\"range\" class=\"form-control\" name=\"line_height\" id=\"line_height\" min=\"0.5\" max=\"1.5\" step=\"0.01\">
  1577.           </div>
  1578.           <div class=\"form-check\">
  1579.             <input class=\"form-check-input\" type=\"checkbox\"  id=\"copyright\"  name=\"copyright\">
  1580.             <label class=\"form-check-label\" for=\"copyright\">
  1581.                 Ajout du copyright en pied du bulletin?
  1582.             </label>
  1583.          </div>
  1584.          <div class=\"form-check\">
  1585.             <input class=\"form-check-input\" type=\"checkbox\"  id=\"reverse\"  name=\"reverse\">
  1586.             <label class=\"form-check-label\" for=\"reverse\">
  1587.                 Sens inverse
  1588.             </label>
  1589.          </div>
  1590.         </div>
  1591.       
  1592.         <div class=\"modal-footer border-top-0 d-flex justify-content-center\">
  1593.           <button type=\"submit\" class=\"btn btn-success\">Submit</button>
  1594.         </div>
  1595.       </form>
  1596.     </div>
  1597.   </div>
  1598. </div>
  1599. {% endblock %}
  1600. {% block javascripts %}
  1601.     {{ parent() }}
  1602.     
  1603.     <script type=\"text/javascript\">
  1604.                         const schoolPerformanceGraph = \$(\"#schoolPerformanceGraph\");                       
  1605.                         const datasets = [];
  1606.                         //Generate a random color
  1607.                         const randomRgbColor = () => {
  1608.                             let r = Math.floor(Math.random() * 256); // Random between 0-255
  1609.                             let g = Math.floor(Math.random() * 256); // Random between 0-255
  1610.                             let b = Math.floor(Math.random() * 256); // Random between 0-255
  1611.                             return 'rgb(' + r + ',' + g + ',' + b + ')';
  1612.                         };
  1613.                        
  1614.                        
  1615.                                 {% if session1 is defined %}
  1616.                                     datasets.push( {
  1617.                                         label: \"Session 1\",
  1618.                                         data : {{session1|raw}},
  1619.                                         fill : false,
  1620.                                         backgroundColor: randomRgbColor()
  1621.                                     } )
  1622.                                 {% endif %}
  1623.                                 {% if session2 is defined %}
  1624.                                     datasets.push( {
  1625.                                         label: \"Session 2\",
  1626.                                         data : {{session2|raw}},
  1627.                                         fill : false,
  1628.                                         backgroundColor: randomRgbColor()
  1629.                                     } )
  1630.                                 {% endif %}
  1631.                                  {% if session3 is defined %}
  1632.                                     datasets.push( {
  1633.                                         label: \"Session 3\",
  1634.                                         data : {{session3|raw}},
  1635.                                         fill : false,
  1636.                                         backgroundColor: randomRgbColor()
  1637.                                     } )
  1638.                                 {% endif %}
  1639.                                  {% if session4 is defined %}
  1640.                                     datasets.push( {
  1641.                                         label: \"Session 4\",
  1642.                                         data : {{session4|raw}},
  1643.                                         fill : false,
  1644.                                         backgroundColor: randomRgbColor()
  1645.                                     } )
  1646.                                 {% endif %}
  1647.                                  {% if session5 is defined %}
  1648.                                     datasets.push( {
  1649.                                         label: \"Session 5\",
  1650.                                         data : {{session5|raw}},
  1651.                                         fill : false,
  1652.                                         backgroundColor: randomRgbColor()
  1653.                                     } )
  1654.                                 {% endif %}
  1655.                                  {% if session6 is defined %}
  1656.                                     datasets.push( {
  1657.                                         label: \"Session 6\",
  1658.                                         data : {{session6|raw}},
  1659.                                         fill : false,
  1660.                                         backgroundColor: randomRgbColor()
  1661.                                     } )
  1662.                                 {% endif %}
  1663.                            
  1664.                             
  1665.                            
  1666.                             
  1667.                         
  1668.                              
  1669.                        
  1670.                        let graph = new Chart(schoolPerformanceGraph, {
  1671.                             type:\"bar\",
  1672.                             data : {
  1673.                                 labels: {{ cours|raw }},
  1674.                                 datasets: datasets,
  1675.                             }, 
  1676.                              options: {
  1677.                                 plugins: {
  1678.                                     title: {
  1679.                                         display: true,
  1680.                                         text: 'Performances generales annuelles ',
  1681.                                         font: {
  1682.                                             size: 24,
  1683.                                             style: 'bold',
  1684.                                             family: 'Helvetica Neue',
  1685.                                         },
  1686.                                         position: 'bottom',
  1687.                                         
  1688.                                     }
  1689.                                 }
  1690.                             }
  1691.                         });
  1692.        
  1693.              
  1694.                                 
  1695.                                     
  1696.     
  1697.     // Get the chart element for student category
  1698.     let studentCategoryChartElement = document.querySelector(\"#studentCategoryChart\");
  1699.     // Create the chart for student category
  1700.     let studentCategoryChart = new Chart(studentCategoryChartElement, {
  1701.         type: \"pie\",
  1702.         data: {
  1703.             labels: [\"Passed\", \"Failed\"],
  1704.             datasets: [{
  1705.                 data: [/* Add data here for the number of students passed and failed */],
  1706.                 backgroundColor: [\"green\", \"red\"]
  1707.             }]
  1708.         }
  1709.     });
  1710.     // Get the chart element for mention category
  1711.     let officialExamsGraph = document.querySelector(\"#officialExamsGraph\");
  1712.     // Create the chart for mention category
  1713.     const colors = [];
  1714.     const mentionCountCategories = {{mentionCountCategories}};
  1715.     mentionCountCategories.map(cat => {
  1716.         colors.push(randomRgbColor());
  1717.     })
  1718.     let officialExamsChart = new Chart(officialExamsGraph, {
  1719.         type: \"pie\",
  1720.         data: {
  1721.             labels:  {{ mentionCategories|raw }},
  1722.             datasets: [{
  1723.                 data: {{mentionCountCategories|raw}},
  1724.                 backgroundColor: colors
  1725.             }]
  1726.         }, 
  1727.          options: {
  1728.                                 plugins: {
  1729.                                     title: {
  1730.                                         display: true,
  1731.                                         text: 'Resultats aux examens officiels ',
  1732.                                         font: {
  1733.                                             size: 24,
  1734.                                             style: 'bold',
  1735.                                             family: 'Helvetica Neue',
  1736.                                         },
  1737.                                         position: 'bottom',
  1738.                                         
  1739.                                     }
  1740.                                 }
  1741.                             }
  1742.     });
  1743. </script>
  1744. {% endblock %}
  1745. ""classroom/show.html.twig""/var/www/prod/current/templates/classroom/show.html.twig");
  1746.     }
  1747. }