<?php 
 
use Twig\Environment; 
use Twig\Error\LoaderError; 
use Twig\Error\RuntimeError; 
use Twig\Extension\SandboxExtension; 
use Twig\Markup; 
use Twig\Sandbox\SecurityError; 
use Twig\Sandbox\SecurityNotAllowedTagError; 
use Twig\Sandbox\SecurityNotAllowedFilterError; 
use Twig\Sandbox\SecurityNotAllowedFunctionError; 
use Twig\Source; 
use Twig\Template; 
 
/* admin/dashboard/index.html.twig */ 
class __TwigTemplate_da54dba85a1173d6215727b3704bd0b74927761db2a777ae215be88c6ac102c9 extends Template 
{ 
    private $source; 
    private $macros = []; 
 
    public function __construct(Environment $env) 
    { 
        parent::__construct($env); 
 
        $this->source = $this->getSourceContext(); 
 
        $this->blocks = [ 
            'title' => [$this, 'block_title'], 
            'javascripts' => [$this, 'block_javascripts'], 
            'body' => [$this, 'block_body'], 
        ]; 
    } 
 
    protected function doGetParent(array $context) 
    { 
        // line 1 
        return "admin/base.html.twig"; 
    } 
 
    protected function doDisplay(array $context, array $blocks = []) 
    { 
        $macros = $this->macros; 
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; 
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "admin/dashboard/index.html.twig")); 
 
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; 
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "admin/dashboard/index.html.twig")); 
 
        $this->parent = $this->loadTemplate("admin/base.html.twig", "admin/dashboard/index.html.twig", 1); 
        $this->parent->display($context, array_merge($this->blocks, $blocks)); 
         
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof); 
 
         
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); 
 
    } 
 
    // line 3 
    public function block_title($context, array $blocks = []) 
    { 
        $macros = $this->macros; 
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; 
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title")); 
 
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; 
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title")); 
 
        echo "Dashboard"; 
         
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); 
 
         
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof); 
 
    } 
 
    // line 5 
    public function block_javascripts($context, array $blocks = []) 
    { 
        $macros = $this->macros; 
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; 
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts")); 
 
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; 
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts")); 
 
        // line 6 
        echo " 
<script> 
 
    \$(document).ready(function(){ 
 
        \$(\"#adminReport\").submit(function () { 
            \$(\".submitBtn\").attr(\"disabled\", true).html('<i class=\"fa fa-spinner fa-spin\"></i>'); 
            return true; 
        }); 
 
    }); 
 
 
</script> 
"; 
         
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); 
 
         
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof); 
 
    } 
 
    // line 22 
    public function block_body($context, array $blocks = []) 
    { 
        $macros = $this->macros; 
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; 
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body")); 
 
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; 
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body")); 
 
        // line 23 
        echo " 
<div class=\"container-fluid content p-5\"> 
    <div class=\"row\"> 
            <h2> Courses of : "; 
        // line 26 
        if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 26), "query", [], "any", false, false, false, 26), "get", [0 => "q"], "method", false, false, false, 26)) { 
            echo " "; 
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 26), "query", [], "any", false, false, false, 26), "get", [0 => "q"], "method", false, false, false, 26), "html", null, true); 
            echo " "; 
        } else { 
            echo " "; 
            echo twig_escape_filter($this->env, 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.', 26, $this->source); })()), "d/m/Y"), "html", null, true); 
            echo " "; 
        } 
        echo "</h2> 
            <form class=\"ml-auto mb-4\"> 
                <div class=\"input-group\"> 
                    <div class=\"input-group-prepend\"> 
                        <span class=\"input-group-text\" id=\"dateInput\">See another day</span> 
                    </div> 
                    <input type=\"date\" id=\"date\" name=\"q\" 
                           value=\""; 
        // line 33 
        echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 33), "query", [], "any", false, false, false, 33), "get", [0 => "q"], "method", false, false, false, 33)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 33), "query", [], "any", false, false, false, 33), "get", [0 => "q"], "method", false, false, false, 33)) : (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", null, true); 
        echo "\" 
                           min=\""; 
        // line 34 
        echo twig_escape_filter($this->env, 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.', 34, $this->source); })()), "d/m/Y"), "html", null, true); 
        echo "\" max=\"31/12/2100\" 
                           aria-describedby=\"dateInput\" 
                    > 
                    <div class=\"input-group-append\"> 
                        <button type=\"submit\" class=\"btn btn-primary mb-2\">See</button> 
                    </div> 
                </div> 
            </form> 
 
            <div class=\"table-responsive scrollme\"> 
                <small><em class=\"text-secondary\">"; 
        // line 44 
        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"); 
        echo "</em></small> 
                <table class=\"table table-striped\"> 
                    <thead class=\"thead-dark\"> 
                    <tr> 
                        <th scope=\"col\">الجدول</th> 
                        <th scope=\"col\">المعلم</th> 
                        <th scope=\"col\">الطالب</th> 
                        <th scope=\"col\">الفصل</th> 
                        <th scope=\"col\">أعطى المعلم الدرس ؟</th> 
                        <th scope=\"col\">دقائق الضائعة في هذا الدرس</th> 
                        <th scope=\"col\">هل عوض دقائق ؟ كم</th> 
                        <th scope=\"col\">كم تبقى كتعويض لهذا الإشتراك <br> أو لهذه المجموعة ؟</th> 
                        <th scope=\"col\">ملاحظات</th> 
                        "; 
        // line 57 
        if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) { 
            // line 58 
            echo "                            <th scope=\"col\">تنبيه للطالب المتأخر</th> 
                        "; 
        } 
        // line 60 
        echo "                        "; 
        if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) { 
            // line 61 
            echo "                            <th scope=\"col\">خصم</th> 
                        "; 
        } 
        // line 63 
        echo "                        "; 
        if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) { 
            // line 64 
            echo "                            <th scope=\"col\">تعديل</th> 
                        "; 
        } 
        // line 66 
        echo "                        <th scope=\"col\">Last update</th> 
                    </tr> 
                    </thead> 
                    <form id=\"adminReport\" action=\""; 
        // line 69 
        echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_course_tracking"); 
        echo "\" method=\"post\"> 
                        <tbody> 
                        "; 
        // line 71 
        $context['_parent'] = $context; 
        $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); })())); 
        $context['_iterated'] = false; 
        foreach ($context['_seq'] as $context["_key"] => $context["course"]) { 
            // line 72 
            echo "                            <tr> 
                                <th scope=\"row\">"; 
            // line 73 
            echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "courseDate", [], "any", false, false, false, 73), "H:i"), "html", null, true); 
            echo " 
                                    <br><small>"; 
            // line 74 
            echo ((twig_get_attribute($this->env, $this->source, $context["course"], "absenceLogRelated", [], "any", false, false, false, 74)) ? ("هذا درس تعويض") : ("")); 
            echo "</small> 
                                </th> 
                                <td>"; 
            // line 76 
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "teacherSchedule", [], "any", false, false, false, 76), "teacher", [], "any", false, false, false, 76), "userId", [], "any", false, false, false, 76), "fullname", [], "any", false, false, false, 76), "html", null, true); 
            echo " 
                                    <br> 
                                    <small><a href=\""; 
            // line 78 
            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", false, false, false, 78)]), "html", null, true); 
            echo "\">غير إلى معلم بديل</a></small> 
                                </td> 
                                <td> 
                                    "; 
            // line 81 
            if (twig_get_attribute($this->env, $this->source, $context["course"], "subscriptionOrder", [], "any", false, false, false, 81)) { 
                // line 82 
                echo "                                        <a target=\"_blank\" href=\""; 
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_subscription_show", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "subscriptionOrder", [], "any", false, false, false, 82), "id", [], "any", false, false, false, 82)]), "html", null, true); 
                echo "\">"; 
                echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "subscriptionOrder", [], "any", false, false, false, 82), "participant", [], "any", false, false, false, 82)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "subscriptionOrder", [], "any", false, false, false, 82), "participant", [], "any", false, false, false, 82), "fullname", [], "any", false, false, false, 82)) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "subscriptionOrder", [], "any", false, false, false, 82), "user", [], "any", false, false, false, 82), "fullname", [], "any", false, false, false, 82))), "html", null, true); 
                echo "</a> 
                                        "; 
                // line 83 
                if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "subscriptionOrder", [], "any", false, false, false, 83), "participant", [], "any", false, false, false, 83)) { 
                    // line 84 
                    echo "                                            "; 
                    if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "subscriptionOrder", [], "any", false, false, false, 84), "participant", [], "any", false, false, false, 84), "isChild", [], "any", false, false, false, 84), true))) { 
                        // line 85 
                        echo "                                                "; 
                        if ((-1 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "subscriptionOrder", [], "any", false, false, false, 85), "participant", [], "any", false, false, false, 85), "age", [], "any", false, false, false, 85), 5))) { 
                            // line 86 
                            echo "                                                    <i class=\"fas fa-baby text-warning\"></i> 
                                                    "; 
                            // line 87 
                            if ((-1 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "subscriptionOrder", [], "any", false, false, false, 87), "participant", [], "any", false, false, false, 87), "age", [], "any", false, false, false, 87), 3))) { 
                                // line 88 
                                echo "                                                        <br> 
                                                        <i class=\"fas fa-exclamation-circle text-danger\"></i> <small>"; 
                                // line 89 
                                echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Cet enfant à moins de 3 ans", [], "messages"); 
                                echo "</small> 
                                                    "; 
                            } 
                            // line 91 
                            echo "                                                    "; 
                        } else { 
                            // line 92 
                            echo "                                                        <i class=\"fas fa-child\"></i> 
                                                "; 
                        } 
                        // line 94 
                        echo "                                            "; 
                    } 
                    // line 95 
                    echo "                                        "; 
                } 
                // line 96 
                echo "                                    "; 
            } elseif (twig_get_attribute($this->env, $this->source, $context["course"], "sessionGroup", [], "any", false, false, false, 96)) { 
                // line 97 
                echo "                                        <a target=\"_blank\" href=\""; 
                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->source, twig_get_attribute($this->env, $this->source, $context["course"], "sessionGroup", [], "any", false, false, false, 97), "id", [], "any", false, false, false, 97)]), "html", null, true); 
                echo "\">"; 
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "sessionGroup", [], "any", false, false, false, 97), "displayNameEn", [], "any", false, false, false, 97), "html", null, true); 
                echo "</a> 
                                        <br> 
                                        <small>درس مجموعة</small> 
                                    "; 
            } elseif (twig_get_attribute($this->env, $this->source,             // line 100 
$context["course"], "videoRegistration", [], "any", false, false, false, 100)) { 
                // line 101 
                echo "                                        <a target=\"_blank\" href=\""; 
                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->source, twig_get_attribute($this->env, $this->source, $context["course"], "videoRegistration", [], "any", false, false, false, 101), "id", [], "any", false, false, false, 101)]), "html", null, true); 
                echo "\">"; 
                echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "videoRegistration", [], "any", false, false, false, 101), "participant", [], "any", false, false, false, 101)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "videoRegistration", [], "any", false, false, false, 101), "participant", [], "any", false, false, false, 101), "fullname", [], "any", false, false, false, 101)) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "videoRegistration", [], "any", false, false, false, 101), "user", [], "any", false, false, false, 101), "fullname", [], "any", false, false, false, 101))), "html", null, true); 
                echo "</a> 
                                        <br> 
                                        <small> درس فيديو</small> 
                                    "; 
            } elseif (twig_get_attribute($this->env, $this->source,             // line 104 
$context["course"], "ticketOrder", [], "any", false, false, false, 104)) { 
                // line 105 
                echo "                                        <a target=\"_blank\" href=\""; 
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_ticketOrder_show", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "ticketOrder", [], "any", false, false, false, 105), "id", [], "any", false, false, false, 105)]), "html", null, true); 
                echo "\">"; 
                echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "ticketOrder", [], "any", false, false, false, 105), "participant", [], "any", false, false, false, 105)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "ticketOrder", [], "any", false, false, false, 105), "participant", [], "any", false, false, false, 105), "fullname", [], "any", false, false, false, 105)) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "ticketOrder", [], "any", false, false, false, 105), "user", [], "any", false, false, false, 105), "fullname", [], "any", false, false, false, 105))), "html", null, true); 
                echo "</a> 
                                        <br> 
                                        <small>🚨 Ticket</small> 
                                    "; 
            } elseif (twig_get_attribute($this->env, $this->source,             // line 108 
$context["course"], "userTestLevel", [], "any", false, false, false, 108)) { 
                // line 109 
                echo "                                        <a target=\"_blank\" href=\""; 
                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->source, twig_get_attribute($this->env, $this->source, $context["course"], "userTestLevel", [], "any", false, false, false, 109), "id", [], "any", false, false, false, 109)]), "html", null, true); 
                echo "\">"; 
                echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "userTestLevel", [], "any", false, false, false, 109), "participant", [], "any", false, false, false, 109)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "userTestLevel", [], "any", false, false, false, 109), "participant", [], "any", false, false, false, 109), "fullname", [], "any", false, false, false, 109)) : (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "userTestLevel", [], "any", false, false, false, 109), "user", [], "any", false, false, false, 109), "fullname", [], "any", false, false, false, 109))), "html", null, true); 
                echo "</a> 
                                        <br> 
                                        <small>🚨 Level Test</small> 
                                    "; 
            } 
            // line 113 
            echo "                                </td> 
                                <td> 
                                    "; 
            // line 115 
            if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "teacherSchedule", [], "any", false, false, false, 115), "room", [], "any", false, false, false, 115)) { 
                // line 116 
                echo "                                        "; 
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "teacherSchedule", [], "any", false, false, false, 116), "room", [], "any", false, false, false, 116), "name", [], "any", false, false, false, 116), "html", null, true); 
                echo " <br> 
                                        <i class=\"fas fa-external-link-alt\"></i> <a target=\"_blank\" href=\""; 
                // line 117 
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "teacherSchedule", [], "any", false, false, false, 117), "room", [], "any", false, false, false, 117), "urlWithPassword", [], "any", false, false, false, 117), "html", null, true); 
                echo "\"><small>"; 
                echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Accès direct (sans mot de passe)", [], "messages"); 
                echo "</small> </a> 
                                        <br> 
                                        <i class=\"fas fa-external-link-alt\"></i> <a target=\"_blank\" href=\""; 
                // line 119 
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "teacherSchedule", [], "any", false, false, false, 119), "room", [], "any", false, false, false, 119), "urlWithoutPassword", [], "any", false, false, false, 119), "html", null, true); 
                echo "\"><small>"; 
                echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Accès classique (avec mot de passe) :", [], "messages"); 
                echo " <strong>"; 
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "teacherSchedule", [], "any", false, false, false, 119), "room", [], "any", false, false, false, 119), "roomPassword", [], "any", false, false, false, 119), "html", null, true); 
                echo "</strong></small> </a> 
                                        "; 
            } else { 
                // line 121 
                echo "                                        ATTENTION: NO ROOM FOR THIS SCHEDULE!! 
                                    "; 
            } 
            // line 123 
            echo "                                </td> 
                                <td> 
                                    "; 
            // line 125 
            if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["course"], "isDone", [], "any", false, false, false, 125), true))) { 
                // line 126 
                echo "                                        <i class=\"fas fa-check text-success\"></i> 
                                    "; 
            } elseif ((0 === twig_compare(twig_get_attribute($this->env, $this->source,             // line 127 
$context["course"], "isCanceled", [], "any", false, false, false, 127), true))) { 
                // line 128 
                echo "                                        <i class=\"fas fa-times text-danger\"></i> 
                                    "; 
            } else { 
                // line 130 
                echo "                                        "; 
                if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) { 
                    // line 131 
                    echo "                                            <div class=\"form-check\"> 
                                                <input class=\"form-check-input\" type=\"checkbox\" value=\""; 
                    // line 132 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 132), "html", null, true); 
                    echo "\" id=\""; 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 132), "html", null, true); 
                    echo "\"  name=\"done["; 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 132), "html", null, true); 
                    echo "]\"> 
                                                <label for=\""; 
                    // line 133 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 133), "html", null, true); 
                    echo "\" class=\"text-success font-weight-bold\">نعم</label> 
                                            </div> 
                                            <div class=\"form-check\"> 
                                                <input onclick=\"return confirm('متأكدة أن المعلم غاب؟');\" class=\"form-check-input\" type=\"checkbox\" value=\""; 
                    // line 136 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 136), "html", null, true); 
                    echo "\" id=\""; 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 136), "html", null, true); 
                    echo "\"  name=\"notDone["; 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 136), "html", null, true); 
                    echo "]\"> 
                                                <label for=\""; 
                    // line 137 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 137), "html", null, true); 
                    echo "\" class=\"text-danger font-weight-bold\">لا</label> 
                                            </div> 
                                            <div class=\"form-check\"> 
                                                <input class=\"form-check-input\" type=\"checkbox\" value=\""; 
                    // line 140 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 140), "html", null, true); 
                    echo "\" id=\""; 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 140), "html", null, true); 
                    echo "\"  name=\"studentAbsent["; 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 140), "html", null, true); 
                    echo "]\"> 
                                                <label for=\""; 
                    // line 141 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 141), "html", null, true); 
                    echo "\" class=\"text-warning font-weight-bold\">انتظار</label> 
                                            </div> 
                                        "; 
                } 
                // line 144 
                echo "                                    "; 
            } 
            // line 145 
            echo "                                </td> 
 
                                "; 
            // line 147 
            if (((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["course"], "isDone", [], "any", false, false, false, 147), true)) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["course"], "isCanceled", [], "any", false, false, false, 147), true)))) { 
                // line 148 
                echo "                                    <td> 
                                        "; 
                // line 149 
                ((twig_get_attribute($this->env, $this->source, $context["course"], "LostMinutes", [], "any", false, false, false, 149)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "LostMinutes", [], "any", false, false, false, 149), "html", null, true))) : (print (""))); 
                echo " 
                                    </td> 
                                    <td> 
                                        "; 
                // line 152 
                ((twig_get_attribute($this->env, $this->source, $context["course"], "catchUpMinutes", [], "any", false, false, false, 152)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "catchUpMinutes", [], "any", false, false, false, 152), "html", null, true))) : (print (""))); 
                echo " 
                                    </td> 
                                    <td> 
                                        "; 
                // line 155 
                echo (((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["course"], "isWaiting", [], "any", false, false, false, 155), true))) ? ("الطالب كان غائب") : ("")); 
                echo " 
                                    </td> 
                                    <td> 
                                        "; 
                // line 158 
                ((twig_get_attribute($this->env, $this->source, $context["course"], "comment", [], "any", false, false, false, 158)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "comment", [], "any", false, false, false, 158), "html", null, true))) : (print (""))); 
                echo " 
                                    </td> 
                                    <td></td> 
                                "; 
            } else { 
                // line 162 
                echo "                                    <td> 
                                        "; 
                // line 163 
                if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) { 
                    // line 164 
                    echo "                                            <input type=\"number\" name=\"lostMinutes["; 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 164), "html", null, true); 
                    echo "]\" min=\"0\" max=\"45\" value=\"\"> 
                                        "; 
                } 
                // line 166 
                echo "                                    </td> 
                                    <td> 
                                        "; 
                // line 168 
                if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) { 
                    // line 169 
                    echo "                                            <input type=\"number\" name=\"catchupMinutes["; 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 169), "html", null, true); 
                    echo "]\" min=\"0\" max=\"45\" value=\"\"> 
                                        "; 
                } 
                // line 171 
                echo "                                    </td> 
                                    <td> 
                                        "; 
                // line 173 
                if (twig_get_attribute($this->env, $this->source, $context["course"], "subscriptionOrder", [], "any", false, false, false, 173)) { 
                    // line 174 
                    echo "                                            "; 
                    ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "subscriptionOrder", [], "any", false, false, false, 174), "totalLostMinutes", [], "any", false, false, false, 174)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "subscriptionOrder", [], "any", false, false, false, 174), "totalLostMinutes", [], "any", false, false, false, 174), "html", null, true))) : (print (""))); 
                    echo " 
                                        "; 
                } 
                // line 176 
                echo "                                        "; 
                if (twig_get_attribute($this->env, $this->source, $context["course"], "sessionGroup", [], "any", false, false, false, 176)) { 
                    // line 177 
                    echo "                                            "; 
                    ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "sessionGroup", [], "any", false, false, false, 177), "totalLostMinutes", [], "any", false, false, false, 177)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "sessionGroup", [], "any", false, false, false, 177), "totalLostMinutes", [], "any", false, false, false, 177), "html", null, true))) : (print (""))); 
                    echo " 
                                        "; 
                } 
                // line 179 
                echo "                                    </td> 
                                    <td> 
                                        "; 
                // line 181 
                if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) { 
                    // line 182 
                    echo "                                            "; 
                    ((twig_get_attribute($this->env, $this->source, $context["course"], "comment", [], "any", false, false, false, 182)) ? (print (twig_escape_filter($this->env, ("ملاحظات مسجلة: " . twig_get_attribute($this->env, $this->source, $context["course"], "comment", [], "any", false, false, false, 182)), "html", null, true))) : (print (""))); 
                    echo " 
                                            <div class=\"form-row\"> 
                                                "; 
                    // line 184 
                    echo ((twig_get_attribute($this->env, $this->source, $context["course"], "comment", [], "any", false, false, false, 184)) ? ("سجل ملاحظات زائدة : ") : (" ")); 
                    echo " 
                                                <input class=\"form-control\" type=\"text\" name=\"comment["; 
                    // line 185 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 185), "html", null, true); 
                    echo "]\" value=\"\"> 
                                            </div> 
                                        "; 
                } 
                // line 188 
                echo "                                    </td> 
                                    "; 
                // line 189 
                if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) { 
                    // line 190 
                    echo "                                        <td> 
                                            "; 
                    // line 191 
                    if (twig_get_attribute($this->env, $this->source, $context["course"], "subscriptionOrder", [], "any", false, false, false, 191)) { 
                        // line 192 
                        echo "                                                <a href=\""; 
                        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->source, twig_get_attribute($this->env, $this->source, $context["course"], "subscriptionOrder", [], "any", false, false, false, 192), "id", [], "any", false, false, false, 192)]), "html", null, true); 
                        echo "\"  class=\"btn btn-danger\">ارسلي التنبه</a> 
 
                                            "; 
                    } 
                    // line 195 
                    echo "                                            "; 
                    if (twig_get_attribute($this->env, $this->source, $context["course"], "userTestLevel", [], "any", false, false, false, 195)) { 
                        // line 196 
                        echo "                                                <a methods=\"post\" href=\""; 
                        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->source, twig_get_attribute($this->env, $this->source, $context["course"], "userTestLevel", [], "any", false, false, false, 196), "id", [], "any", false, false, false, 196), "course" => twig_get_attribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 196)]), "html", null, true); 
                        echo "\" class=\"btn btn-danger\">ارسلي التنبه</a> 
                                            "; 
                    } 
                    // line 198 
                    echo "                                        </td> 
                                    "; 
                } 
                // line 200 
                echo "                                "; 
            } 
            // line 201 
            echo "                                "; 
            if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) { 
                // line 202 
                echo "                                    <td "; 
                echo (((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "teacherSchedule", [], "any", false, false, false, 202), "teacher", [], "any", false, false, false, 202), "currency", [], "any", false, false, false, 202), "USD"))) ? ("class=\"alert alert-info\"") : ("")); 
                echo "> 
                                        "; 
                // line 203 
                if (twig_get_attribute($this->env, $this->source, $context["course"], "penalty", [], "any", false, false, false, 203)) { 
                    // line 204 
                    echo "                                            "; 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "penalty", [], "any", false, false, false, 204), "html", null, true); 
                    echo " "; 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["course"], "teacherSchedule", [], "any", false, false, false, 204), "teacher", [], "any", false, false, false, 204), "currency", [], "any", false, false, false, 204), "html", null, true); 
                    echo " 
                                        "; 
                } else { 
                    // line 206 
                    echo "                                            <input type=\"number\" name=\"penalty["; 
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 206), "html", null, true); 
                    echo "]\" min=\"0\" max=\"100\" step=\"any\" value=\"\"> 
                                        "; 
                } 
                // line 208 
                echo "                                    </td> 
                                "; 
            } 
            // line 210 
            echo "                                "; 
            if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) { 
                // line 211 
                echo "                                    <td> 
                                        "; 
                // line 212 
                if (((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["course"], "isDone", [], "any", false, false, false, 212), true)) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["course"], "isCanceled", [], "any", false, false, false, 212), true)))) { 
                    // line 213 
                    echo "                                            <a href=\""; 
                    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", false, false, false, 213)]), "html", null, true); 
                    echo "\"><i class=\"fas fa-edit\"></i></a> 
                                        "; 
                } 
                // line 215 
                echo "                                    </td> 
                                "; 
            } 
            // line 217 
            echo "                                <td> 
                                    "; 
            // line 218 
            if (twig_get_attribute($this->env, $this->source, $context["course"], "updateBy", [], "any", false, false, false, 218)) { 
                // line 219 
                echo "                                        <small> 
                                            Update by "; 
                // line 220 
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "updateBy", [], "any", false, false, false, 220), "html", null, true); 
                echo " <br> 
                                            at "; 
                // line 221 
                echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "updateAt", [], "any", false, false, false, 221), "d/m/Y H:i"), "html", null, true); 
                echo " 
                                        </small> 
                                    "; 
            } 
            // line 224 
            echo "                                </td> 
                            </tr> 
                        "; 
            $context['_iterated'] = true; 
        } 
        if (!$context['_iterated']) { 
            // line 227 
            echo "                            <tr> 
                                <td colspan=\"13\" class=\"text-center\">Pas de cours aujourd'hui</td> 
                            </tr> 
                        "; 
        } 
        $_parent = $context['_parent']; 
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['course'], $context['_parent'], $context['loop']); 
        $context = array_intersect_key($context, $_parent) + $_parent; 
        // line 231 
        echo "                        </tbody> 
                        "; 
        // line 232 
        if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_AR")) { 
            // line 233 
            echo "                            <tfoot> 
                            <td colspan=\"12\" class=\"text-center\"> 
                                <button type=\"submit\" name=\"submitReportTracking\" class=\"btn btn-success submitBtn\">ارسلي التقرير</button> 
                            </td> 
                            </tfoot> 
                        "; 
        } 
        // line 239 
        echo "                    </form> 
                </table> 
            </div> 
 
 
    </div> 
