/**
  * Halaman pengaturan semester.
  */
 public function index()
 {
     $pass['semester'] = Semester::get_active_semester();
     if ($pass['semester']->semester == 2) {
         $tan = explode(" / ", $pass['semester']->tahun_ajaran);
         if (is_numeric($tan[0]) && is_numeric($tan[1])) {
             $tan[0]++;
             $tan[1]++;
             $pass['tahun_ajaran_next'] = implode(" / ", $tan);
         } else {
             $pass['tahun_ajaran_next'] = $pass['semester']->tahun_ajaran;
         }
     } else {
         $pass['tahun_ajaran_next'] = $pass['semester']->tahun_ajaran;
     }
     $pass['latest_check'] = $pass['semester']->id < Semester::orderBy('id', 'DESC')->first()->id;
     return view('semester.panel', $pass);
 }