Ejemplo n.º 1
0
 public function editform($id)
 {
     if (Auth::check()) {
         $datas = Guru::where("guru.id", "=", $id)->first();
         return \View::make('Addons.Guru.edit')->with("datas", $datas);
     } else {
         return \Redirect::to('login');
     }
 }
Ejemplo n.º 2
0
 public function kelasaddform()
 {
     if (Auth::check()) {
         $students = Siswa::all();
         $kelas = Kelas::all();
         $thnajar = TahunAjar::all();
         $guru = Guru::where("jabatan", "=", "Wali Kelas")->get();
         return \View::make('Addons.Siswa.kelasaddform')->with('students', $students)->with('kelas', $kelas)->with('thnajar', $thnajar)->with('guru', $guru);
     } else {
         return \Redirect::to('login');
     }
 }