var/cache/dev/twig/91/9175a79d46dd4798338cb9da82e9a9db604fc73c689d63bac62596b31b24c553.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* admin/dashboard/index.html.twig */
  14. class __TwigTemplate_da54dba85a1173d6215727b3704bd0b74927761db2a777ae215be88c6ac102c9 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'javascripts' => [$this'block_javascripts'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "admin/base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/dashboard/index.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/dashboard/index.html.twig"));
  40.         $this->parent $this->loadTemplate("admin/base.html.twig""admin/dashboard/index.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         echo "Dashboard";
  56.         
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  58.         
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  60.     }
  61.     // line 5
  62.     public function block_javascripts($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  69.         // line 6
  70.         echo "
  71. <script>
  72.     \$(document).ready(function(){
  73.         \$(\"#adminReport\").submit(function () {
  74.             \$(\".submitBtn\").attr(\"disabled\", true).html('<i class=\"fa fa-spinner fa-spin\"></i>');
  75.             return true;
  76.         });
  77.     });
  78. </script>
  79. ";
  80.         
  81.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  82.         
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  84.     }
  85.     // line 22
  86.     public function block_body($context, array $blocks = [])
  87.     {
  88.         $macros $this->macros;
  89.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  90.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  91.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  92.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  93.         // line 23
  94.         echo "
  95. <div class=\"container-fluid content p-5\">
  96.     <div class=\"row\">
  97.             <h2> Courses of : ";
  98.         // line 26
  99.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'26$this->source); })()), "request", [], "any"falsefalsefalse26), "query", [], "any"falsefalsefalse26), "get", [=> "q"], "method"falsefalsefalse26)) {
  100.             echo " ";
  101.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'26$this->source); })()), "request", [], "any"falsefalsefalse26), "query", [], "any"falsefalsefalse26), "get", [=> "q"], "method"falsefalsefalse26), "html"nulltrue);
  102.             echo " ";
  103.         } else {
  104.             echo " ";
  105.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env, (isset($context["currentDay"]) || array_key_exists("currentDay"$context) ? $context["currentDay"] : (function () { throw new RuntimeError('Variable "currentDay" does not exist.'26$this->source); })()), "d/m/Y"), "html"nulltrue);
  106.             echo " ";
  107.         }
  108.         echo "</h2>
  109.             <form class=\"ml-auto mb-4\">
  110.                 <div class=\"input-group\">
  111.                     <div class=\"input-group-prepend\">
  112.                         <span class=\"input-group-text\" id=\"dateInput\">See another day</span>
  113.                     </div>
  114.                     <input type=\"date\" id=\"date\" name=\"q\"
  115.                            value=\"";
  116.         // line 33
  117.         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'33$this->source); })()), "request", [], "any"falsefalsefalse33), "query", [], "any"falsefalsefalse33), "get", [=> "q"], "method"falsefalsefalse33)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'33$this->source); })()), "request", [], "any"falsefalsefalse33), "query", [], "any"falsefalsefalse33), "get", [=> "q"], "method"falsefalsefalse33)) : (twig_date_format_filter($this->env, (isset($context["currentDay"]) || array_key_exists("currentDay"$context) ? $context["currentDay"] : (function () { throw new RuntimeError('Variable "currentDay" does not exist.'33$this->source); })()), "d/m/Y"))), "html"nulltrue);
  118.         echo "\"
  119.                            min=\"";
  120.         // line 34
  121.         echo twig_escape_filter($this->envtwig_date_format_filter($this->env, (isset($context["currentDay"]) || array_key_exists("currentDay"$context) ? $context["currentDay"] : (function () { throw new RuntimeError('Variable "currentDay" does not exist.'34$this->source); })()), "d/m/Y"), "html"nulltrue);
  122.         echo "\" max=\"31/12/2100\"
  123.                            aria-describedby=\"dateInput\"
  124.                     >
  125.                     <div class=\"input-group-append\">
  126.                         <button type=\"submit\" class=\"btn btn-primary mb-2\">See</button>
  127.                     </div>
  128.                 </div>
  129.             </form>
  130.             <div class=\"table-responsive scrollme\">
  131.                 <small><em class=\"text-secondary\">";
  132.         // line 44
  133.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Ceci est un tableau, faite défiler sur la droite pour voir le reste des informations", [], "messages");
  134.         echo "</em></small>
  135.                 <table class=\"table table-striped\">
  136.                     <thead class=\"thead-dark\">
  137.                     <tr>
  138.                         <th scope=\"col\">الجدول</th>
  139.                         <th scope=\"col\">المعلم</th>
  140.                         <th scope=\"col\">الطالب</th>
  141.                         <th scope=\"col\">الفصل</th>
  142.                         <th scope=\"col\">أعطى المعلم الدرس ؟</th>
  143.                         <th scope=\"col\">دقائق الضائعة في هذا الدرس</th>
  144.                         <th scope=\"col\">هل عوض دقائق ؟ كم</th>
  145.                         <th scope=\"col\">كم تبقى كتعويض لهذا الإشتراك <br> أو لهذه المجموعة ؟</th>
  146.                         <th scope=\"col\">ملاحظات</th>
  147.                         ";
  148.         // line 57
  149.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) {
  150.             // line 58
  151.             echo "                            <th scope=\"col\">تنبيه للطالب المتأخر</th>
  152.                         ";
  153.         }
  154.         // line 60
  155.         echo "                        ";
  156.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  157.             // line 61
  158.             echo "                            <th scope=\"col\">خصم</th>
  159.                         ";
  160.         }
  161.         // line 63
  162.         echo "                        ";
  163.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) {
  164.             // line 64
  165.             echo "                            <th scope=\"col\">تعديل</th>
  166.                         ";
  167.         }
  168.         // line 66
  169.         echo "                        <th scope=\"col\">Last update</th>
  170.                     </tr>
  171.                     </thead>
  172.                     <form id=\"adminReport\" action=\"";
  173.         // line 69
  174.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_course_tracking");
  175.         echo "\" method=\"post\">
  176.                         <tbody>
  177.                         ";
  178.         // line 71
  179.         $context['_parent'] = $context;
  180.         $context['_seq'] = twig_ensure_traversable((isset($context["coursesOfTheDay"]) || array_key_exists("coursesOfTheDay"$context) ? $context["coursesOfTheDay"] : (function () { throw new RuntimeError('Variable "coursesOfTheDay" does not exist.'71$this->source); })()));
  181.         $context['_iterated'] = false;
  182.         foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
  183.             // line 72
  184.             echo "                            <tr>
  185.                                 <th scope=\"row\">";
  186.             // line 73
  187.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "courseDate", [], "any"falsefalsefalse73), "H:i"), "html"nulltrue);
  188.             echo "
  189.                                     <br><small>";
  190.             // line 74
  191.             echo ((twig_get_attribute($this->env$this->source$context["course"], "absenceLogRelated", [], "any"falsefalsefalse74)) ? ("هذا درس تعويض") : (""));
  192.             echo "</small>
  193.                                 </th>
  194.                                 <td>";
  195.             // line 76
  196.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "teacherSchedule", [], "any"falsefalsefalse76), "teacher", [], "any"falsefalsefalse76), "userId", [], "any"falsefalsefalse76), "fullname", [], "any"falsefalsefalse76), "html"nulltrue);
  197.             echo "
  198.                                     <br>
  199.                                     <small><a href=\"";
  200.             // line 78
  201.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_teacher_switch", ["id" => twig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse78)]), "html"nulltrue);
  202.             echo "\">غير إلى معلم بديل</a></small>
  203.                                 </td>
  204.                                 <td>
  205.                                     ";
  206.             // line 81
  207.             if (twig_get_attribute($this->env$this->source$context["course"], "subscriptionOrder", [], "any"falsefalsefalse81)) {
  208.                 // line 82
  209.                 echo "                                        <a target=\"_blank\" href=\"";
  210.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_subscription_show", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "subscriptionOrder", [], "any"falsefalsefalse82), "id", [], "any"falsefalsefalse82)]), "html"nulltrue);
  211.                 echo "\">";
  212.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "subscriptionOrder", [], "any"falsefalsefalse82), "participant", [], "any"falsefalsefalse82)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "subscriptionOrder", [], "any"falsefalsefalse82), "participant", [], "any"falsefalsefalse82), "fullname", [], "any"falsefalsefalse82)) : (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "subscriptionOrder", [], "any"falsefalsefalse82), "user", [], "any"falsefalsefalse82), "fullname", [], "any"falsefalsefalse82))), "html"nulltrue);
  213.                 echo "</a>
  214.                                         ";
  215.                 // line 83
  216.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "subscriptionOrder", [], "any"falsefalsefalse83), "participant", [], "any"falsefalsefalse83)) {
  217.                     // line 84
  218.                     echo "                                            ";
  219.                     if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "subscriptionOrder", [], "any"falsefalsefalse84), "participant", [], "any"falsefalsefalse84), "isChild", [], "any"falsefalsefalse84), true))) {
  220.                         // line 85
  221.                         echo "                                                ";
  222.                         if ((-=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "subscriptionOrder", [], "any"falsefalsefalse85), "participant", [], "any"falsefalsefalse85), "age", [], "any"falsefalsefalse85), 5))) {
  223.                             // line 86
  224.                             echo "                                                    <i class=\"fas fa-baby text-warning\"></i>
  225.                                                     ";
  226.                             // line 87
  227.                             if ((-=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "subscriptionOrder", [], "any"falsefalsefalse87), "participant", [], "any"falsefalsefalse87), "age", [], "any"falsefalsefalse87), 3))) {
  228.                                 // line 88
  229.                                 echo "                                                        <br>
  230.                                                         <i class=\"fas fa-exclamation-circle text-danger\"></i> <small>";
  231.                                 // line 89
  232.                                 echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Cet enfant à moins de 3 ans", [], "messages");
  233.                                 echo "</small>
  234.                                                     ";
  235.                             }
  236.                             // line 91
  237.                             echo "                                                    ";
  238.                         } else {
  239.                             // line 92
  240.                             echo "                                                        <i class=\"fas fa-child\"></i>
  241.                                                 ";
  242.                         }
  243.                         // line 94
  244.                         echo "                                            ";
  245.                     }
  246.                     // line 95
  247.                     echo "                                        ";
  248.                 }
  249.                 // line 96
  250.                 echo "                                    ";
  251.             } elseif (twig_get_attribute($this->env$this->source$context["course"], "sessionGroup", [], "any"falsefalsefalse96)) {
  252.                 // line 97
  253.                 echo "                                        <a target=\"_blank\" href=\"";
  254.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_session_student_index", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "sessionGroup", [], "any"falsefalsefalse97), "id", [], "any"falsefalsefalse97)]), "html"nulltrue);
  255.                 echo "\">";
  256.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "sessionGroup", [], "any"falsefalsefalse97), "displayNameEn", [], "any"falsefalsefalse97), "html"nulltrue);
  257.                 echo "</a>
  258.                                         <br>
  259.                                         <small>درس مجموعة</small>
  260.                                     ";
  261.             } elseif (twig_get_attribute($this->env$this->source,             // line 100
  262. $context["course"], "videoRegistration", [], "any"falsefalsefalse100)) {
  263.                 // line 101
  264.                 echo "                                        <a target=\"_blank\" href=\"";
  265.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("video_courses_registration_show", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "videoRegistration", [], "any"falsefalsefalse101), "id", [], "any"falsefalsefalse101)]), "html"nulltrue);
  266.                 echo "\">";
  267.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "videoRegistration", [], "any"falsefalsefalse101), "participant", [], "any"falsefalsefalse101)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "videoRegistration", [], "any"falsefalsefalse101), "participant", [], "any"falsefalsefalse101), "fullname", [], "any"falsefalsefalse101)) : (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "videoRegistration", [], "any"falsefalsefalse101), "user", [], "any"falsefalsefalse101), "fullname", [], "any"falsefalsefalse101))), "html"nulltrue);
  268.                 echo "</a>
  269.                                         <br>
  270.                                         <small> درس فيديو</small>
  271.                                     ";
  272.             } elseif (twig_get_attribute($this->env$this->source,             // line 104
  273. $context["course"], "ticketOrder", [], "any"falsefalsefalse104)) {
  274.                 // line 105
  275.                 echo "                                        <a target=\"_blank\" href=\"";
  276.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_ticketOrder_show", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "ticketOrder", [], "any"falsefalsefalse105), "id", [], "any"falsefalsefalse105)]), "html"nulltrue);
  277.                 echo "\">";
  278.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "ticketOrder", [], "any"falsefalsefalse105), "participant", [], "any"falsefalsefalse105)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "ticketOrder", [], "any"falsefalsefalse105), "participant", [], "any"falsefalsefalse105), "fullname", [], "any"falsefalsefalse105)) : (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "ticketOrder", [], "any"falsefalsefalse105), "user", [], "any"falsefalsefalse105), "fullname", [], "any"falsefalsefalse105))), "html"nulltrue);
  279.                 echo "</a>
  280.                                         <br>
  281.                                         <small>🚨&nbsp;Ticket</small>
  282.                                     ";
  283.             } elseif (twig_get_attribute($this->env$this->source,             // line 108
  284. $context["course"], "userTestLevel", [], "any"falsefalsefalse108)) {
  285.                 // line 109
  286.                 echo "                                        <a target=\"_blank\" href=\"";
  287.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_placement_test_show", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "userTestLevel", [], "any"falsefalsefalse109), "id", [], "any"falsefalsefalse109)]), "html"nulltrue);
  288.                 echo "\">";
  289.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "userTestLevel", [], "any"falsefalsefalse109), "participant", [], "any"falsefalsefalse109)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "userTestLevel", [], "any"falsefalsefalse109), "participant", [], "any"falsefalsefalse109), "fullname", [], "any"falsefalsefalse109)) : (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "userTestLevel", [], "any"falsefalsefalse109), "user", [], "any"falsefalsefalse109), "fullname", [], "any"falsefalsefalse109))), "html"nulltrue);
  290.                 echo "</a>
  291.                                         <br>
  292.                                         <small>🚨&nbsp;Level Test</small>
  293.                                     ";
  294.             }
  295.             // line 113
  296.             echo "                                </td>
  297.                                 <td>
  298.                                     ";
  299.             // line 115
  300.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "teacherSchedule", [], "any"falsefalsefalse115), "room", [], "any"falsefalsefalse115)) {
  301.                 // line 116
  302.                 echo "                                        ";
  303.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "teacherSchedule", [], "any"falsefalsefalse116), "room", [], "any"falsefalsefalse116), "name", [], "any"falsefalsefalse116), "html"nulltrue);
  304.                 echo " <br>
  305.                                         <i class=\"fas fa-external-link-alt\"></i>&nbsp;<a target=\"_blank\" href=\"";
  306.                 // line 117
  307.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "teacherSchedule", [], "any"falsefalsefalse117), "room", [], "any"falsefalsefalse117), "urlWithPassword", [], "any"falsefalsefalse117), "html"nulltrue);
  308.                 echo "\"><small>";
  309.                 echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Accès direct (sans mot de passe)", [], "messages");
  310.                 echo "</small> </a>
  311.                                         <br>
  312.                                         <i class=\"fas fa-external-link-alt\"></i>&nbsp;<a target=\"_blank\" href=\"";
  313.                 // line 119
  314.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "teacherSchedule", [], "any"falsefalsefalse119), "room", [], "any"falsefalsefalse119), "urlWithoutPassword", [], "any"falsefalsefalse119), "html"nulltrue);
  315.                 echo "\"><small>";
  316.                 echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Accès classique (avec mot de passe) :", [], "messages");
  317.                 echo " <strong>";
  318.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "teacherSchedule", [], "any"falsefalsefalse119), "room", [], "any"falsefalsefalse119), "roomPassword", [], "any"falsefalsefalse119), "html"nulltrue);
  319.                 echo "</strong></small> </a>
  320.                                         ";
  321.             } else {
  322.                 // line 121
  323.                 echo "                                        ATTENTION: NO ROOM FOR THIS SCHEDULE!!
  324.                                     ";
  325.             }
  326.             // line 123
  327.             echo "                                </td>
  328.                                 <td>
  329.                                     ";
  330.             // line 125
  331.             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["course"], "isDone", [], "any"falsefalsefalse125), true))) {
  332.                 // line 126
  333.                 echo "                                        <i class=\"fas fa-check text-success\"></i>
  334.                                     ";
  335.             } elseif ((=== twig_compare(twig_get_attribute($this->env$this->source,             // line 127
  336. $context["course"], "isCanceled", [], "any"falsefalsefalse127), true))) {
  337.                 // line 128
  338.                 echo "                                        <i class=\"fas fa-times text-danger\"></i>
  339.                                     ";
  340.             } else {
  341.                 // line 130
  342.                 echo "                                        ";
  343.                 if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) {
  344.                     // line 131
  345.                     echo "                                            <div class=\"form-check\">
  346.                                                 <input class=\"form-check-input\" type=\"checkbox\" value=\"";
  347.                     // line 132
  348.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse132), "html"nulltrue);
  349.                     echo "\" id=\"";
  350.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse132), "html"nulltrue);
  351.                     echo "\"  name=\"done[";
  352.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse132), "html"nulltrue);
  353.                     echo "]\">
  354.                                                 <label for=\"";
  355.                     // line 133
  356.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse133), "html"nulltrue);
  357.                     echo "\" class=\"text-success font-weight-bold\">نعم</label>
  358.                                             </div>
  359.                                             <div class=\"form-check\">
  360.                                                 <input onclick=\"return confirm('متأكدة أن المعلم غاب؟');\" class=\"form-check-input\" type=\"checkbox\" value=\"";
  361.                     // line 136
  362.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse136), "html"nulltrue);
  363.                     echo "\" id=\"";
  364.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse136), "html"nulltrue);
  365.                     echo "\"  name=\"notDone[";
  366.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse136), "html"nulltrue);
  367.                     echo "]\">
  368.                                                 <label for=\"";
  369.                     // line 137
  370.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse137), "html"nulltrue);
  371.                     echo "\" class=\"text-danger font-weight-bold\">لا</label>
  372.                                             </div>
  373.                                             <div class=\"form-check\">
  374.                                                 <input class=\"form-check-input\" type=\"checkbox\" value=\"";
  375.                     // line 140
  376.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse140), "html"nulltrue);
  377.                     echo "\" id=\"";
  378.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse140), "html"nulltrue);
  379.                     echo "\"  name=\"studentAbsent[";
  380.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse140), "html"nulltrue);
  381.                     echo "]\">
  382.                                                 <label for=\"";
  383.                     // line 141
  384.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse141), "html"nulltrue);
  385.                     echo "\" class=\"text-warning font-weight-bold\">انتظار</label>
  386.                                             </div>
  387.                                         ";
  388.                 }
  389.                 // line 144
  390.                 echo "                                    ";
  391.             }
  392.             // line 145
  393.             echo "                                </td>
  394.                                 ";
  395.             // line 147
  396.             if (((=== twig_compare(twig_get_attribute($this->env$this->source$context["course"], "isDone", [], "any"falsefalsefalse147), true)) || (=== twig_compare(twig_get_attribute($this->env$this->source$context["course"], "isCanceled", [], "any"falsefalsefalse147), true)))) {
  397.                 // line 148
  398.                 echo "                                    <td>
  399.                                         ";
  400.                 // line 149
  401.                 ((twig_get_attribute($this->env$this->source$context["course"], "LostMinutes", [], "any"falsefalsefalse149)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "LostMinutes", [], "any"falsefalsefalse149), "html"nulltrue))) : (print ("")));
  402.                 echo "
  403.                                     </td>
  404.                                     <td>
  405.                                         ";
  406.                 // line 152
  407.                 ((twig_get_attribute($this->env$this->source$context["course"], "catchUpMinutes", [], "any"falsefalsefalse152)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "catchUpMinutes", [], "any"falsefalsefalse152), "html"nulltrue))) : (print ("")));
  408.                 echo "
  409.                                     </td>
  410.                                     <td>
  411.                                         ";
  412.                 // line 155
  413.                 echo (((=== twig_compare(twig_get_attribute($this->env$this->source$context["course"], "isWaiting", [], "any"falsefalsefalse155), true))) ? ("الطالب كان غائب") : (""));
  414.                 echo "
  415.                                     </td>
  416.                                     <td>
  417.                                         ";
  418.                 // line 158
  419.                 ((twig_get_attribute($this->env$this->source$context["course"], "comment", [], "any"falsefalsefalse158)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "comment", [], "any"falsefalsefalse158), "html"nulltrue))) : (print ("")));
  420.                 echo "
  421.                                     </td>
  422.                                     <td></td>
  423.                                 ";
  424.             } else {
  425.                 // line 162
  426.                 echo "                                    <td>
  427.                                         ";
  428.                 // line 163
  429.                 if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) {
  430.                     // line 164
  431.                     echo "                                            <input type=\"number\" name=\"lostMinutes[";
  432.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse164), "html"nulltrue);
  433.                     echo "]\" min=\"0\" max=\"45\" value=\"\">
  434.                                         ";
  435.                 }
  436.                 // line 166
  437.                 echo "                                    </td>
  438.                                     <td>
  439.                                         ";
  440.                 // line 168
  441.                 if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) {
  442.                     // line 169
  443.                     echo "                                            <input type=\"number\" name=\"catchupMinutes[";
  444.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse169), "html"nulltrue);
  445.                     echo "]\" min=\"0\" max=\"45\" value=\"\">
  446.                                         ";
  447.                 }
  448.                 // line 171
  449.                 echo "                                    </td>
  450.                                     <td>
  451.                                         ";
  452.                 // line 173
  453.                 if (twig_get_attribute($this->env$this->source$context["course"], "subscriptionOrder", [], "any"falsefalsefalse173)) {
  454.                     // line 174
  455.                     echo "                                            ";
  456.                     ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "subscriptionOrder", [], "any"falsefalsefalse174), "totalLostMinutes", [], "any"falsefalsefalse174)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "subscriptionOrder", [], "any"falsefalsefalse174), "totalLostMinutes", [], "any"falsefalsefalse174), "html"nulltrue))) : (print ("")));
  457.                     echo "
  458.                                         ";
  459.                 }
  460.                 // line 176
  461.                 echo "                                        ";
  462.                 if (twig_get_attribute($this->env$this->source$context["course"], "sessionGroup", [], "any"falsefalsefalse176)) {
  463.                     // line 177
  464.                     echo "                                            ";
  465.                     ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "sessionGroup", [], "any"falsefalsefalse177), "totalLostMinutes", [], "any"falsefalsefalse177)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "sessionGroup", [], "any"falsefalsefalse177), "totalLostMinutes", [], "any"falsefalsefalse177), "html"nulltrue))) : (print ("")));
  466.                     echo "
  467.                                         ";
  468.                 }
  469.                 // line 179
  470.                 echo "                                    </td>
  471.                                     <td>
  472.                                         ";
  473.                 // line 181
  474.                 if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) {
  475.                     // line 182
  476.                     echo "                                            ";
  477.                     ((twig_get_attribute($this->env$this->source$context["course"], "comment", [], "any"falsefalsefalse182)) ? (print (twig_escape_filter($this->env, ("ملاحظات مسجلة: " twig_get_attribute($this->env$this->source$context["course"], "comment", [], "any"falsefalsefalse182)), "html"nulltrue))) : (print ("")));
  478.                     echo "
  479.                                             <div class=\"form-row\">
  480.                                                 ";
  481.                     // line 184
  482.                     echo ((twig_get_attribute($this->env$this->source$context["course"], "comment", [], "any"falsefalsefalse184)) ? ("سجل ملاحظات زائدة : ") : (" "));
  483.                     echo "
  484.                                                 <input class=\"form-control\" type=\"text\" name=\"comment[";
  485.                     // line 185
  486.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse185), "html"nulltrue);
  487.                     echo "]\" value=\"\">
  488.                                             </div>
  489.                                         ";
  490.                 }
  491.                 // line 188
  492.                 echo "                                    </td>
  493.                                     ";
  494.                 // line 189
  495.                 if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) {
  496.                     // line 190
  497.                     echo "                                        <td>
  498.                                             ";
  499.                     // line 191
  500.                     if (twig_get_attribute($this->env$this->source$context["course"], "subscriptionOrder", [], "any"falsefalsefalse191)) {
  501.                         // line 192
  502.                         echo "                                                <a href=\"";
  503.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("subscription_warning_late_student", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "subscriptionOrder", [], "any"falsefalsefalse192), "id", [], "any"falsefalsefalse192)]), "html"nulltrue);
  504.                         echo "\"  class=\"btn btn-danger\">ارسلي التنبه</a>
  505.                                             ";
  506.                     }
  507.                     // line 195
  508.                     echo "                                            ";
  509.                     if (twig_get_attribute($this->env$this->source$context["course"], "userTestLevel", [], "any"falsefalsefalse195)) {
  510.                         // line 196
  511.                         echo "                                                <a methods=\"post\" href=\"";
  512.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_placement_test_alert", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "userTestLevel", [], "any"falsefalsefalse196), "id", [], "any"falsefalsefalse196), "course" => twig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse196)]), "html"nulltrue);
  513.                         echo "\" class=\"btn btn-danger\">ارسلي التنبه</a>
  514.                                             ";
  515.                     }
  516.                     // line 198
  517.                     echo "                                        </td>
  518.                                     ";
  519.                 }
  520.                 // line 200
  521.                 echo "                                ";
  522.             }
  523.             // line 201
  524.             echo "                                ";
  525.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  526.                 // line 202
  527.                 echo "                                    <td ";
  528.                 echo (((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "teacherSchedule", [], "any"falsefalsefalse202), "teacher", [], "any"falsefalsefalse202), "currency", [], "any"falsefalsefalse202), "USD"))) ? ("class=\"alert alert-info\"") : (""));
  529.                 echo ">
  530.                                         ";
  531.                 // line 203
  532.                 if (twig_get_attribute($this->env$this->source$context["course"], "penalty", [], "any"falsefalsefalse203)) {
  533.                     // line 204
  534.                     echo "                                            ";
  535.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "penalty", [], "any"falsefalsefalse204), "html"nulltrue);
  536.                     echo " ";
  537.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["course"], "teacherSchedule", [], "any"falsefalsefalse204), "teacher", [], "any"falsefalsefalse204), "currency", [], "any"falsefalsefalse204), "html"nulltrue);
  538.                     echo "
  539.                                         ";
  540.                 } else {
  541.                     // line 206
  542.                     echo "                                            <input type=\"number\" name=\"penalty[";
  543.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse206), "html"nulltrue);
  544.                     echo "]\" min=\"0\" max=\"100\" step=\"any\" value=\"\">
  545.                                         ";
  546.                 }
  547.                 // line 208
  548.                 echo "                                    </td>
  549.                                 ";
  550.             }
  551.             // line 210
  552.             echo "                                ";
  553.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) {
  554.                 // line 211
  555.                 echo "                                    <td>
  556.                                         ";
  557.                 // line 212
  558.                 if (((=== twig_compare(twig_get_attribute($this->env$this->source$context["course"], "isDone", [], "any"falsefalsefalse212), true)) || (=== twig_compare(twig_get_attribute($this->env$this->source$context["course"], "isCanceled", [], "any"falsefalsefalse212), true)))) {
  559.                     // line 213
  560.                     echo "                                            <a href=\"";
  561.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_course_tracking_edit", ["id" => twig_get_attribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse213)]), "html"nulltrue);
  562.                     echo "\"><i class=\"fas fa-edit\"></i></a>
  563.                                         ";
  564.                 }
  565.                 // line 215
  566.                 echo "                                    </td>
  567.                                 ";
  568.             }
  569.             // line 217
  570.             echo "                                <td>
  571.                                     ";
  572.             // line 218
  573.             if (twig_get_attribute($this->env$this->source$context["course"], "updateBy", [], "any"falsefalsefalse218)) {
  574.                 // line 219
  575.                 echo "                                        <small>
  576.                                             Update by ";
  577.                 // line 220
  578.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "updateBy", [], "any"falsefalsefalse220), "html"nulltrue);
  579.                 echo " <br>
  580.                                             at ";
  581.                 // line 221
  582.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "updateAt", [], "any"falsefalsefalse221), "d/m/Y H:i"), "html"nulltrue);
  583.                 echo "
  584.                                         </small>
  585.                                     ";
  586.             }
  587.             // line 224
  588.             echo "                                </td>
  589.                             </tr>
  590.                         ";
  591.             $context['_iterated'] = true;
  592.         }
  593.         if (!$context['_iterated']) {
  594.             // line 227
  595.             echo "                            <tr>
  596.                                 <td colspan=\"13\" class=\"text-center\">Pas de cours aujourd'hui</td>
  597.                             </tr>
  598.                         ";
  599.         }
  600.         $_parent $context['_parent'];
  601.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['course'], $context['_parent'], $context['loop']);
  602.         $context array_intersect_key($context$_parent) + $_parent;
  603.         // line 231
  604.         echo "                        </tbody>
  605.                         ";
  606.         // line 232
  607.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) {
  608.             // line 233
  609.             echo "                            <tfoot>
  610.                             <td colspan=\"12\" class=\"text-center\">
  611.                                 <button type=\"submit\" name=\"submitReportTracking\" class=\"btn btn-success submitBtn\">ارسلي التقرير</button>
  612.                             </td>
  613.                             </tfoot>
  614.                         ";
  615.         }
  616.         // line 239
  617.         echo "                    </form>
  618.                 </table>
  619.             </div>
  620.     </div>
  621. </div>
  622. </div>
  623. ";
  624.         
  625.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  626.         
  627.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  628.     }
  629.     public function getTemplateName()
  630.     {
  631.         return "admin/dashboard/index.html.twig";
  632.     }
  633.     public function isTraitable()
  634.     {
  635.         return false;
  636.     }
  637.     public function getDebugInfo()
  638.     {
  639.         return array (  649 => 239,  641 => 233,  639 => 232,  636 => 231,  627 => 227,  620 => 224,  614 => 221,  610 => 220,  607 => 219,  605 => 218,  602 => 217,  598 => 215,  592 => 213,  590 => 212,  587 => 211,  584 => 210,  580 => 208,  574 => 206,  566 => 204,  564 => 203,  559 => 202,  556 => 201,  553 => 200,  549 => 198,  543 => 196,  540 => 195,  533 => 192,  531 => 191,  528 => 190,  526 => 189,  523 => 188,  517 => 185,  513 => 184,  507 => 182,  505 => 181,  501 => 179,  495 => 177,  492 => 176,  486 => 174,  484 => 173,  480 => 171,  474 => 169,  472 => 168,  468 => 166,  462 => 164,  460 => 163,  457 => 162,  450 => 158,  444 => 155,  438 => 152,  432 => 149,  429 => 148,  427 => 147,  423 => 145,  420 => 144,  414 => 141,  406 => 140,  400 => 137,  392 => 136,  386 => 133,  378 => 132,  375 => 131,  372 => 130,  368 => 128,  366 => 127,  363 => 126,  361 => 125,  357 => 123,  353 => 121,  344 => 119,  337 => 117,  332 => 116,  330 => 115,  326 => 113,  316 => 109,  314 => 108,  305 => 105,  303 => 104,  294 => 101,  292 => 100,  283 => 97,  280 => 96,  277 => 95,  274 => 94,  270 => 92,  267 => 91,  262 => 89,  259 => 88,  257 => 87,  254 => 86,  251 => 85,  248 => 84,  246 => 83,  239 => 82,  237 => 81,  231 => 78,  226 => 76,  221 => 74,  217 => 73,  214 => 72,  209 => 71,  204 => 69,  199 => 66,  195 => 64,  192 => 63,  188 => 61,  185 => 60,  181 => 58,  179 => 57,  163 => 44,  150 => 34,  146 => 33,  128 => 26,  123 => 23,  113 => 22,  89 => 6,  79 => 5,  60 => 3,  37 => 1,);
  640.     }
  641.     public function getSourceContext()
  642.     {
  643.         return new Source("{% extends 'admin/base.html.twig' %}
  644. {% block title %}Dashboard{% endblock %}
  645. {% block javascripts %}
  646. <script>
  647.     \$(document).ready(function(){
  648.         \$(\"#adminReport\").submit(function () {
  649.             \$(\".submitBtn\").attr(\"disabled\", true).html('<i class=\"fa fa-spinner fa-spin\"></i>');
  650.             return true;
  651.         });
  652.     });
  653. </script>
  654. {% endblock %}
  655.     {% block body %}
  656. <div class=\"container-fluid content p-5\">
  657.     <div class=\"row\">
  658.             <h2> Courses of : {% if app.request.query.get('q') %} {{ app.request.query.get('q') }} {% else %} {{ currentDay|date('d/m/Y') }} {% endif %}</h2>
  659.             <form class=\"ml-auto mb-4\">
  660.                 <div class=\"input-group\">
  661.                     <div class=\"input-group-prepend\">
  662.                         <span class=\"input-group-text\" id=\"dateInput\">See another day</span>
  663.                     </div>
  664.                     <input type=\"date\" id=\"date\" name=\"q\"
  665.                            value=\"{{ app.request.query.get('q') ?  app.request.query.get('q') : currentDay|date('d/m/Y') }}\"
  666.                            min=\"{{ currentDay|date('d/m/Y') }}\" max=\"31/12/2100\"
  667.                            aria-describedby=\"dateInput\"
  668.                     >
  669.                     <div class=\"input-group-append\">
  670.                         <button type=\"submit\" class=\"btn btn-primary mb-2\">See</button>
  671.                     </div>
  672.                 </div>
  673.             </form>
  674.             <div class=\"table-responsive scrollme\">
  675.                 <small><em class=\"text-secondary\">{% trans %}Ceci est un tableau, faite défiler sur la droite pour voir le reste des informations{% endtrans %}</em></small>
  676.                 <table class=\"table table-striped\">
  677.                     <thead class=\"thead-dark\">
  678.                     <tr>
  679.                         <th scope=\"col\">الجدول</th>
  680.                         <th scope=\"col\">المعلم</th>
  681.                         <th scope=\"col\">الطالب</th>
  682.                         <th scope=\"col\">الفصل</th>
  683.                         <th scope=\"col\">أعطى المعلم الدرس ؟</th>
  684.                         <th scope=\"col\">دقائق الضائعة في هذا الدرس</th>
  685.                         <th scope=\"col\">هل عوض دقائق ؟ كم</th>
  686.                         <th scope=\"col\">كم تبقى كتعويض لهذا الإشتراك <br> أو لهذه المجموعة ؟</th>
  687.                         <th scope=\"col\">ملاحظات</th>
  688.                         {% if is_granted('ROLE_AR') %}
  689.                             <th scope=\"col\">تنبيه للطالب المتأخر</th>
  690.                         {% endif %}
  691.                         {% if is_granted('ROLE_ADMIN') %}
  692.                             <th scope=\"col\">خصم</th>
  693.                         {% endif %}
  694.                         {% if is_granted('ROLE_AR') %}
  695.                             <th scope=\"col\">تعديل</th>
  696.                         {% endif %}
  697.                         <th scope=\"col\">Last update</th>
  698.                     </tr>
  699.                     </thead>
  700.                     <form id=\"adminReport\" action=\"{{ path('admin_course_tracking')}}\" method=\"post\">
  701.                         <tbody>
  702.                         {% for course in coursesOfTheDay %}
  703.                             <tr>
  704.                                 <th scope=\"row\">{{ course.courseDate|date('H:i') }}
  705.                                     <br><small>{{ course.absenceLogRelated ? 'هذا درس تعويض' : '' }}</small>
  706.                                 </th>
  707.                                 <td>{{ course.teacherSchedule.teacher.userId.fullname }}
  708.                                     <br>
  709.                                     <small><a href=\"{{ path('admin_teacher_switch', {'id': course.id}) }}\">غير إلى معلم بديل</a></small>
  710.                                 </td>
  711.                                 <td>
  712.                                     {% if course.subscriptionOrder %}
  713.                                         <a target=\"_blank\" href=\"{{ path('admin_subscription_show', {'id': course.subscriptionOrder.id}) }}\">{{ course.subscriptionOrder.participant ? course.subscriptionOrder.participant.fullname : course.subscriptionOrder.user.fullname }}</a>
  714.                                         {% if course.subscriptionOrder.participant %}
  715.                                             {% if course.subscriptionOrder.participant.isChild == true   %}
  716.                                                 {% if course.subscriptionOrder.participant.age < 5 %}
  717.                                                     <i class=\"fas fa-baby text-warning\"></i>
  718.                                                     {% if course.subscriptionOrder.participant.age < 3 %}
  719.                                                         <br>
  720.                                                         <i class=\"fas fa-exclamation-circle text-danger\"></i> <small>{% trans %}Cet enfant à moins de 3 ans{% endtrans %}</small>
  721.                                                     {% endif %}
  722.                                                     {% else %}
  723.                                                         <i class=\"fas fa-child\"></i>
  724.                                                 {% endif %}
  725.                                             {% endif %}
  726.                                         {% endif %}
  727.                                     {% elseif course.sessionGroup %}
  728.                                         <a target=\"_blank\" href=\"{{ path('admin_session_student_index', {'id': course.sessionGroup.id}) }}\">{{ course.sessionGroup.displayNameEn }}</a>
  729.                                         <br>
  730.                                         <small>درس مجموعة</small>
  731.                                     {% elseif course.videoRegistration %}
  732.                                         <a target=\"_blank\" href=\"{{ path('video_courses_registration_show', {'id': course.videoRegistration.id}) }}\">{{ course.videoRegistration.participant ? course.videoRegistration.participant.fullname : course.videoRegistration.user.fullname }}</a>
  733.                                         <br>
  734.                                         <small> درس فيديو</small>
  735.                                     {% elseif course.ticketOrder %}
  736.                                         <a target=\"_blank\" href=\"{{ path('admin_ticketOrder_show', {'id': course.ticketOrder.id}) }}\">{{ course.ticketOrder.participant ? course.ticketOrder.participant.fullname : course.ticketOrder.user.fullname }}</a>
  737.                                         <br>
  738.                                         <small>🚨&nbsp;Ticket</small>
  739.                                     {% elseif course.userTestLevel %}
  740.                                         <a target=\"_blank\" href=\"{{ path('user_placement_test_show', {'id': course.userTestLevel.id}) }}\">{{ course.userTestLevel.participant ? course.userTestLevel.participant.fullname : course.userTestLevel.user.fullname }}</a>
  741.                                         <br>
  742.                                         <small>🚨&nbsp;Level Test</small>
  743.                                     {% endif %}
  744.                                 </td>
  745.                                 <td>
  746.                                     {% if course.teacherSchedule.room %}
  747.                                         {{ course.teacherSchedule.room.name }} <br>
  748.                                         <i class=\"fas fa-external-link-alt\"></i>&nbsp;<a target=\"_blank\" href=\"{{ course.teacherSchedule.room.urlWithPassword }}\"><small>{% trans %}Accès direct (sans mot de passe){% endtrans %}</small> </a>
  749.                                         <br>
  750.                                         <i class=\"fas fa-external-link-alt\"></i>&nbsp;<a target=\"_blank\" href=\"{{ course.teacherSchedule.room.urlWithoutPassword }}\"><small>{% trans %}Accès classique (avec mot de passe) :{% endtrans %} <strong>{{ course.teacherSchedule.room.roomPassword }}</strong></small> </a>
  751.                                         {% else %}
  752.                                         ATTENTION: NO ROOM FOR THIS SCHEDULE!!
  753.                                     {% endif %}
  754.                                 </td>
  755.                                 <td>
  756.                                     {% if course.isDone == true %}
  757.                                         <i class=\"fas fa-check text-success\"></i>
  758.                                     {% elseif course.isCanceled == true %}
  759.                                         <i class=\"fas fa-times text-danger\"></i>
  760.                                     {% else %}
  761.                                         {% if is_granted('ROLE_AR') %}
  762.                                             <div class=\"form-check\">
  763.                                                 <input class=\"form-check-input\" type=\"checkbox\" value=\"{{ course.id }}\" id=\"{{ course.id }}\"  name=\"done[{{ course.id }}]\">
  764.                                                 <label for=\"{{ course.id }}\" class=\"text-success font-weight-bold\">نعم</label>
  765.                                             </div>
  766.                                             <div class=\"form-check\">
  767.                                                 <input onclick=\"return confirm('متأكدة أن المعلم غاب؟');\" class=\"form-check-input\" type=\"checkbox\" value=\"{{ course.id }}\" id=\"{{ course.id }}\"  name=\"notDone[{{ course.id }}]\">
  768.                                                 <label for=\"{{ course.id }}\" class=\"text-danger font-weight-bold\">لا</label>
  769.                                             </div>
  770.                                             <div class=\"form-check\">
  771.                                                 <input class=\"form-check-input\" type=\"checkbox\" value=\"{{ course.id }}\" id=\"{{ course.id }}\"  name=\"studentAbsent[{{ course.id }}]\">
  772.                                                 <label for=\"{{ course.id }}\" class=\"text-warning font-weight-bold\">انتظار</label>
  773.                                             </div>
  774.                                         {% endif %}
  775.                                     {% endif %}
  776.                                 </td>
  777.                                 {% if course.isDone == true or course.isCanceled == true %}
  778.                                     <td>
  779.                                         {{ course.LostMinutes ? course.LostMinutes : '' }}
  780.                                     </td>
  781.                                     <td>
  782.                                         {{ course.catchUpMinutes ? course.catchUpMinutes : '' }}
  783.                                     </td>
  784.                                     <td>
  785.                                         {{ course.isWaiting == true ? 'الطالب كان غائب' : '' }}
  786.                                     </td>
  787.                                     <td>
  788.                                         {{ course.comment ? course.comment : '' }}
  789.                                     </td>
  790.                                     <td></td>
  791.                                 {% else %}
  792.                                     <td>
  793.                                         {% if is_granted('ROLE_AR') %}
  794.                                             <input type=\"number\" name=\"lostMinutes[{{ course.id }}]\" min=\"0\" max=\"45\" value=\"\">
  795.                                         {% endif %}
  796.                                     </td>
  797.                                     <td>
  798.                                         {% if is_granted('ROLE_AR') %}
  799.                                             <input type=\"number\" name=\"catchupMinutes[{{ course.id }}]\" min=\"0\" max=\"45\" value=\"\">
  800.                                         {% endif %}
  801.                                     </td>
  802.                                     <td>
  803.                                         {% if course.subscriptionOrder %}
  804.                                             {{ course.subscriptionOrder.totalLostMinutes ? course.subscriptionOrder.totalLostMinutes : '' }}
  805.                                         {% endif %}
  806.                                         {% if course.sessionGroup %}
  807.                                             {{ course.sessionGroup.totalLostMinutes ? course.sessionGroup.totalLostMinutes : '' }}
  808.                                         {% endif %}
  809.                                     </td>
  810.                                     <td>
  811.                                         {% if is_granted('ROLE_AR') %}
  812.                                             {{ course.comment ? 'ملاحظات مسجلة: '~ course.comment : '' }}
  813.                                             <div class=\"form-row\">
  814.                                                 {{ course.comment ? 'سجل ملاحظات زائدة : ': ' ' }}
  815.                                                 <input class=\"form-control\" type=\"text\" name=\"comment[{{ course.id }}]\" value=\"\">
  816.                                             </div>
  817.                                         {% endif %}
  818.                                     </td>
  819.                                     {% if is_granted('ROLE_AR') %}
  820.                                         <td>
  821.                                             {% if course.subscriptionOrder %}
  822.                                                 <a href=\"{{ path('subscription_warning_late_student', {'id': course.subscriptionOrder.id}) }}\"  class=\"btn btn-danger\">ارسلي التنبه</a>
  823.                                             {% endif %}
  824.                                             {% if course.userTestLevel %}
  825.                                                 <a methods=\"post\" href=\"{{ path('admin_placement_test_alert', {'id': course.userTestLevel.id, 'course' : course.id}) }}\" class=\"btn btn-danger\">ارسلي التنبه</a>
  826.                                             {% endif %}
  827.                                         </td>
  828.                                     {% endif %}
  829.                                 {% endif %}
  830.                                 {% if is_granted('ROLE_ADMIN') %}
  831.                                     <td {{ course.teacherSchedule.teacher.currency == 'USD' ? 'class=\"alert alert-info\"' : '' }}>
  832.                                         {% if course.penalty %}
  833.                                             {{ course.penalty }} {{ course.teacherSchedule.teacher.currency }}
  834.                                         {% else %}
  835.                                             <input type=\"number\" name=\"penalty[{{ course.id }}]\" min=\"0\" max=\"100\" step=\"any\" value=\"\">
  836.                                         {% endif %}
  837.                                     </td>
  838.                                 {% endif %}
  839.                                 {% if is_granted('ROLE_AR') %}
  840.                                     <td>
  841.                                         {% if course.isDone == true or course.isCanceled == true %}
  842.                                             <a href=\"{{ path('admin_course_tracking_edit', {'id': course.id }) }}\"><i class=\"fas fa-edit\"></i></a>
  843.                                         {% endif %}
  844.                                     </td>
  845.                                 {% endif %}
  846.                                 <td>
  847.                                     {% if course.updateBy %}
  848.                                         <small>
  849.                                             Update by {{ course.updateBy }} <br>
  850.                                             at {{ course.updateAt|date('d/m/Y H:i') }}
  851.                                         </small>
  852.                                     {% endif %}
  853.                                 </td>
  854.                             </tr>
  855.                         {% else %}
  856.                             <tr>
  857.                                 <td colspan=\"13\" class=\"text-center\">Pas de cours aujourd'hui</td>
  858.                             </tr>
  859.                         {% endfor %}
  860.                         </tbody>
  861.                         {% if is_granted('ROLE_AR') %}
  862.                             <tfoot>
  863.                             <td colspan=\"12\" class=\"text-center\">
  864.                                 <button type=\"submit\" name=\"submitReportTracking\" class=\"btn btn-success submitBtn\">ارسلي التقرير</button>
  865.                             </td>
  866.                             </tfoot>
  867.                         {% endif %}
  868.                     </form>
  869.                 </table>
  870.             </div>
  871.     </div>
  872. </div>
  873. </div>
  874. {% endblock %}
  875. ""admin/dashboard/index.html.twig""/home/staging/deploy/releases/163/templates/admin/dashboard/index.html.twig");
  876.     }
  877. }