示例#1
0
 public function nilaiHarianTotal($hari)
 {
     $total = 0;
     foreach (JenisNilai::all() as $j) {
         $total += $this->getNilai($j->id, $hari) * $j->weight / 100;
     }
     return $total;
 }
 public function getDelete($id)
 {
     return response()->json(['status' => JenisNilai::remove($id)]);
 }