public function viewSkripsi()
 {
     $univ = new Universitas($this->registry);
     $jur = new Jurusan($this->registry);
     $user = Session::get('kd_user');
     if (Session::get('role') == 2) {
         $data = $univ->get_univ_by_pic($user);
         $jurusan = $jur->get_jur_by_pic($user);
     } else {
         $data = $univ->get_univ();
         $jurusan = $jur->get_jurusan();
     }
     $myArray = array();
     foreach ($jurusan as $val2) {
         $st = new SuratTugas($this->registry);
         $thn = $st->get_thn_masuk_by_jur($val2->get_kode_jur());
         //var_dump($thn);
         foreach ($thn as $th) {
             $penerima = new Penerima($this->registry);
             $pb = $penerima->get_penerima_by_skripsi($val2->get_kode_jur(), $th);
             $jml = count($pb);
             //echo $jml;
             $un = new Universitas($this->registry);
             $c_univ = $un->get_univ_by_jur($val2->get_kode_jur());
             $penerima_elemen = new PenerimaElemenBeasiswa();
             $byr = $penerima_elemen->get_elemen_dibayar("3", $val2->get_kode_jur(), $th);
             //echo $byr;
             $pros = $penerima_elemen->get_elemen_proses_dibayar("3", $val2->get_kode_jur(), $th);
             //echo $pros;
             $arr = array('jur' => $val2->get_nama() . " " . $c_univ->get_kode(), 'thn' => $th, 'jml' => $jml, 'byr' => $byr, 'pros' => $pros);
             array_push($myArray, $arr);
         }
     }
     //var_dump($myArray);
     foreach ($myArray as $c => $key) {
         $sort_jur[] = $key['jur'];
         $sort_thn[] = $key['thn'];
         $sort_jml[] = $key['jml'];
         $sort_byr[] = $key['byr'];
         $sort_pros[] = $key['pros'];
     }
     if (!empty($myArray)) {
         array_multisort($sort_thn, SORT_DESC, $myArray);
     }
     $this->view->univ = $data;
     $this->view->arr = $myArray;
     $this->view->render('bantuan/biaya_skripsi');
 }