var/cache/dev/twig/3e/3e98160b829e29a9aab443c46ac4f30c.php line 44

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