</div> 
 
</div> 
"; 
         
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); 
 
         
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof); 
 
    } 
 
    public function getTemplateName() 
    { 
        return "admin/dashboard/index.html.twig"; 
    } 
 
    public function isTraitable() 
    { 
        return false; 
    } 
 
    public function getDebugInfo() 
    { 
        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,); 
    } 
 
    public function getSourceContext() 
    { 
        return new Source("{% extends 'admin/base.html.twig' %} 
 
{% block title %}Dashboard{% endblock %} 
 
{% block javascripts %} 
 
<script> 
 
    \$(document).ready(function(){ 
 
        \$(\"#adminReport\").submit(function () { 
            \$(\".submitBtn\").attr(\"disabled\", true).html('<i class=\"fa fa-spinner fa-spin\"></i>'); 
            return true; 
        }); 
 
    }); 
 
 
</script> 
{% endblock %} 
 
    {% block body %} 
 
<div class=\"container-fluid content p-5\"> 
    <div class=\"row\"> 
            <h2> Courses of : {% if app.request.query.get('q') %} {{ app.request.query.get('q') }} {% else %} {{ currentDay|date('d/m/Y') }} {% endif %}</h2> 
            <form class=\"ml-auto mb-4\"> 
                <div class=\"input-group\"> 
                    <div class=\"input-group-prepend\"> 
                        <span class=\"input-group-text\" id=\"dateInput\">See another day</span> 
                    </div> 
                    <input type=\"date\" id=\"date\" name=\"q\" 
                           value=\"{{ app.request.query.get('q') ?  app.request.query.get('q') : currentDay|date('d/m/Y') }}\" 
                           min=\"{{ currentDay|date('d/m/Y') }}\" max=\"31/12/2100\" 
                           aria-describedby=\"dateInput\" 
                    > 
                    <div class=\"input-group-append\"> 
                        <button type=\"submit\" class=\"btn btn-primary mb-2\">See</button> 
                    </div> 
                </div> 
            </form> 
 
            <div class=\"table-responsive scrollme\"> 
                <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> 
                <table class=\"table table-striped\"> 
                    <thead class=\"thead-dark\"> 
                    <tr> 
                        <th scope=\"col\">الجدول</th> 
                        <th scope=\"col\">المعلم</th> 
                        <th scope=\"col\">الطالب</th> 
                        <th scope=\"col\">الفصل</th> 
                        <th scope=\"col\">أعطى المعلم الدرس ؟</th> 
                        <th scope=\"col\">دقائق الضائعة في هذا الدرس</th> 
                        <th scope=\"col\">هل عوض دقائق ؟ كم</th> 
                        <th scope=\"col\">كم تبقى كتعويض لهذا الإشتراك <br> أو لهذه المجموعة ؟</th> 
                        <th scope=\"col\">ملاحظات</th> 
                        {% if is_granted('ROLE_AR') %} 
                            <th scope=\"col\">تنبيه للطالب المتأخر</th> 
                        {% endif %} 
                        {% if is_granted('ROLE_ADMIN') %} 
                            <th scope=\"col\">خصم</th> 
                        {% endif %} 
                        {% if is_granted('ROLE_AR') %} 
                            <th scope=\"col\">تعديل</th> 
                        {% endif %} 
                        <th scope=\"col\">Last update</th> 
                    </tr> 
                    </thead> 
                    <form id=\"adminReport\" action=\"{{ path('admin_course_tracking')}}\" method=\"post\"> 
                        <tbody> 
                        {% for course in coursesOfTheDay %} 
                            <tr> 
                                <th scope=\"row\">{{ course.courseDate|date('H:i') }} 
                                    <br><small>{{ course.absenceLogRelated ? 'هذا درس تعويض' : '' }}</small> 
                                </th> 
                                <td>{{ course.teacherSchedule.teacher.userId.fullname }} 
                                    <br> 
                                    <small><a href=\"{{ path('admin_teacher_switch', {'id': course.id}) }}\">غير إلى معلم بديل</a></small> 
                                </td> 
                                <td> 
                                    {% if course.subscriptionOrder %} 
                                        <a target=\"_blank\" href=\"{{ path('admin_subscription_show', {'id': course.subscriptionOrder.id}) }}\">{{ course.subscriptionOrder.participant ? course.subscriptionOrder.participant.fullname : course.subscriptionOrder.user.fullname }}</a> 
                                        {% if course.subscriptionOrder.participant %} 
                                            {% if course.subscriptionOrder.participant.isChild == true   %} 
                                                {% if course.subscriptionOrder.participant.age < 5 %} 
                                                    <i class=\"fas fa-baby text-warning\"></i> 
                                                    {% if course.subscriptionOrder.participant.age < 3 %} 
                                                        <br> 
                                                        <i class=\"fas fa-exclamation-circle text-danger\"></i> <small>{% trans %}Cet enfant à moins de 3 ans{% endtrans %}</small> 
                                                    {% endif %} 
                                                    {% else %} 
                                                        <i class=\"fas fa-child\"></i> 
                                                {% endif %} 
                                            {% endif %} 
                                        {% endif %} 
                                    {% elseif course.sessionGroup %} 
                                        <a target=\"_blank\" href=\"{{ path('admin_session_student_index', {'id': course.sessionGroup.id}) }}\">{{ course.sessionGroup.displayNameEn }}</a> 
                                        <br> 
                                        <small>درس مجموعة</small> 
                                    {% elseif course.videoRegistration %} 
                                        <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> 
                                        <br> 
                                        <small> درس فيديو</small> 
                                    {% elseif course.ticketOrder %} 
                                        <a target=\"_blank\" href=\"{{ path('admin_ticketOrder_show', {'id': course.ticketOrder.id}) }}\">{{ course.ticketOrder.participant ? course.ticketOrder.participant.fullname : course.ticketOrder.user.fullname }}</a> 
                                        <br> 
                                        <small>🚨 Ticket</small> 
                                    {% elseif course.userTestLevel %} 
                                        <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> 
                                        <br> 
                                        <small>🚨 Level Test</small> 
                                    {% endif %} 
                                </td> 
                                <td> 
                                    {% if course.teacherSchedule.room %} 
                                        {{ course.teacherSchedule.room.name }} <br> 
                                        <i class=\"fas fa-external-link-alt\"></i> <a target=\"_blank\" href=\"{{ course.teacherSchedule.room.urlWithPassword }}\"><small>{% trans %}Accès direct (sans mot de passe){% endtrans %}</small> </a> 
                                        <br> 
                                        <i class=\"fas fa-external-link-alt\"></i> <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> 
                                        {% else %} 
                                        ATTENTION: NO ROOM FOR THIS SCHEDULE!! 
                                    {% endif %} 
                                </td> 
                                <td> 
                                    {% if course.isDone == true %} 
                                        <i class=\"fas fa-check text-success\"></i> 
                                    {% elseif course.isCanceled == true %} 
                                        <i class=\"fas fa-times text-danger\"></i> 
                                    {% else %} 
                                        {% if is_granted('ROLE_AR') %} 
                                            <div class=\"form-check\"> 
                                                <input class=\"form-check-input\" type=\"checkbox\" value=\"{{ course.id }}\" id=\"{{ course.id }}\"  name=\"done[{{ course.id }}]\"> 
                                                <label for=\"{{ course.id }}\" class=\"text-success font-weight-bold\">نعم</label> 
                                            </div> 
                                            <div class=\"form-check\"> 
                                                <input onclick=\"return confirm('متأكدة أن المعلم غاب؟');\" class=\"form-check-input\" type=\"checkbox\" value=\"{{ course.id }}\" id=\"{{ course.id }}\"  name=\"notDone[{{ course.id }}]\"> 
                                                <label for=\"{{ course.id }}\" class=\"text-danger font-weight-bold\">لا</label> 
                                            </div> 
                                            <div class=\"form-check\"> 
                                                <input class=\"form-check-input\" type=\"checkbox\" value=\"{{ course.id }}\" id=\"{{ course.id }}\"  name=\"studentAbsent[{{ course.id }}]\"> 
                                                <label for=\"{{ course.id }}\" class=\"text-warning font-weight-bold\">انتظار</label> 
                                            </div> 
                                        {% endif %} 
                                    {% endif %} 
                                </td> 
 
                                {% if course.isDone == true or course.isCanceled == true %} 
                                    <td> 
                                        {{ course.LostMinutes ? course.LostMinutes : '' }} 
                                    </td> 
                                    <td> 
                                        {{ course.catchUpMinutes ? course.catchUpMinutes : '' }} 
                                    </td> 
                                    <td> 
                                        {{ course.isWaiting == true ? 'الطالب كان غائب' : '' }} 
                                    </td> 
                                    <td> 
                                        {{ course.comment ? course.comment : '' }} 
                                    </td> 
                                    <td></td> 
                                {% else %} 
                                    <td> 
                                        {% if is_granted('ROLE_AR') %} 
                                            <input type=\"number\" name=\"lostMinutes[{{ course.id }}]\" min=\"0\" max=\"45\" value=\"\"> 
                                        {% endif %} 
                                    </td> 
                                    <td> 
                                        {% if is_granted('ROLE_AR') %} 
                                            <input type=\"number\" name=\"catchupMinutes[{{ course.id }}]\" min=\"0\" max=\"45\" value=\"\"> 
                                        {% endif %} 
                                    </td> 
                                    <td> 
                                        {% if course.subscriptionOrder %} 
                                            {{ course.subscriptionOrder.totalLostMinutes ? course.subscriptionOrder.totalLostMinutes : '' }} 
                                        {% endif %} 
                                        {% if course.sessionGroup %} 
                                            {{ course.sessionGroup.totalLostMinutes ? course.sessionGroup.totalLostMinutes : '' }} 
                                        {% endif %} 
                                    </td> 
                                    <td> 
                                        {% if is_granted('ROLE_AR') %} 
                                            {{ course.comment ? 'ملاحظات مسجلة: '~ course.comment : '' }} 
                                            <div class=\"form-row\"> 
                                                {{ course.comment ? 'سجل ملاحظات زائدة : ': ' ' }} 
                                                <input class=\"form-control\" type=\"text\" name=\"comment[{{ course.id }}]\" value=\"\"> 
                                            </div> 
                                        {% endif %} 
                                    </td> 
                                    {% if is_granted('ROLE_AR') %} 
                                        <td> 
                                            {% if course.subscriptionOrder %} 
                                                <a href=\"{{ path('subscription_warning_late_student', {'id': course.subscriptionOrder.id}) }}\"  class=\"btn btn-danger\">ارسلي التنبه</a> 
 
                                            {% endif %} 
                                            {% if course.userTestLevel %} 
                                                <a methods=\"post\" href=\"{{ path('admin_placement_test_alert', {'id': course.userTestLevel.id, 'course' : course.id}) }}\" class=\"btn btn-danger\">ارسلي التنبه</a> 
                                            {% endif %} 
                                        </td> 
                                    {% endif %} 
                                {% endif %} 
                                {% if is_granted('ROLE_ADMIN') %} 
                                    <td {{ course.teacherSchedule.teacher.currency == 'USD' ? 'class=\"alert alert-info\"' : '' }}> 
                                        {% if course.penalty %} 
                                            {{ course.penalty }} {{ course.teacherSchedule.teacher.currency }} 
                                        {% else %} 
                                            <input type=\"number\" name=\"penalty[{{ course.id }}]\" min=\"0\" max=\"100\" step=\"any\" value=\"\"> 
                                        {% endif %} 
                                    </td> 
                                {% endif %} 
                                {% if is_granted('ROLE_AR') %} 
                                    <td> 
                                        {% if course.isDone == true or course.isCanceled == true %} 
                                            <a href=\"{{ path('admin_course_tracking_edit', {'id': course.id }) }}\"><i class=\"fas fa-edit\"></i></a> 
                                        {% endif %} 
                                    </td> 
                                {% endif %} 
                                <td> 
                                    {% if course.updateBy %} 
                                        <small> 
                                            Update by {{ course.updateBy }} <br> 
                                            at {{ course.updateAt|date('d/m/Y H:i') }} 
                                        </small> 
                                    {% endif %} 
                                </td> 
                            </tr> 
                        {% else %} 
                            <tr> 
                                <td colspan=\"13\" class=\"text-center\">Pas de cours aujourd'hui</td> 
                            </tr> 
                        {% endfor %} 
                        </tbody> 
                        {% if is_granted('ROLE_AR') %} 
                            <tfoot> 
                            <td colspan=\"12\" class=\"text-center\"> 
                                <button type=\"submit\" name=\"submitReportTracking\" class=\"btn btn-success submitBtn\">ارسلي التقرير</button> 
                            </td> 
                            </tfoot> 
                        {% endif %} 
                    </form> 
                </table> 
            </div> 
 
 
    </div> 
</div> 
 
</div> 
{% endblock %} 
", "admin/dashboard/index.html.twig", "/home/staging/deploy/releases/163/templates/admin/dashboard/index.html.twig"); 
    } 
}