public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 6
     echo isset($context["module_title"]) ? $context["module_title"] : null;
     echo "</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 9
     echo get_flashdata("tugas");
     echo "\n\n        <div>\n            ";
     // line 12
     echo form_open("admin/tugas/edit_question/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["pertanyaan"]) ? $context["pertanyaan"] : null, "id"));
     echo "\n            <input type=\"hidden\" name=\"jumlah_pilihan\" value=\"4\">\n            <table class=\"table table-bordered table-hover\">\n                <thead>\n                    <tr>\n                        <th>\n                            <div class=\"bs-callout bs-callout-info bs-callout-noborder\">\n                                <div class=\"btn-group pull-right\">\n                                    <a class=\"btn btn-default\" href=\"";
     // line 20
     echo twig_escape_filter($this->env, site_url("admin/tugas/edit/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . enurl_redirect(current_url())), "html", null, true);
     echo "\"><i class=\"icon-edit\"></i> Edit Tugas</a>\n                                    ";
     // line 21
     if ($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "aktif") == 0) {
         // line 22
         echo "                                        ";
         echo anchor("admin/tugas/tampilkan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-ok\"></i> Tampilkan</a>", array("class" => "btn btn-default", "data-toggle" => "tooltip", "title" => "Tampilkan agar siswa dapat <br>mengerjakan tugas"));
         echo "\n                                    ";
     } else {
         // line 24
         echo "                                        ";
         echo anchor("admin/tugas/sembunyikan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-ok\"></i> Sembunyikan</a>", array("class" => "btn btn-success", "data-toggle" => "tooltip", "title" => "Sembunyikan agar siswa sudah <br>tidak dapat mengerjakan tugas"));
         echo "\n                                    ";
     }
     // line 26
     echo "                                </div>\n                                <h2 class=\"title-info\" data-toggle=\"collapse\" data-target=\"#demo\">";
     // line 27
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "judul"), "html", null, true);
     echo "</h2>\n                                <div id=\"demo\" class=\"collapse\">\n                                <label class=\"label label-warning\">Tipe : ";
     // line 29
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "type"), "html", null, true);
     echo "</label>\n                                <label class=\"label label-info\">Durasi : ";
     // line 30
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "durasi"), "html", null, true);
     echo " Menit</label>\n                                <table class=\"table table-condensed table-striped\">\n                                    <thead>\n                                        <tr>\n                                            <th>Pengajar</th>\n                                            <th>Matapelajaran</th>\n                                            <th>Hari</th>\n                                            <th>Jam</th>\n                                            <th>Kelas</th>\n                                        </tr>\n                                    </thead>\n                                    <tbody>\n                                        <tr>\n                                            <td><a href=\"";
     // line 43
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "link_profil"), "html", null, true);
     echo "\">";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "nama"), "html", null, true);
     echo "</a></td>\n                                            <td>";
     // line 44
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "nama"), "html", null, true);
     echo "</td>\n                                            <td>";
     // line 45
     echo twig_escape_filter($this->env, get_indo_hari($this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "hari_id")), "html", null, true);
     echo "</td>\n                                            <td>";
     // line 46
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "jam_mulai"), "H:i"), "html", null, true);
     echo " - ";
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "jam_selesai"), "H:i"), "html", null, true);
     echo "</td>\n                                            <td>";
     // line 47
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "nama"), "html", null, true);
     echo " <span class=\"badge badge-info\">";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "jumlah_siswa"), "html", null, true);
     echo " siswa</span></td>\n                                        </tr>\n                                    </tbody>\n                                </table>\n                                </div>\n                            </div>\n                        </th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <tr class=\"info\">\n                        <td>\n                            <div class=\"row-fluid\">\n                                <div class=\"span10\">\n                                    <ul class=\"unstyled inline\" style=\"margin-left: -5px;\">\n                                        ";
     // line 62
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["retrieve_all_pertanyaan"]) ? $context["retrieve_all_pertanyaan"] : null, "results"));
     foreach ($context['_seq'] as $context["s_key"] => $context["s"]) {
         // line 63
         echo "                                        <li>\n                                            ";
         // line 64
         if (!twig_test_empty($this->getAttribute(isset($context["s"]) ? $context["s"] : null, "kunci_index"))) {
             // line 65
             echo "                                                ";
             $context["kunci_index"] = get_abjad($this->getAttribute(isset($context["s"]) ? $context["s"] : null, "kunci_index"));
             // line 66
             echo "                                            ";
         } else {
             // line 67
             echo "                                                ";
             $context["kunci_index"] = "";
             // line 68
             echo "                                            ";
         }
         // line 69
         echo "                                            ";
         echo anchor("admin/tugas/edit_question/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["s"]) ? $context["s"] : null, "id"), (isset($context["s_key"]) ? $context["s_key"] : null) . ". " . (isset($context["kunci_index"]) ? $context["kunci_index"] : null), array("class" => "label label-info", "data-toggle" => "tooltip", "title" => word_limiter(strip_tags($this->getAttribute(isset($context["s"]) ? $context["s"] : null, "pertanyaan")), 50)));
         echo "\n                                        </li>\n                                        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['s_key'], $context['s'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 72
     echo "                                    </ul>\n                                    <b>Jumlah Soal Tersimpan : ";
     // line 73
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["retrieve_all_pertanyaan"]) ? $context["retrieve_all_pertanyaan"] : null, "total_record"), "html", null, true);
     echo "</b>\n                                </div>\n                                <div class=\"span2\">\n                                    ";
     // line 76
     echo anchor("admin/tugas/add_question/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id"), "Tambah Soal", array("class" => "btn btn-primary"));
     echo "\n                                </div>\n                            </div>\n                        </td>\n                    </tr>\n                    <tr>\n                        <td>\n                            <div class=\"btn-group pull-right\">\n                                <button class=\"btn btn-primary\" type=\"submit\">Update Soal</button>\n                                ";
     // line 85
     echo anchor("admin/tugas/delete_question/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["pertanyaan"]) ? $context["pertanyaan"] : null, "id"), "Hapus Soal", array("class" => "btn btn-danger", "onclick" => "return confirm('Anda yakin ingin manghapus soal ini?')"));
     echo "\n                            </div>\n                            <h3>Edit Pertanyaan <span class=\"text-error\">*</span> ";
     // line 87
     echo form_error("pertanyaan");
     echo "</h3>\n                            <textarea id=\"question\" name=\"pertanyaan\" style=\"width:100%;height:200px;\">";
     // line 88
     echo set_value("pertanyaan", $this->getAttribute(isset($context["pertanyaan"]) ? $context["pertanyaan"] : null, "pertanyaan"));
     echo "</textarea>\n                        </td>\n                    </tr>\n                    ";
     // line 91
     if ($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "type_id") == 3) {
         // line 92
         echo "\n                    ";
         // line 93
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(range(1, 4));
         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
             // line 94
             echo "                    <tr>\n                        <td>\n                            <input type=\"hidden\" name=\"pilihan_";
             // line 96
             echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true);
             echo "_id\" value=\"";
             echo twig_escape_filter($this->env, get_data_array(isset($context["pilihan"]) ? $context["pilihan"] : null, isset($context["i"]) ? $context["i"] : null, "id"), "html", null, true);
             echo "\">\n                            <div class=\"pull-right controls\">\n                                <label class=\"radio inline\"><input type=\"radio\" name=\"kunci\" value=\"pilihan_";
             // line 98
             echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true);
             echo "\" ";
             echo twig_escape_filter($this->env, set_radio("kunci", "pilihan_" . (isset($context["i"]) ? $context["i"] : null), get_data_array(isset($context["pilihan"]) ? $context["pilihan"] : null, isset($context["i"]) ? $context["i"] : null, "kunci") == 1 ? true : ""), "html", null, true);
             echo "> <b class=\"text-warning\">Jadikan Kunci</b></label>\n                            </div>\n                            <h3>Edit Pilihan ";
             // line 100
             echo twig_escape_filter($this->env, get_abjad(isset($context["i"]) ? $context["i"] : null), "html", null, true);
             echo "</h3>\n                            <textarea class=\"tiny_options\" name=\"pilihan_";
             // line 101
             echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true);
             echo "\" style=\"width:100%;height:200px;\">";
             echo set_value("pilihan_" . (isset($context["i"]) ? $context["i"] : null), get_data_array(isset($context["pilihan"]) ? $context["pilihan"] : null, isset($context["i"]) ? $context["i"] : null, "konten"));
             echo "</textarea>\n                        </td>\n                    </tr>\n                    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 105
         echo "                    \n                    ";
     }
     // line 107
     echo "                    <tr>\n                        <td>\n                            <button class=\"btn btn-primary\" type=\"submit\">Update Soal</button>\n                            <a class=\"btn btn-default\" href=\"";
     // line 110
     echo twig_escape_filter($this->env, site_url("admin/tugas/soal/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id")), "html", null, true);
     echo "\">Kembali</a>\n                        \n                            ";
     // line 112
     echo anchor("admin/tugas/delete_question/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["pertanyaan"]) ? $context["pertanyaan"] : null, "id"), "Hapus Soal", array("class" => "btn btn-danger pull-right", "onclick" => "return confirm('Anda yakin ingin manghapus soal ini?')"));
     echo "\n                        </td>\n                    </tr>\n                </tbody>\n            </table>\n            ";
     // line 117
     echo form_close();
     echo "\n        </div>\n    </div>\n</div>\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 6
     echo isset($context["module_title"]) ? $context["module_title"] : null;
     echo "</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 9
     echo get_flashdata("tugas");
     echo "\n\n        <div class=\"bs-callout bs-callout-info bs-callout-noborder\">\n            <div class=\"btn-group pull-right\">\n                <a class=\"btn btn-default\" href=\"";
     // line 13
     echo twig_escape_filter($this->env, site_url("admin/tugas/edit/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . enurl_redirect(current_url())), "html", null, true);
     echo "\"><i class=\"icon-edit\"></i> Edit Tugas</a>\n                ";
     // line 14
     if ($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "aktif") == 0) {
         // line 15
         echo "                    ";
         echo anchor("admin/tugas/tampilkan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-ok\"></i> Tampilkan</a>", array("class" => "btn btn-default", "data-toggle" => "tooltip", "title" => "Tampilkan agar siswa dapat <br>mengerjakan tugas"));
         echo "\n                ";
     } else {
         // line 17
         echo "                    ";
         echo anchor("admin/tugas/sembunyikan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-ok\"></i> Sembunyikan</a>", array("class" => "btn btn-success", "data-toggle" => "tooltip", "title" => "Sembunyikan agar siswa sudah <br>tidak dapat mengerjakan tugas"));
         echo "\n                ";
     }
     // line 19
     echo "            </div>\n            <h2 class=\"title-info\" data-toggle=\"collapse\" data-target=\"#demo\">";
     // line 20
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "judul"), "html", null, true);
     echo "</h2>\n            <div id=\"demo\" class=\"collapse\">\n            <label class=\"label label-warning\">Tipe : ";
     // line 22
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "type"), "html", null, true);
     echo "</label>\n            <label class=\"label label-info\">Durasi : ";
     // line 23
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "durasi"), "html", null, true);
     echo " Menit</label>\n            <table class=\"table table-condensed table-striped\">\n                <thead>\n                    <tr>\n                        <th>Pengajar</th>\n                        <th>Matapelajaran</th>\n                        <th>Hari</th>\n                        <th>Jam</th>\n                        <th>Kelas</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <tr>\n                        <td><a href=\"";
     // line 36
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "link_profil"), "html", null, true);
     echo "\">";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "nama"), "html", null, true);
     echo "</a></td>\n                        <td>";
     // line 37
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "nama"), "html", null, true);
     echo "</td>\n                        <td>";
     // line 38
     echo twig_escape_filter($this->env, get_indo_hari($this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "hari_id")), "html", null, true);
     echo "</td>\n                        <td>";
     // line 39
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "jam_mulai"), "H:i"), "html", null, true);
     echo " - ";
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "jam_selesai"), "H:i"), "html", null, true);
     echo "</td>\n                        <td>";
     // line 40
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "nama"), "html", null, true);
     echo " <span class=\"badge badge-info\">";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "jumlah_siswa"), "html", null, true);
     echo " siswa</span></td>\n                    </tr>\n                </tbody>\n            </table>\n            </div>\n        </div>\n\n        <br>\n        <a href=\"";
     // line 48
     echo twig_escape_filter($this->env, site_url("admin/tugas/add_question/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id")), "html", null, true);
     echo "\" class=\"btn btn-primary\">Tambah Soal</a>\n        <br><br>\n\n        ";
     // line 51
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["retrieve_all_pertanyaan"]) ? $context["retrieve_all_pertanyaan"] : null, "results"));
     foreach ($context['_seq'] as $context["s_key"] => $context["s"]) {
         // line 52
         echo "            <div class=\"well well-small\" style=\"box-shadow: none;border-radius: 0px;\">\n            <table class=\"table table-condensed table-soal\">\n                <tbody>\n                    <tr>\n                        <td width=\"5%\" valign=\"top\"><span style=\"font-size:15px;font-size: bold;\">";
         // line 56
         echo twig_escape_filter($this->env, isset($context["s_key"]) ? $context["s_key"] : null, "html", null, true);
         echo ".</span></td>\n                        <td colspan=\"2\">\n                            ";
         // line 58
         echo $this->getAttribute(isset($context["s"]) ? $context["s"] : null, "pertanyaan");
         echo "\n                        </td>\n                        <td width=\"10%\">\n                            <div class=\"btn-group pull-right\">\n                                ";
         // line 62
         echo anchor("admin/tugas/edit_question/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["s"]) ? $context["s"] : null, "id"), "<i class=\"icon-edit\"></i>", array("class" => "btn", "data-toggle" => "tooltip", "title" => "Edit Soal"));
         echo "\n                                ";
         // line 63
         echo anchor("admin/tugas/delete_question/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["s"]) ? $context["s"] : null, "id"), "<i class=\"icon-trash\"></i>", array("class" => "btn", "data-toggle" => "tooltip", "title" => "Hapus Soal", "onclick" => "return confirm('Anda yakin ingin menghapus soal?')"));
         echo "\n                            </div>\n                        </td>\n                    </tr>\n                    ";
         // line 67
         if (!twig_test_empty($this->getAttribute(isset($context["s"]) ? $context["s"] : null, "pilihan"))) {
             // line 68
             echo "                        ";
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["s"]) ? $context["s"] : null, "pilihan"));
             foreach ($context['_seq'] as $context["p_key"] => $context["p"]) {
                 // line 69
                 echo "                        <tr>\n                            <td></td>\n                            <td width=\"3%\"><b class=\"";
                 // line 71
                 echo $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "kunci") == 1 ? "badge badge-success" : "badge";
                 echo "\">";
                 echo twig_escape_filter($this->env, get_abjad(isset($context["p_key"]) ? $context["p_key"] : null), "html", null, true);
                 echo ".</b></td>\n                            <td>";
                 // line 72
                 echo $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "konten");
                 echo "</td>\n                            <td></td>\n                        </tr>\n                        ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['p_key'], $context['p'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 76
             echo "                    ";
         }
         // line 77
         echo "                </tbody>\n            </table>\n            </div>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['s_key'], $context['s'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 81
     echo "\n        <br>\n        ";
     // line 83
     echo isset($context["pagination"]) ? $context["pagination"] : null;
     echo "\n    </div>\n</div>\n";
 }
