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'); } }
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'); } }