Exemplo n.º 1
0
 public function edit($id)
 {
     if (Auth::check()) {
         $data = Bobotnilai::join("tahunajar", "bobotnilai.id_ta", "=", "tahunajar.id")->where("bobotnilai.id", "=", $id)->select('bobotnilai.id', 'bobotnilai.name', 'tahunajar.nama')->first();
         $thnajar = Tahunajar::all();
         return \View::make('Addons.BobotNilai.edit')->with("data", $data)->with('thnajar', $thnajar);
     } else {
         return \Redirect::to('login');
     }
     //
 }
Exemplo n.º 2
0
 public function add()
 {
     if (Auth::check()) {
         $thnajar = Tahunajar::all();
         $siswa = Siswa::all();
         $pelanggaran = Pelanggaran::all();
         return \View::make('Addons.Pelanggaran.pelanggaranadd')->with("thnajar", $thnajar)->with("siswa", $siswa)->with("pelanggaran", $pelanggaran);
     } else {
         return \Redirect::to('login');
     }
 }
Exemplo n.º 3
0
 public function addsiswakelasform($id, $tid)
 {
     if (Auth::check()) {
         $students = Siswa::all();
         $kelas = Kelas::all();
         $thnajar = TahunAjar::all();
         return \View::make('Addons.Siswa.addsiswakelasform')->with('kelasid', $id)->with('tid', $tid)->with('students', $students)->with('kelas', $kelas)->with('thnajar', $thnajar);
     } else {
         return \Redirect::to('login');
     }
 }