Example #3
0
 function get_jadwal_mapel_siswa($siswa_id)
 {
     $siswa = $this->siswa_model->retrieve($siswa_id);
     if (empty($siswa)) {
         return array();
     }
     # cari kelas aktif
     $kelas_aktif = $this->siswa_kelas_aktif;
     # cek kelas, aktif tidak
     $kelas = $this->kelas_model->retrieve($kelas_aktif['kelas_id']);
     if (empty($kelas['aktif'])) {
         return array();
     }
     $jadwal = array();
     foreach (get_indo_hari() as $hari_key => $hari_nama) {
         $jadwal[$hari_key] = array();
         $jadwal[$hari_key]['nama_hari'] = $hari_nama;
         # cari mapel_ajar yang hari dan kelasnya ini
         $mapel_ajar = $this->pengajar_model->retrieve_all_ma($hari_key, null, null, 1, $kelas['id']);
         foreach ($mapel_ajar as $ma) {
             $mapel_kelas = $this->mapel_model->retrieve_kelas($ma['mapel_kelas_id']);
             if (empty($mapel_kelas)) {
                 continue;
             }
             $mapel = $this->mapel_model->retrieve($mapel_kelas['mapel_id']);
             if (empty($mapel['aktif'])) {
                 continue;
             }
             $ma['pengajar'] = $this->pengajar_model->retrieve($ma['pengajar_id']);
             $ma['pengajar']['link_profil'] = site_url('pengajar/detail/' . $ma['pengajar_id']);
             $ma['mapel'] = $mapel;
             $jadwal[$hari_key]['jadwal'][] = $ma;
         }
     }
     return $jadwal;
 }
 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 6
     echo isset($context["module_title"]) ? $context["module_title"] : null;
     echo "</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 9
     echo get_flashdata("tugas");
     echo "\n\n        <div class=\"row-fluid\">\n            <div class=\"span8\">\n                <button class=\"btn btn-primary\" id=\"popover\" data-html=\"true\" data-title=\"Cara Tambah Tugas\" data-content=\"Masuk ke detail profil <b>Pengajar</b>. Tugas dapat ditambah pada <b>Matapelajaran</b> yang diajar.<br>\n                <br>";
     // line 14
     echo twig_escape_filter($this->env, anchor("admin/pengajar/filter", "Cari Pengajar", array("class" => "btn btn-small btn-primary")), "html", null, true);
     echo "\" data-toggle=\"popover\">Tambah Tugas</button>\n            </div>\n\n            <div class=\"span4\">\n                <div class=\"btn-group pull-right\">\n                    ";
     // line 19
     echo anchor("admin/tugas/list/0", "Semua", array("class" => (isset($context["type_id"]) ? $context["type_id"] : null) == 0 ? "btn btn-info" : "btn"));
     echo "\n                    ";
     // line 20
     echo anchor("admin/tugas/list/1", "Upload", array("class" => (isset($context["type_id"]) ? $context["type_id"] : null) == 1 ? "btn btn-info" : "btn"));
     echo "\n                    ";
     // line 21
     echo anchor("admin/tugas/list/2", "Essay", array("class" => (isset($context["type_id"]) ? $context["type_id"] : null) == 2 ? "btn btn-info" : "btn"));
     echo "\n                    ";
     // line 22
     echo anchor("admin/tugas/list/3", "Ganda", array("class" => (isset($context["type_id"]) ? $context["type_id"] : null) == 3 ? "btn btn-info" : "btn"));
     echo "\n                    ";
     // line 23
     echo anchor("admin/tugas/filter", "<i class=\"icon-search\"></i> Filter", array("class" => "btn"));
     echo "\n                </div>\n            </div>\n        </div>\n\n        <br>\n        ";
     // line 29
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["tugas"]) ? $context["tugas"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["t"]) {
         // line 30
         echo "        <div class=\"well well-small\" style=\"box-shadow: none;border-radius: 0px;\">\n            <div class=\"btn-group pull-right\" style=\"margin-bottom: 0px;\">\n                ";
         // line 32
         echo anchor("admin/tugas/edit/" . $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "mapel_ajar_id") . "/" . $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-edit\"></i> Edit", array("class" => "btn btn-default"));
         echo "\n\n                ";
         // line 34
         if ($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "type_id") != 1) {
             // line 35
             echo "                <a class=\"btn btn-default\" href=\"";
             echo twig_escape_filter($this->env, site_url("admin/tugas/soal/" . $this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "mapel_ajar"), "id") . "/" . $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "id")), "html", null, true);
             echo "\" data-toggle=\"tooltip\" title=\"Manajemen Soal\"><i class=\"icon-align-justify\"></i> Soal</a>\n                ";
         }
         // line 37
         echo "\n                ";
         // line 38
         if ($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "aktif") == 0) {
             // line 39
             echo "                    ";
             echo anchor("admin/tugas/tampilkan/" . $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-ok\"></i> Tampilkan</a>", array("class" => "btn btn-default", "data-toggle" => "tooltip", "title" => "Tampilkan agar siswa dapat <br>mengerjakan tugas"));
             echo "\n                ";
         } else {
             // line 41
             echo "                    ";
             echo anchor("admin/tugas/sembunyikan/" . $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-ok\"></i> Sembunyikan</a>", array("class" => "btn btn-success", "data-toggle" => "tooltip", "title" => "Sembunyikan agar siswa sudah <br>tidak dapat mengerjakan tugas"));
             echo "\n                ";
         }
         // line 43
         echo "\n                ";
         // line 44
         echo anchor("admin/tugas/koreksi/" . $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "id"), "<i class=\"icon-eye-open\"></i> Koreksi", array("class" => "btn btn-default", "data-toggle" => "tooltip", "title" => "Koreksi Jawaban"));
         echo "\n            </div>\n            <h3 style=\"line-height: 25px;\">";
         // line 46
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "judul"), "html", null, true);
         echo "</h3>\n            <ul class=\"unstyled inline\" style=\"margin-bottom: 5px;margin-top: 5px;\">\n                <li class=\"label label-success\">";
         // line 48
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "type"), "html", null, true);
         echo "</li>\n                ";
         // line 49
         if ($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "type_id") == 2 || $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "type_id") == 3) {
             // line 50
             echo "                <li class=\"label label-success\">";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "durasi"), "html", null, true);
             echo " menit</li>\n                ";
         }
         // line 52
         echo "                <li class=\"label label-info\">";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "mapel"), "nama"), "html", null, true);
         echo "</li>\n                <li class=\"label label-info\">";
         // line 53
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "kelas"), "nama"), "html", null, true);
         echo " (";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "kelas"), "jumlah_siswa"), "html", null, true);
         echo " siswa)</li>\n                <li class=\"label label-info\">";
         // line 54
         echo twig_escape_filter($this->env, get_indo_hari($this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "mapel_ajar"), "hari_id")), "html", null, true);
         echo "</li>\n                <li class=\"label label-info\">";
         // line 55
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "mapel_ajar"), "jam_mulai"), "H:i"), "html", null, true);
         echo " - ";
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "mapel_ajar"), "jam_selesai"), "H:i"), "html", null, true);
         echo "</li>\n            </ul>\n            \n            <div class=\"row-fluid\">\n                <div class=\"span8\">\n                    ";
         // line 60
         echo $this->getAttribute(isset($context["t"]) ? $context["t"] : null, "info");
         echo "\n                </div>\n                <div class=\"span4\">\n                    <span class=\"text-muted pull-right\">\n                        <a href=\"";
         // line 64
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "pengajar"), "link_profil"), "html", null, true);
         echo "\" data-toggle=\"tooltip\" title=\"Pembuat\">";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "pengajar"), "nama"), "html", null, true);
         echo "</a> ";
         echo twig_escape_filter($this->env, tgl_jam_indo($this->getAttribute(isset($context["t"]) ? $context["t"] : null, "tgl_buat")), "html", null, true);
         echo "\n                    </span>\n                </div>\n            </div>\n        </div>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['t'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 70
     echo "\n        <br>\n        ";
     // line 72
     echo isset($context["pagination"]) ? $context["pagination"] : null;
     echo "\n\n    </div>\n</div>\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 6
     echo isset($context["module_title"]) ? $context["module_title"] : null;
     echo "</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 9
     echo get_flashdata("tugas");
     echo "\n\n        <div class=\"bs-callout bs-callout-info bs-callout-noborder\">\n            <div class=\"row-fluid\">\n                <div class=\"span11\">\n                    <table class=\"table table-condensed table-striped\">\n                        <thead>\n                            <tr>\n                                <th>Pengajar</th>\n                                <th>Matapelajaran</th>\n                                <th>Hari</th>\n                                <th>Jam</th>\n                                <th>Kelas</th>\n                            </tr>\n                        </thead>\n                        <tbody>\n                            <tr>\n                                <td><a href=\"";
     // line 26
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "link_profil"), "html", null, true);
     echo "\">";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "nama"), "html", null, true);
     echo "</a></td>\n                                <td>";
     // line 27
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "nama"), "html", null, true);
     echo "</td>\n                                <td>";
     // line 28
     echo twig_escape_filter($this->env, get_indo_hari($this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "hari_id")), "html", null, true);
     echo "</td>\n                                <td>";
     // line 29
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "jam_mulai"), "H:i"), "html", null, true);
     echo " - ";
     echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "jam_selesai"), "H:i"), "html", null, true);
     echo "</td>\n                                <td>";
     // line 30
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "nama"), "html", null, true);
     echo " <b>( ";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "jumlah_siswa"), "html", null, true);
     echo " siswa)</b></td>\n                            </tr>\n                        </tbody>\n                    </table>\n                </div>\n                <div class=\"span1\">\n                    <img src=\"";
     // line 36
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "link_foto"), "html", null, true);
     echo "\" class=\"pull-right img-circle img-polaroid img-profile-top\">\n                </div>\n            </div>\n        </div>\n\n        <br>\n        ";
     // line 42
     echo form_open_multipart("admin/tugas/edit/" . $this->getAttribute(isset($context["mapel_ajar"]) ? $context["mapel_ajar"] : null, "id") . "/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . enurl_redirect(isset($context["uri_back"]) ? $context["uri_back"] : null), array("class" => "form-horizontal row-fluid"));
     echo "\n        <div class=\"control-group\">\n            <label class=\"control-label\">Judul Tugas <span class=\"text-error\">*</span></label>\n            <div class=\"controls\">\n                <input type=\"text\" name=\"judul\" class=\"span12\" value=\"";
     // line 46
     echo twig_escape_filter($this->env, set_value("judul", $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "judul")), "html", null, true);
     echo "\">\n                <br>";
     // line 47
     echo form_error("judul");
     echo "\n            </div>\n        </div>\n        <div class=\"control-group\">\n            <label class=\"control-label\">Durasi</label>\n            <div class=\"controls\">\n                <input type=\"text\" name=\"durasi\" value=\"";
     // line 53
     echo twig_escape_filter($this->env, set_value("durasi", $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "durasi")), "html", null, true);
     echo "\" class=\"span2\" placeholder=\"Dalam Menit\">\n                <br><span class=\"text-muted\">Kusus untuk tipe soal <b>Pilihan Ganda</b> dan <b>Essay</b></span>\n                <br>";
     // line 55
     echo form_error("durasi");
     echo "\n            </div>\n        </div>\n        <div class=\"control-group\">\n            <label class=\"control-label\">Info</label>\n            <div class=\"controls\">\n                <textarea name=\"info\" id=\"info\" style=\"height:150px;width:100%;\">";
     // line 61
     echo set_value("info", $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "info"));
     echo "</textarea>\n                ";
     // line 62
     echo form_error("info");
     echo "\n            </div>\n        </div>\n        <div class=\"control-group\">\n            <div class=\"controls\">\n                <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n                ";
     // line 68
     echo anchor(isset($context["uri_back"]) ? $context["uri_back"] : null, "Kembali", array("class" => "btn"));
     echo "\n            </div>\n        </div>\n        ";
     // line 71
     echo form_close();
     echo "\n    </div>\n</div>\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<h4>Tambah Jadwal Mengajar Hari ";
     echo twig_escape_filter($this->env, get_indo_hari(isset($context["hari_id"]) ? $context["hari_id"] : null), "html", null, true);
     echo "</h4>\n";
     // line 5
     echo get_flashdata("add");
     echo "\n\n";
     // line 7
     echo form_open("pengajar/add_ampuan/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . (isset($context["pengajar_id"]) ? $context["pengajar_id"] : null) . "/" . (isset($context["hari_id"]) ? $context["hari_id"] : null));
     echo "\n<input type=\"hidden\" name=\"pengajar_id\" value=\"";
     // line 8
     echo twig_escape_filter($this->env, isset($context["pengajar_id"]) ? $context["pengajar_id"] : null, "html", null, true);
     echo "\">\n<table class=\"table table-striped\">\n    <tbody>\n        <tr>\n            <th width=\"27%\">Kelas <span class=\"text-error\">*</span></th>\n            <td>\n                <select name=\"kelas_id\" style=\"width:auto;\" id=\"kelas_id\">\n                    <option value=\"\">Pilih Kelas</option>\n                    ";
     // line 16
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["kelas"]) ? $context["kelas"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["k"]) {
         // line 17
         echo "                    <option value=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id"), "html", null, true);
         echo "\" ";
         echo twig_escape_filter($this->env, set_select("kelas_id", $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "id")), "html", null, true);
         echo ">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "nama"), "html", null, true);
         echo "</option>\n                    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['k'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 19
     echo "                </select>\n                <br>";
     // line 20
     echo form_error("kelas_id");
     echo "\n            </td>\n        </tr>\n        <tr>\n            <th>Mapel <span class=\"text-error\">*</span></th>\n            <td>\n                <select name=\"mapel_kelas_id\" style=\"width:auto\" id=\"mapel_kelas_id\">\n                    <option value=\"\">Pilih Matapelajaran</option>\n                    ";
     // line 28
     if (!twig_test_empty(get_post_data("kelas_id"))) {
         // line 29
         echo "                        ";
         $context["post_kelas_id"] = get_post_data("kelas_id");
         // line 30
         echo "                        ";
         $context["mapel_kelas"] = get_row_data("mapel_model", "retrieve_all_kelas", array(0 => null, 1 => isset($context["post_kelas_id"]) ? $context["post_kelas_id"] : null));
         // line 31
         echo "                        ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["mapel_kelas"]) ? $context["mapel_kelas"] : null);
         foreach ($context['_seq'] as $context["_key"] => $context["mk"]) {
             // line 32
             echo "                            ";
             $context["m"] = get_row_data("mapel_model", "retrieve", array(0 => $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "mapel_id")));
             // line 33
             echo "                            ";
             if (!twig_test_empty(isset($context["m"]) ? $context["m"] : null)) {
                 // line 34
                 echo "                            <option value=\"";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "id"), "html", null, true);
                 echo "\" ";
                 echo get_post_data("mapel_kelas_id") == $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "id") ? "selected" : "";
                 echo ">";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "nama"), "html", null, true);
                 echo "</option>\n                            ";
             }
             // line 36
             echo "                        ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mk'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 37
         echo "                    ";
     }
     // line 38
     echo "                </select>\n                <br><span class=\"text-muted\">Pilih kelas terlebih dahulu</span>\n                <br>";
     // line 40
     echo form_error("mapel_kelas_id");
     echo "\n            </td>\n        </tr>\n        <tr>\n            <th>Jam Mulai <span class=\"text-error\">*</span></th>\n            <td>\n                <input type=\"text\" name=\"jam_mulai\" style=\"width:19%\" placeholder=\"hh:mm\" value=\"";
     // line 46
     echo twig_escape_filter($this->env, set_value("jam_mulai"), "html", null, true);
     echo "\">\n                <span class=\"pull-right text-muted\">Contoh : 08:30</span>\n                <br>";
     // line 48
     echo form_error("jam_mulai");
     echo "\n            </td>\n        </tr>\n        <tr>\n            <th>Jam Selesai <span class=\"text-error\">*</span></th>\n            <td>\n                <input type=\"text\" name=\"jam_selesai\" style=\"width:19%\" placeholder=\"hh:mm\" value=\"";
     // line 54
     echo twig_escape_filter($this->env, set_value("jam_selesai"), "html", null, true);
     echo "\">\n                <span class=\"pull-right text-muted\">Contoh : 13:30</span>\n                <br>";
     // line 56
     echo form_error("jam_selesai");
     echo "\n            </td>\n        </tr>\n        <tr>\n            <td colspan=\"2\"><button type=\"submit\" class=\"btn btn-primary\">Simpan</button></td>\n        </tr>\n    </tbody>\n</table>\n";
     // line 64
     echo form_close();
     echo "\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        ";
     // line 10
     if (is_admin() == true) {
         // line 11
         echo "        <h3>";
         echo anchor("pengajar/index/" . (isset($context["status_id"]) ? $context["status_id"] : null), "Data Pengajar");
         echo " / Detail Pengajar</h3>\n        ";
     } else {
         // line 13
         echo "        <h3>";
         echo anchor("pengajar/filter", "Filter Pengajar");
         echo " / Detail Pengajar</h3>\n        ";
     }
     // line 15
     echo "    </div>\n    <div class=\"module-body\">\n        ";
     // line 17
     echo get_flashdata("pengajar");
     echo "\n\n        ";
     // line 19
     if ($this->getAttribute(isset($context["pengajar_login"]) ? $context["pengajar_login"] : null, "id") != get_sess_data("login", "id")) {
         // line 20
         echo "        <div class=\"row-fluid\">\n            <div class=\"span4\">\n                <div class=\"btn-group\">\n                    <a class=\"btn btn-default btn-sm\" href=\"";
         // line 23
         echo twig_escape_filter($this->env, site_url("message/to/pengajar/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id")), "html", null, true);
         echo "\"><i class=\"icon-comments\"></i> Kirim Pesan</a>\n                </div>\n            </div>\n        </div>\n        <br>\n        ";
     }
     // line 29
     echo "\n        <div class=\"panel panel-default\">\n            <div class=\"panel-heading\">\n                <strong>Profil pengajar ";
     // line 32
     echo $this->getAttribute(isset($context["pengajar_login"]) ? $context["pengajar_login"] : null, "is_admin") == 1 ? "<label class=\"label label-warning\">Administrator</label>" : "";
     echo "</strong>\n                ";
     // line 33
     if (is_admin() == true) {
         // line 34
         echo "                <div class=\"btn-group pull-right\" style=\"margin-top:-4px;\">\n                    ";
         // line 35
         echo anchor("pengajar/edit_profile/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Profil", array("class" => "iframe-4 btn btn-small btn-primary", "title" => "Edit Profil Pengajar"));
         echo "\n                    ";
         // line 36
         echo anchor("pengajar/edit_picture/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Foto", array("class" => "iframe-5 btn btn-small btn-primary", "title" => "Edit Foto Pengajar"));
         echo "\n                </div>\n                ";
     }
     // line 39
     echo "            </div>\n            <div class=\"panel-body\">\n                <table class=\"table\">\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\" width=\"25%\" style=\"border-top: 0px;\">NIP</th>\n                        <td style=\"border-top: 0px;\">";
     // line 44
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "nip"), "html", null, true);
     echo "</td>\n                        <td rowspan=\"5\" width=\"15%\" style=\"border-top: 0px;\">\n                            <img style=\"width:113px;\" class=\"img-polaroid\" src=\"";
     // line 46
     echo twig_escape_filter($this->env, get_url_image_pengajar($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "foto"), "medium", $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "jenis_kelamin")), "html", null, true);
     echo "\">\n                        </td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Nama</th>\n                        <td>";
     // line 51
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "nama"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Jenis Kelamin</th>\n                        <td>";
     // line 55
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "jenis_kelamin"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Tempat Lahir</th>\n                        <td>";
     // line 59
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "tempat_lahir"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Tanggal Lahir</th>\n                        <td>";
     // line 63
     echo twig_escape_filter($this->env, !twig_test_empty($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "tgl_lahir")) ? tgl_indo($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "tgl_lahir")) : "", "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Alamat</th>\n                        <td colspan=\"2\">";
     // line 67
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "alamat"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Status</th>\n                        <td colspan=\"2\">\n                            ";
     // line 72
     if ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 0) {
         // line 73
         echo "                                Pending\n                            ";
     } elseif ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 1) {
         // line 75
         echo "                                Aktif\n                            ";
     } elseif ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 2) {
         // line 77
         echo "                                Blocking\n                            ";
     }
     // line 79
     echo "                        </td>\n                    </tr>\n                </table>\n            </div>\n        </div>\n\n        <div class=\"row-fluid\">\n            <div class=\"span12\">\n                <div class=\"panel panel-default\">\n                    <div class=\"panel-heading\">\n                        <strong>Jadwal Mengajar</strong>\n                    </div>\n                    <div class=\"panel-body\">\n                        <table class=\"table\">\n                            <thead>\n                                <tr bgcolor=\"#fbfbfb\">\n                                    <th>HARI</th>\n                                    <th>MATAPELAJARAN DAN JAM</th>\n                                </tr>\n                            </thead>\n                            <tbody>\n                                ";
     // line 100
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(get_indo_hari());
     foreach ($context['_seq'] as $context["hari_id"] => $context["h"]) {
         // line 101
         echo "                                <tr>\n                                    <th width=\"15%\">";
         // line 102
         echo twig_escape_filter($this->env, isset($context["h"]) ? $context["h"] : null, "html", null, true);
         echo "</th>\n                                    <td>\n                                        ";
         // line 104
         if (is_admin() == true) {
             // line 105
             echo "                                        ";
             echo anchor("pengajar/add_ampuan/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id") . "/" . (isset($context["hari_id"]) ? $context["hari_id"] : null), "Tambah", array("class" => "iframe btn btn-small btn-primary", "title" => "Tambah jadwal hari " . (isset($context["h"]) ? $context["h"] : null)));
             echo "\n                                        ";
         }
         // line 107
         echo "\n                                        ";
         // line 108
         $context["retrieve_all_ma"] = get_row_data("pengajar_model", "retrieve_all_ma", array(0 => isset($context["hari_id"]) ? $context["hari_id"] : null, 1 => $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), 2 => null, 3 => is_pengajar() == true || is_siswa() == true ? 1 : null));
         // line 109
         echo "                                        ";
         if (!twig_test_empty(isset($context["retrieve_all_ma"]) ? $context["retrieve_all_ma"] : null)) {
             // line 110
             echo "                                        <table style=\"margin-top:10px;\" class=\"table table-condensed\">\n                                            ";
             // line 111
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(isset($context["retrieve_all_ma"]) ? $context["retrieve_all_ma"] : null);
             foreach ($context['_seq'] as $context["_key"] => $context["ma"]) {
                 // line 112
                 echo "                                                ";
                 $context["mk"] = get_row_data("mapel_model", "retrieve_kelas", array(0 => $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "mapel_kelas_id")));
                 // line 113
                 echo "                                                ";
                 $context["k"] = get_row_data("kelas_model", "retrieve", array(0 => $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "kelas_id")));
                 // line 114
                 echo "                                                ";
                 $context["m"] = get_row_data("mapel_model", "retrieve", array(0 => $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "mapel_id")));
                 // line 115
                 echo "                                                <tr ";
                 echo $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "aktif") == 0 ? "class=\"error text-muted\"" : "class=\"info text-info\"";
                 echo ">\n                                                    <td width=\"15%\">";
                 // line 116
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "jam_mulai"), "H:i"), "html", null, true);
                 echo " - ";
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "jam_selesai"), "H:i"), "html", null, true);
                 echo "</td>\n                                                    <td>";
                 // line 117
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "nama"), "html", null, true);
                 echo "</td>\n                                                    <td width=\"20%\">";
                 // line 118
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "nama"), "html", null, true);
                 echo "</td>\n\n                                                    ";
                 // line 120
                 if (is_admin() == true) {
                     // line 121
                     echo "                                                    <td width=\"10%\">\n                                                        ";
                     // line 122
                     echo anchor("pengajar/edit_ampuan/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id") . "/" . $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "id"), "<i class=\"icon-edit\"></i> Edit", array("title" => "Edit Jadwal Ajar", "class" => "iframe-6"));
                     echo "\n                                                    </td>\n                                                    ";
                 }
                 // line 125
                 echo "\n                                                </tr>\n                                            ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ma'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 128
             echo "                                        </table>\n                                        ";
         }
         // line 130
         echo "                                    </td>\n                                </tr>\n                                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['hari_id'], $context['h'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 133
     echo "                            </tbody>\n                        </table>\n                    </div>\n                </div>\n            </div>\n        </div>\n        ";
     // line 139
     if (is_admin() == true) {
         // line 140
         echo "        <div class=\"row-fluid\">\n            <div class=\"span5\">\n                <div class=\"panel panel-default\" id=\"akun\">\n                    <div class=\"panel-heading\">\n                        <strong>Akun Login</strong>\n                        <div class=\"btn-group pull-right\" style=\"margin-top:-4px;\">\n                            ";
         // line 146
         echo anchor("pengajar/edit_username/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Username", array("class" => "iframe-2 btn btn-small btn-primary", "title" => "Edit Username pengajar"));
         echo "\n                            ";
         // line 147
         echo anchor("pengajar/edit_password/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Password", array("class" => "iframe-3 btn btn-small btn-primary", "title" => "Edit Password pengajar"));
         echo "\n                        </div>\n                    </div>\n                    <div class=\"panel-body\">\n                        <table class=\"table\">\n                            <tbody>\n                                <tr>\n                                    <th width=\"30%\" bgcolor=\"#FBFBFB\" style=\"border-top: 0px;\">Username</th>\n                                    <td style=\"border-top: 0px;\">\n                                        ";
         // line 156
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar_login"]) ? $context["pengajar_login"] : null, "username"), "html", null, true);
         echo "\n                                    </td>\n                                </tr>\n                                <tr>\n                                    <th bgcolor=\"#FBFBFB\">Password</th>\n                                    <td>\n                                        *********\n                                    </td>\n                                </tr>\n                            </tbody>\n                        </table>\n                    </div>\n                </div>\n            </div>\n        </div>\n        ";
     }
     // line 172
     echo "    </div>\n</div>\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"row-fluid\">\n    <div class=\"span12\">\n        <div class=\"panel panel-default\">\n            <div class=\"panel-heading\">\n                <strong>Jadwal Mengajar</strong>\n            </div>\n            <div class=\"panel-body\">\n                <table class=\"table\">\n                    <thead>\n                        <tr bgcolor=\"#fbfbfb\">\n                            <th>HARI</th>\n                            <th>MATAPELAJARAN DAN JAM</th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                        ";
     // line 23
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(get_indo_hari());
     foreach ($context['_seq'] as $context["hari_id"] => $context["h"]) {
         // line 24
         echo "                        <tr>\n                            <th width=\"15%\">";
         // line 25
         echo twig_escape_filter($this->env, isset($context["h"]) ? $context["h"] : null, "html", null, true);
         echo "</th>\n                            <td>\n                                ";
         // line 27
         echo anchor("pengajar/add_ampuan/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id") . "/" . (isset($context["hari_id"]) ? $context["hari_id"] : null), "Tambah", array("class" => "iframe btn btn-small btn-primary", "title" => "Tambah jadwal hari " . (isset($context["h"]) ? $context["h"] : null)));
         echo "\n                                ";
         // line 28
         $context["retrieve_all_ma"] = get_row_data("pengajar_model", "retrieve_all_ma", array(0 => isset($context["hari_id"]) ? $context["hari_id"] : null, 1 => $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), 2 => null));
         // line 29
         echo "                                ";
         if (!twig_test_empty(isset($context["retrieve_all_ma"]) ? $context["retrieve_all_ma"] : null)) {
             // line 30
             echo "                                <table style=\"margin-top:10px;\" class=\"table table-condensed\">\n                                    ";
             // line 31
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(isset($context["retrieve_all_ma"]) ? $context["retrieve_all_ma"] : null);
             foreach ($context['_seq'] as $context["_key"] => $context["ma"]) {
                 // line 32
                 echo "                                        ";
                 $context["mk"] = get_row_data("mapel_model", "retrieve_kelas", array(0 => $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "mapel_kelas_id")));
                 // line 33
                 echo "                                        ";
                 $context["k"] = get_row_data("kelas_model", "retrieve", array(0 => $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "kelas_id")));
                 // line 34
                 echo "                                        ";
                 $context["m"] = get_row_data("mapel_model", "retrieve", array(0 => $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "mapel_id")));
                 // line 35
                 echo "                                        <tr ";
                 echo $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "aktif") == 0 ? "class=\"error text-muted\"" : "class=\"info text-info\"";
                 echo ">\n                                            <td width=\"15%\">";
                 // line 36
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "jam_mulai"), "H:i"), "html", null, true);
                 echo " - ";
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "jam_selesai"), "H:i"), "html", null, true);
                 echo "</td>\n                                            <td>";
                 // line 37
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "nama"), "html", null, true);
                 echo "</td>\n                                            <td width=\"20%\">";
                 // line 38
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "nama"), "html", null, true);
                 echo "</td>\n                                            <td width=\"10%\">\n                                                ";
                 // line 40
                 echo anchor("pengajar/edit_ampuan/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id") . "/" . $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "id"), "<i class=\"icon-edit\"></i> Edit", array("title" => "Edit Jadwal Ajar", "class" => "iframe-6"));
                 echo "\n                                            </td>\n                                        </tr>\n                                    ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ma'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 44
             echo "                                </table>\n                                ";
         }
         // line 46
         echo "                            </td>\n                        </tr>\n                        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['hari_id'], $context['h'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 49
     echo "                    </tbody>\n                </table>\n            </div>\n        </div>\n    </div>\n</div>\n";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 6
     echo isset($context["module_title"]) ? $context["module_title"] : null;
     echo "</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 9
     echo get_flashdata("pengajar");
     echo "\n\n        <div class=\"panel panel-default\">\n            <div class=\"panel-heading\">\n                <strong>Profil pengajar</strong>\n                <div class=\"btn-group pull-right\" style=\"margin-top:-4px;\">\n                    ";
     // line 15
     echo anchor("admin/pengajar/edit_profile/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Profil", array("class" => "iframe-4 btn btn-small btn-primary", "title" => "Edit Profil Pengajar"));
     echo "\n                    ";
     // line 16
     echo anchor("admin/pengajar/edit_picture/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Foto", array("class" => "iframe-5 btn btn-small btn-primary", "title" => "Edit Foto Pengajar"));
     echo "\n                </div>\n            </div>\n            <div class=\"panel-body\">\n                <table class=\"table\">\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\" width=\"25%\">NIP</th>\n                        <td>";
     // line 23
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "nip"), "html", null, true);
     echo "</td>\n                        <td rowspan=\"5\" width=\"15%\">\n                            <img style=\"width:113px;\" class=\"img-polaroid\" src=\"";
     // line 25
     echo twig_escape_filter($this->env, get_url_image_pengajar($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "foto"), "medium", $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "jenis_kelamin")), "html", null, true);
     echo "\">\n                        </td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Nama</th>\n                        <td>";
     // line 30
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "nama"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Jenis Kelamin</th>\n                        <td>";
     // line 34
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "jenis_kelamin"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Tempat Lahir</th>\n                        <td>";
     // line 38
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "tempat_lahir"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Tanggal Lahir</th>\n                        <td>";
     // line 42
     echo twig_escape_filter($this->env, !twig_test_empty($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "tgl_lahir")) ? tgl_indo($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "tgl_lahir")) : "", "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Alamat</th>\n                        <td colspan=\"2\">";
     // line 46
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "alamat"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th bgcolor=\"#FBFBFB\">Status</th>\n                        <td colspan=\"2\">\n                            ";
     // line 51
     if ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 0) {
         // line 52
         echo "                                Pending\n                            ";
     } elseif ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 1) {
         // line 54
         echo "                                Aktif\n                            ";
     } elseif ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 2) {
         // line 56
         echo "                                Blocking\n                            ";
     }
     // line 58
     echo "                        </td>\n                    </tr>\n                </table>\n            </div>\n        </div>\n\n        <div class=\"row-fluid\">\n            <div class=\"span12\">\n                <div class=\"panel panel-default\" id=\"riwayat-kelas\">\n                    <div class=\"panel-heading\">\n                        <strong>Jadwal Matapelajaran Ajar</strong>\n                    </div>\n                    <div class=\"panel-body\">\n                        <div class=\"bs-callout bs-callout-info\">\n                            <p>\n                                Atur matapelajaran dan jadwal mengajar <b>";
     // line 73
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "nama"), "html", null, true);
     echo "</b>.\n                                <br><b>Note:</b> Jadwal tidak dapat di hapus, namun dapat di ubah menjadi tidak aktif.\n                            </p>\n                        </div>\n                        <br>\n                        <table class=\"table\">\n                            <thead>\n                                <tr bgcolor=\"#fbfbfb\">\n                                    <th>HARI</th>\n                                    <th>MATAPELAJARAN DAN JAM</th>\n                                </tr>\n                            </thead>\n                            <tbody>\n                                ";
     // line 86
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(get_indo_hari());
     foreach ($context['_seq'] as $context["hari_id"] => $context["h"]) {
         // line 87
         echo "                                <tr>\n                                    <th width=\"15%\">";
         // line 88
         echo twig_escape_filter($this->env, isset($context["h"]) ? $context["h"] : null, "html", null, true);
         echo "</th>\n                                    <td>\n                                        ";
         // line 90
         echo anchor("admin/pengajar/add_ampuan/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id") . "/" . (isset($context["hari_id"]) ? $context["hari_id"] : null), "Tambah", array("class" => "iframe btn btn-small btn-primary", "title" => "Tambah jadwal hari " . (isset($context["h"]) ? $context["h"] : null)));
         echo "\n                                        ";
         // line 91
         $context["retrieve_all_ma"] = get_row_data("pengajar_model", "retrieve_all_ma", array(0 => isset($context["hari_id"]) ? $context["hari_id"] : null, 1 => $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), 2 => null));
         // line 92
         echo "                                        ";
         if (!twig_test_empty(isset($context["retrieve_all_ma"]) ? $context["retrieve_all_ma"] : null)) {
             // line 93
             echo "                                        <table style=\"margin-top:10px;\" class=\"table table-condensed\">\n                                            ";
             // line 94
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(isset($context["retrieve_all_ma"]) ? $context["retrieve_all_ma"] : null);
             foreach ($context['_seq'] as $context["_key"] => $context["ma"]) {
                 // line 95
                 echo "                                                ";
                 $context["mk"] = get_row_data("mapel_model", "retrieve_kelas", array(0 => $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "mapel_kelas_id")));
                 // line 96
                 echo "                                                ";
                 $context["k"] = get_row_data("kelas_model", "retrieve", array(0 => $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "kelas_id")));
                 // line 97
                 echo "                                                ";
                 $context["m"] = get_row_data("mapel_model", "retrieve", array(0 => $this->getAttribute(isset($context["mk"]) ? $context["mk"] : null, "mapel_id")));
                 // line 98
                 echo "                                                <tr ";
                 echo $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "aktif") == 0 ? "class=\"error text-muted\"" : "class=\"info text-info\"";
                 echo ">\n                                                    <td width=\"15%\">";
                 // line 99
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "jam_mulai"), "H:i"), "html", null, true);
                 echo " - ";
                 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "jam_selesai"), "H:i"), "html", null, true);
                 echo "</td>\n                                                    <td>";
                 // line 100
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["m"]) ? $context["m"] : null, "nama"), "html", null, true);
                 echo "</td>\n                                                    <td width=\"20%\">";
                 // line 101
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "nama"), "html", null, true);
                 echo "</td>\n                                                    <td width=\"17%\">\n                                                        ";
                 // line 103
                 echo anchor("admin/pengajar/edit_ampuan/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id") . "/" . $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "id"), "<i class=\"icon-edit\"></i> Edit", array("title" => "Edit Jadwal Ajar", "class" => "iframe-6"));
                 echo " \n                                                        ";
                 // line 104
                 echo anchor("admin/tugas/add/" . $this->getAttribute(isset($context["ma"]) ? $context["ma"] : null, "id"), "<i class=\"icon-tasks\"></i> Tugas");
                 echo "\n                                                    </td>\n                                                </tr>\n                                            ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ma'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 108
             echo "                                        </table>\n                                        ";
         }
         // line 110
         echo "                                    </td>\n                                </tr>\n                                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['hari_id'], $context['h'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 113
     echo "                            </tbody>\n                        </table>\n                    </div>\n                </div>\n            </div>\n        </div>\n        <div class=\"row-fluid\">\n            <div class=\"span5\">\n                <div class=\"panel panel-default\" id=\"akun\">\n                    <div class=\"panel-heading\">\n                        <strong>Akun Login</strong>\n                        <div class=\"btn-group pull-right\" style=\"margin-top:-4px;\">\n                            ";
     // line 125
     echo anchor("admin/pengajar/edit_username/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Username", array("class" => "iframe-2 btn btn-small btn-primary", "title" => "Edit Username pengajar"));
     echo "\n                            ";
     // line 126
     echo anchor("admin/pengajar/edit_password/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Password", array("class" => "iframe-3 btn btn-small btn-primary", "title" => "Edit Password pengajar"));
     echo "\n                        </div>\n                    </div>\n                    <div class=\"panel-body\">\n                        <table class=\"table\">\n                            <tbody>\n                                <tr>\n                                    <th width=\"30%\" bgcolor=\"#FBFBFB\">Username</th>\n                                    <td>\n                                        ";
     // line 135
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar_login"]) ? $context["pengajar_login"] : null, "username"), "html", null, true);
     echo "\n                                    </td>\n                                </tr>\n                                <tr>\n                                    <th bgcolor=\"#FBFBFB\">Password</th>\n                                    <td>\n                                        *********\n                                    </td>\n                                </tr>\n                            </tbody>\n                        </table>\n                    </div>\n                </div>\n            </div>\n        </div>\n\n    </div>\n</div>\n";
 }