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";
 }
 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<h4>Detail Jawaban</h4>\n\n<table class=\"table table-condensed table-striped\">\n    <thead>\n        <tr>\n            <th>Tgl Mengerjakan</th>\n            <th>Tgl Selesai</th>\n            <th>Lama Pengerjaan</th>\n        </tr>\n    </thead>\n    <tbody>\n        <tr>\n            <td>";
     // line 16
     echo twig_escape_filter($this->env, tgl_jam_indo($this->getAttribute(isset($context["history"]) ? $context["history"] : null, "mulai")), "html", null, true);
     echo "</td>\n            <td>";
     // line 17
     echo twig_escape_filter($this->env, tgl_jam_indo($this->getAttribute(isset($context["history"]) ? $context["history"] : null, "tgl_submit")), "html", null, true);
     echo "</td>\n            <td>";
     // line 18
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["history"]) ? $context["history"] : null, "total_waktu"), "html", null, true);
     echo "</td>\n        </tr>\n    </tbody>\n</table>\n<br>\n\n<table class=\"table table-condensed table-striped\">\n    <thead>\n        <tr>\n            <th>Jml soal</th>\n            <th>Jml benar</th>\n            <th>Jml salah</th>\n            <th>Nilai</th>\n        </tr>\n    </thead>\n    <tbody>\n        <tr>\n            <td>";
     // line 35
     echo twig_escape_filter($this->env, count($this->getAttribute(isset($context["history"]) ? $context["history"] : null, "pertanyaan")), "html", null, true);
     echo "</td>\n            <td>";
     // line 36
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["history"]) ? $context["history"] : null, "jml_benar"), "html", null, true);
     echo "</td>\n            <td>";
     // line 37
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["history"]) ? $context["history"] : null, "jml_salah"), "html", null, true);
     echo "</td>\n            <td><b>";
     // line 38
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["history"]) ? $context["history"] : null, "nilai"), "html", null, true);
     echo "</b></td>\n        </tr>\n    </tbody>\n</table>\n<br>\n\n<table class=\"table table-condensed\">\n    <thead>\n        <tr>\n            <th colspan=\"2\">List Jawaban</th>\n        </tr>\n    </thead>\n    <tbody>\n        ";
     // line 51
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["history"]) ? $context["history"] : null, "pertanyaan"));
     foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
         // line 52
         echo "        <tr id=\"pertanyaan-";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true);
         echo "\">\n            <td style=\"width:30px;\">\n                <b>";
         // line 54
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "urutan"), "html", null, true);
         echo ".</b>\n                <br>\n                ";
         // line 56
         if (get_jawaban($this->getAttribute(isset($context["history"]) ? $context["history"] : null, "jawaban"), $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id")) == get_kunci_pilihan($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pilihan"))) {
             // line 57
             echo "                <span class=\"text-error\"><i class=\"icon icon-ok\"></i></span>\n                ";
         } else {
             // line 59
             echo "                <span class=\"text-error\"><i class=\"icon icon-remove\"></i></span>\n                ";
         }
         // line 61
         echo "            </td>\n            <td>\n                <div class=\"pertanyaan\">\n                    ";
         // line 64
         echo html_entity_decode($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pertanyaan"));
         echo "\n                </div>\n\n                <div id=\"pilihan-";
         // line 67
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true);
         echo "\">\n                    <table class=\"table table-condensed table-striped\">\n                        <tbody>\n                            ";
         // line 70
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pilihan"));
         foreach ($context['_seq'] as $context["_key"] => $context["pil"]) {
             // line 71
             echo "                            <tr>\n                                <td style=\"width:15px;\"><b>";
             // line 72
             echo twig_escape_filter($this->env, get_abjad($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "urutan")), "html", null, true);
             echo "</b></td>\n                                <td>\n                                    ";
             // line 74
             echo html_entity_decode($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "konten"));
             echo "\n\n                                    <ul class=\"unstyled inline\" style=\"margin-bottom: 0px;margin-left: -5px;\">\n                                        ";
             // line 77
             if ($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "kunci") == 1) {
                 // line 78
                 echo "                                            <li><small class=\"text-warning\"><i class=\"icon icon-star\"></i> Kunci Jawaban</small></li>\n                                        ";
             }
             // line 80
             echo "                                        ";
             if (is_pilih($this->getAttribute(isset($context["history"]) ? $context["history"] : null, "jawaban"), $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "id")) == true) {
                 // line 81
                 echo "                                            <li><small class=\"text-success\"><i class=\"icon-hand-up\"></i> Jawaban Siswa</small></li>\n                                        ";
             }
             // line 83
             echo "                                    </ul>\n                                </td>\n                            </tr>\n                            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pil'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 87
         echo "                        </tbody>\n                    </table>\n                </div>\n\n            </td>\n        </tr>\n\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 95
     echo "    </tbody>\n</table>\n\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>\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 55
     echo "<div id=\"wrap\">\n    <div class=\"container\">\n        <div class=\"row-fluid\">\n            <div class=\"span9\">\n                <h1 class=\"title\">";
     // line 59
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "judul"), "html", null, true);
     echo "</h1>\n            </div>\n            <div class=\"span3\">\n                <ul class=\"unstyled inline pull-right user-info\">\n                    <li><b>";
     // line 63
     echo twig_escape_filter($this->env, nama_panggilan(get_sess_data("user", "nama")), "html", null, true);
     echo "</b></li>\n                    <li><img src=\"";
     // line 64
     echo twig_escape_filter($this->env, get_url_image_pengajar(get_sess_data("user", "foto"), "medium", get_sess_data("user", "jenis_kelamin")), "html", null, true);
     echo "\" class=\"nav-avatar img-polaroid img-circle\" /></li>\n                </ul>\n            </div>\n        </div>\n        <hr class=\"hr-top\">\n        <div class=\"wrap-content\">\n            <div class=\"content\">\n                <div class=\"row-fluid\">\n                    ";
     // line 72
     if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") != 1) {
         // line 73
         echo "                    <div class=\"span8\">\n                        <b>Informasi : </b><br>\n                        ";
         // line 75
         echo $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "info");
         echo "\n                    </div>\n                    <div class=\"span4\">\n                        <div class=\"box-clock\" data-spy=\"affix\" data-offset-top=\"60\" data-offset-bottom=\"200\">\n                            <b>Siswa waktu : </b><br>\n                            <div id=\"clock\"></div>\n                        </div>\n                    </div>\n                    ";
     } else {
         // line 84
         echo "                    <div class=\"span6\">\n                        <b>Informasi : </b><br>\n                        ";
         // line 86
         echo $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "info");
         echo "\n                        <br>\n                        <small>\n                        <b>Ekstensi file :</b><br>\n                        doc, zip, rar, txt, docx, xls, xlsx, pdf, tar, gz, jpg, jpeg, JPG, JPEG, png, ppt, pptx\n                        </small>\n                    </div>\n                    <div class=\"span6\">\n                        <p><b>Upload file tugas anda : </b></p>\n                        <div class=\"well well-sm\">\n                            ";
         // line 96
         echo form_open_multipart("tugas/submit_upload/" . $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id") . "/" . $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "unix_id"));
         echo "\n                            <input type=\"file\" name=\"userfile\">\n                            <hr class=\"hr1\">\n                            <div class=\"row-fluid\">\n                                <div class=\"span3\">\n                                    <button type=\"submit\" class=\"btn btn-primary\">Upload</button>\n                                </div>\n                                <div class=\"span9\">\n                                    ";
         // line 104
         echo get_flashdata("upload");
         echo "\n                                </div>\n                            </div>\n                            ";
         // line 107
         echo form_close();
         echo "\n                        </div>\n                    </div>\n                    ";
     }
     // line 111
     echo "                </div>\n\n                ";
     // line 113
     if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") == 3) {
         // line 114
         echo "                    <table class=\"table\">\n                        <thead>\n                            <tr>\n                                <th width=\"5%\">No</th>\n                                <th>Pertanyaan ";
         // line 118
         echo $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") == 3 ? " dan Pilihan" : "";
         echo "</th>\n                            </tr>\n                        </thead>\n                        <tbody>\n                            ";
         // line 122
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "pertanyaan"));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
             // line 123
             echo "                            <tr id=\"pertanyaan-";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true);
             echo "\">\n                                <td><b>";
             // line 124
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["loop"]) ? $context["loop"] : null, "index"), "html", null, true);
             echo ".</b></td>\n                                <td>\n                                    <div class=\"pertanyaan\">\n                                        ";
             // line 127
             echo html_entity_decode($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pertanyaan"));
             echo "\n                                    </div>\n\n                                    <div id=\"pilihan-";
             // line 130
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true);
             echo "\">\n                                        <table class=\"table table-condensed table-striped\">\n                                            <tbody>\n                                                ";
             // line 133
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pilihan"));
             foreach ($context['_seq'] as $context["_key"] => $context["pil"]) {
                 // line 134
                 echo "                                                <tr>\n                                                    <td width=\"5%\"><label class=\"label-radio\"><input ";
                 // line 135
                 echo is_pilih($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "jawaban"), $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "id")) ? "checked" : "";
                 echo " type=\"radio\" name=\"pilihan-";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true);
                 echo "\" value=\"";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "urutan"), "html", null, true);
                 echo "\" onclick=\"update_ganda(";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id"), "html", null, true);
                 echo ", ";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true);
                 echo ", ";
                 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "id"), "html", null, true);
                 echo ")\" class=\"radio\"> ";
                 echo twig_escape_filter($this->env, get_abjad($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "urutan")), "html", null, true);
                 echo "</label></td>\n                                                    <td>\n                                                        ";
                 // line 137
                 echo html_entity_decode($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "konten"));
                 echo "\n                                                    </td>\n                                                </tr>\n                                                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pil'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 141
             echo "                                            </tbody>\n                                        </table>\n                                    </div>\n\n                                </td>\n                            </tr>\n\n                            ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 149
         echo "                        </tbody>\n                    </table>\n\n                    <div class=\"well well-sm\">\n                        <a class=\"btn btn-large btn-primary pull-right\" href=\"";
         // line 153
         echo twig_escape_filter($this->env, site_url("tugas/finish/" . $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id") . "/" . $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "unix_id")), "html", null, true);
         echo "\" onclick=\"return confirm('Anda yakin ingin mengahiri pengerjaan tugas ini?')\">Selesai</a>\n                        <p class=\"p-info\">Mohon periksa kembali jawaban anda sebelum menekan tombol <b>selesai</b>.</p>\n                        <br>\n                    </div>\n\n                ";
     }
     // line 159
     echo "\n\n                ";
     // line 161
     if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") == 2) {
         // line 162
         echo "                    ";
         echo form_open("tugas/submit_essay/" . $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id") . "/" . $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "unix_id"));
         echo "\n                    <input type=\"hidden\" id=\"str_id\" value=\"";
         // line 163
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "str_id"), "html", null, true);
         echo "\">\n                    <table class=\"table\">\n                        <thead>\n                            <tr>\n                                <th width=\"5%\">No</th>\n                                <th>Pertanyaan ";
         // line 168
         echo $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") == 3 ? " dan Pilihan" : "";
         echo "</th>\n                            </tr>\n                        </thead>\n                        <tbody>\n                            ";
         // line 172
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "pertanyaan"));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
             // line 173
             echo "                            <tr id=\"pertanyaan-";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true);
             echo "\">\n                                <td><b>";
             // line 174
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["loop"]) ? $context["loop"] : null, "index"), "html", null, true);
             echo ".</b></td>\n                                <td>\n                                    <div class=\"pertanyaan\">\n                                        ";
             // line 177
             echo html_entity_decode($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pertanyaan"));
             echo "\n                                    </div>\n\n                                    <textarea name=\"jawaban[";
             // line 180
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true);
             echo "]\" id=\"jawaban-";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true);
             echo "\" style=\"width:100%; height:300px;\">";
             echo get_jawaban($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "jawaban"), $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"));
             echo "</textarea>\n\n                                </td>\n                            </tr>\n\n                            ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 186
         echo "                        </tbody>\n                    </table>\n\n                    <div class=\"well well-sm\">\n                        <button type=\"submit\" class=\"btn btn-large btn-primary pull-right\" onclick=\"return confirm('Anda yakin ingin mengahiri pengerjaan tugas ini?')\">Selesai</button>\n                        <p class=\"p-info\">Mohon periksa kembali jawaban anda sebelum menekan tombol <b>selesai</b>.</p>\n                        <br>\n                    </div>\n                    ";
         // line 194
         echo form_close();
         echo "\n\n                ";
     }
     // line 197
     echo "\n            </div>\n        </div>\n    </div>\n</div>\n";
     // line 202
     if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "type_id") != 1) {
         // line 203
         echo "<input type=\"hidden\" id=\"tugas_id\" value=\"";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id"), "html", null, true);
         echo "\">\n<input type=\"hidden\" id=\"final_date\" value=\"";
         // line 204
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "selesai"), "html", null, true);
         echo "\">\n<input type=\"hidden\" id=\"finish_url\" value=\"";
         // line 205
         echo twig_escape_filter($this->env, site_url("tugas/finish/" . $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "tugas"), "id") . "/" . $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "unix_id")), "html", null, true);
         echo "\">\n";
     }
 }
 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 10
     echo anchor("tugas", "Tugas");
     echo " / Manajemen Soal Tugas</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 13
     echo get_flashdata("tugas");
     echo "\n\n        <div class=\"bs-callout bs-callout-info\">\n            <div class=\"btn-group pull-right\" style=\"margin-top:-5px;\">\n                ";
     // line 17
     echo anchor("tugas/edit/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon icon-edit\"></i> Edit Tugas", array("class" => "btn btn-default"));
     echo "\n                ";
     // line 18
     if ($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "aktif") == 0) {
         // line 19
         echo "                    ";
         echo anchor("tugas/terbitkan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-ok\"></i> Terbitkan", array("class" => "btn btn-success btn-small"));
         echo "\n                ";
     } elseif ($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "aktif") == 1) {
         // line 21
         echo "                    ";
         echo anchor("tugas/tutup/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . enurl_redirect(current_url()), "<i class=\"icon-minus\"></i> Tutup", array("class" => "btn btn-danger btn-small"));
         echo "\n                ";
     }
     // line 23
     echo "            </div>\n            <b><a class=\"as-link\" data-toggle=\"collapse\" data-target=\"#detail-tugas\"><i class=\"icon-info-sign\" style=\"line-height: 0px;\"></i> ";
     // line 24
     echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "judul")), "html", null, true);
     echo "</a></b>\n\n            <div id=\"detail-tugas\" class=\"collapse\" style=\"margin-top: 5px;\">\n                <table class=\"table\">\n                    <tr>\n                        <th style=\"border-top: none;\" width=\"15%\">Tipe</th>\n                        <td style=\"border-top: none;\">";
     // line 30
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "type_label"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th>Judul</th>\n                        <td>";
     // line 34
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "judul"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th>Matapelajaran</th>\n                        <td>";
     // line 38
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "mapel"), "nama"), "html", null, true);
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th>Kelas</th>\n                        <td>\n                            <ul class=\"unstyled inline\" style=\"margin-left: -5px;margin-bottom: 0px;\">\n                                ";
     // line 44
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "tugas_kelas"));
     foreach ($context['_seq'] as $context["_key"] => $context["k"]) {
         // line 45
         echo "                                <li>";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["k"]) ? $context["k"] : null, "nama"), "html", null, true);
         echo "</li>\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 47
     echo "                            </ul>\n                        </td>\n                    </tr>\n                    <tr>\n                        <th>Info</th>\n                        <td>";
     // line 52
     echo $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "info");
     echo "</td>\n                    </tr>\n                    <tr>\n                        <th>Durasi</th>\n                        <td>";
     // line 56
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "durasi"), "html", null, true);
     echo " Menit</td>\n                    </tr>\n                </table>\n            </div>\n\n        </div>\n        <br>\n\n        <div class=\"btn-group\">\n            <a href=\"";
     // line 65
     echo twig_escape_filter($this->env, site_url("tugas/tambah_soal/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id")), "html", null, true);
     echo "\" class=\"btn btn-primary iframe-pertanyaan\" title=\"Tambah Pertanyaan\">Tambah Pertanyaan</a>\n        </div>\n        <br><br>\n\n        <table class=\"table\">\n            <thead>\n                <tr>\n                    <th width=\"5%\">No</th>\n                    <th>Pertanyaan ";
     // line 73
     echo $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "type_id") == 3 ? " dan Pilihan" : "";
     echo "</th>\n                </tr>\n            </thead>\n            <tbody>\n                ";
     // line 77
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["pertanyaan"]) ? $context["pertanyaan"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
         // line 78
         echo "                <tr id=\"pertanyaan-";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true);
         echo "\">\n                    <td><b>";
         // line 79
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "urutan"), "html", null, true);
         echo ".</b></td>\n                    <td>\n                        <div class=\"pertanyaan\">\n                            <div class=\"btn-group pull-right\" style=\"margin-left:10px;\">\n                                ";
         // line 83
         if ($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "type_id") == 3) {
             // line 84
             echo "                                <a href=\"";
             echo twig_escape_filter($this->env, site_url("tugas/tambah_pilihan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id")), "html", null, true);
             echo "\" class=\"btn btn-small btn-default iframe-pilihan\" data-toggle=\"tooltip\" title=\"Tambah Pilihan\"><i class=\"icon-tasks\"></i></a>\n                                ";
         }
         // line 86
         echo "                                <a href=\"";
         echo twig_escape_filter($this->env, site_url("tugas/edit_soal/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id")), "html", null, true);
         echo "\" class=\"btn btn-small btn-default iframe-pertanyaan\" data-toggle=\"tooltip\" title=\"Edit Pertanyaan\"><i class=\"icon-edit\"></i></a>\n                                <a onclick=\"return confirm('Anda yakin ingin menghapus?')\" href=\"";
         // line 87
         echo twig_escape_filter($this->env, site_url("tugas/hapus_soal/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id") . "/" . enurl_redirect(current_url())), "html", null, true);
         echo "\" class=\"btn btn-small btn-default\" data-toggle=\"tooltip\" title=\"Hapus Pertanyaan\"><i class=\"icon-trash\"></i></a>\n                            </div>\n\n                            ";
         // line 90
         echo html_entity_decode($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pertanyaan"));
         echo "\n                        </div>\n\n                        ";
         // line 93
         if ($this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "type_id") == 3) {
             // line 94
             echo "                        <div id=\"pilihan-";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true);
             echo "\">\n                            <table class=\"table table-condensed table-striped\">\n                                <tbody>\n                                    ";
             // line 97
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pilihan"));
             foreach ($context['_seq'] as $context["_key"] => $context["pil"]) {
                 // line 98
                 echo "                                    <tr ";
                 echo $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "kunci") == 1 ? "class=\"success\"" : "";
                 echo ">\n                                        <td width=\"3%\"><b>(";
                 // line 99
                 echo twig_escape_filter($this->env, get_abjad($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "urutan")), "html", null, true);
                 echo ")</b></td>\n                                        <td>\n                                            <div class=\"btn-group pull-right\" style=\"margin-left:10px;\">\n                                                ";
                 // line 102
                 if ($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "kunci") == 0) {
                     // line 103
                     echo "                                                    <a href=\"";
                     echo twig_escape_filter($this->env, site_url("tugas/kunci_pilihan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id") . "/" . $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "id") . "/" . enurl_redirect(current_url())), "html", null, true);
                     echo "\" class=\"btn btn-small btn-default\" data-toggle=\"tooltip\" title=\"Jadikan Kunci\"><i class=\"icon-ok\"></i></a>\n                                                ";
                 }
                 // line 105
                 echo "                                                <a href=\"";
                 echo twig_escape_filter($this->env, site_url("tugas/edit_pilihan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id") . "/" . $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "id")), "html", null, true);
                 echo "\" class=\"btn btn-small btn-default iframe-pilihan\" data-toggle=\"tooltip\" title=\"Edit Pilihan\"><i class=\"icon-edit\"></i></a>\n                                                <a onclick=\"return confirm('Anda yakin ingin menghapus?')\" href=\"";
                 // line 106
                 echo twig_escape_filter($this->env, site_url("tugas/hapus_pilihan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id") . "/" . $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "id") . "/" . enurl_redirect(current_url())), "html", null, true);
                 echo "\" class=\"btn btn-small btn-default\" data-toggle=\"tooltip\" title=\"Hapus Pilihan\"><i class=\"icon-trash\"></i></a>\n                                            </div>\n                                            ";
                 // line 108
                 echo html_entity_decode($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "konten"));
                 echo "\n\n                                            ";
                 // line 110
                 if ($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "kunci") == 1) {
                     // line 111
                     echo "                                            <b class=\"text-warning\"><i class=\"icon-star\"></i> Kunci Jawaban</b>\n                                            ";
                 }
                 // line 113
                 echo "                                        </td>\n                                    </tr>\n                                    ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pil'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 116
             echo "                                </tbody>\n                            </table>\n                        </div>\n                        ";
         }
         // line 120
         echo "\n                    </td>\n                </tr>\n\n                ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 125
     echo "            </tbody>\n        </table>\n        <br>\n        ";
     // line 128
     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 "<h4>Copy Pertanyaan</h4>\n<hr style=\"margin-top: 5px; margin-bottom: 10px;\">\n";
     // line 6
     echo get_flashdata("copy");
     echo "\n\n<table class=\"table table-striped datatable\">\n    <thead>\n        <tr>\n            <th width=\"8%\">ID</th>\n            <th>Pertanyaan</th>\n            <th width=\"10%\"></th>\n        </tr>\n    </thead>\n    <tbody>\n        ";
     // line 17
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["pertanyaan"]) ? $context["pertanyaan"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
         // line 18
         echo "        <tr>\n            <td><b>";
         // line 19
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id"), "html", null, true);
         echo "</b></td>\n            <td>\n                ";
         // line 21
         echo html_entity_decode($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pertanyaan"));
         echo "\n\n                ";
         // line 23
         if (!twig_test_empty($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pilihan"))) {
             // line 24
             echo "                <table class=\"table table-condensed table-striped\">\n                    <tbody>\n                        ";
             // line 26
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "pilihan"));
             foreach ($context['_seq'] as $context["_key"] => $context["pil"]) {
                 // line 27
                 echo "                        <tr ";
                 echo $this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "kunci") == 1 ? "class=\"success\"" : "";
                 echo ">\n                            <td width=\"3%\"><b>(";
                 // line 28
                 echo twig_escape_filter($this->env, get_abjad($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "urutan")), "html", null, true);
                 echo ")</b></td>\n                            <td>\n                                ";
                 // line 30
                 echo html_entity_decode($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "konten"));
                 echo "\n\n                                ";
                 // line 32
                 if ($this->getAttribute(isset($context["pil"]) ? $context["pil"] : null, "kunci") == 1) {
                     // line 33
                     echo "                                <b class=\"text-warning\"><i class=\"icon-star\"></i> Kunci Jawaban</b>\n                                ";
                 }
                 // line 35
                 echo "                            </td>\n                        </tr>\n                        ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pil'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 38
             echo "                    </tbody>\n                </table>\n                ";
         }
         // line 41
         echo "\n                <div style=\"padding: 5px 5px; border:1px dashed #DDD; background-color: white;\">\n                    <ul class=\"unstyled inline\" style=\"margin-bottom: 3px;margin-top: 0px;\">\n                        <li>Dibuat oleh : <a href=\"";
         // line 44
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "info_pembuat"), "link_profil"), "html", null, true);
         echo "\" id=\"profil-";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "info_pembuat"), "id"), "html", null, true);
         echo "\" target=\"_tab\">";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "info_pembuat"), "nama"), "html", null, true);
         echo "</a></li>\n                        <li>Pada : ";
         // line 45
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["p"]) ? $context["p"] : null, "info_tugas"), "judul"), "html", null, true);
         echo "</li>\n                    </ul>\n                </div>\n            </td>\n            <td>\n                <a class=\"btn btn-sm btn-primary\" href=\"";
         // line 50
         echo twig_escape_filter($this->env, site_url("tugas/copy_soal/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/?copy=" . $this->getAttribute(isset($context["p"]) ? $context["p"] : null, "id")), "html", null, true);
         echo "\">Copy</a>\n            </td>\n        </tr>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 54
     echo "    </tbody>\n</table>\n";
 }