Esempio n. 1
0
 public function getIndex()
 {
     $this->data['num'] = 1;
     $this->data['user'] = auth()->user();
     $this->data['activeParticipant'] = $this->data['user']->getActiveParticipation();
     $this->data['groupNilai'] = GroupNilai::with('jenis')->get();
     return $this->render('guru.nilai.isi', $this->data);
 }
Esempio n. 2
0
 public function getIndex()
 {
     if (\Request::ajax()) {
         $data = ['group' => GroupNilai::all(), 'gelombang' => Gelombang::getActive()];
         return $this->render('backend.pages.dashboard', $data);
     }
     return view('frontend.home');
 }
Esempio n. 3
0
 public function getReload()
 {
     $gel = Gelombang::getActive();
     $this->setTitle('Pengolahan Nilai', 'Pre-Test & Post-Test');
     $data = ['gelombang' => $gel, 'groupNilai' => GroupNilai::all(), 'peserta' => Participation::whereHas('kelas', function ($query) use($gel) {
         $query->where('gelombang_id', $gel->id);
     })->get()];
     return $this->render('backend.pages.olahdata.prepost.prepost', $data);
 }
Esempio n. 4
0
 public function getIndex()
 {
     if (\Request::ajax()) {
         $data = ['group' => GroupNilai::all(), 'gelombang' => Gelombang::getActive()];
         $data['smiley'] = $data['gelombang']->getSmileyFace();
         $data['fasilitas'] = $data['gelombang']->getFasilitas();
         if (auth()->user()->role->label == 'guru') {
             return $this->render('backend.pages.profile', $data);
         }
         return $this->render('backend.pages.dashboard', $data);
     }
     return view('frontend.home');
 }
Esempio n. 5
0
 public function getPerHari($hari)
 {
     $gelombang = Gelombang::getActive();
     $gelTitle = $gelombang ? ' - ' . $gelombang->label : '';
     $this->setTitle('Pengolahan Nilai', 'Nilai Harian' . $gelTitle);
     $data = ['gelombang' => $gelombang, 'hari' => $hari, 'groupNilai' => GroupNilai::all(), 'peserta' => Participation::whereHas('kelas', function ($query) use($gelombang) {
         $query->where('gelombang_id', $gelombang->id);
     })->get()];
     if ($hari != -1) {
         return $this->render('backend.pages.olahdata.harian.perhari', $data);
     }
     return $this->render('backend.pages.olahdata.harian.total', $data);
 }
 public function getDelete($id)
 {
     return response()->json(['status' => GroupNilai::remove($id)]);
 }