예제 #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $mengajar = Mengajar::find($id);
     $guru = Guru::all();
     $mapel = Mapel::all();
     $setting = Setting::first();
     return View::make('mengajar.edit')->with('mengajar', $mengajar)->with('guru', $guru)->with('mapel', $mapel)->with('setting', $setting);
 }
예제 #2
0
 public function n_ujian()
 {
     $kelas = Kelas::all();
     $tahun = DB::table('rombel')->groupBy('thn_ajaran')->get();
     $mapel = Mapel::all();
     return View::make('laporan.ujian')->with('kelas', $kelas)->with('tahun', $tahun)->with('mapel', $mapel);
 }
예제 #3
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $kkm = Kkm::find($id);
     $mapel = Mapel::all();
     return View::make('kkm.edit')->with('kkm', $kkm)->with('mapel', $mapel);
 }
예제 #4
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $mapel = Mapel::all();
     return View::make('mapel.index')->with('mapel', $mapel);
 }
예제 #5
0
 public function view()
 {
     if (Request::ajax()) {
         $rombel = Rombel::find(Input::get('rombel'));
         $jadwal = DB::table('jadwal')->where('kd_rombel', '=', $rombel->kd_rombel)->get();
         $mapel = Mapel::all();
         return View::make('hal_siswa.view_jadwal')->with('rombel', $rombel)->with('mapel', $mapel);
     }
 }