Ejemplo n.º 1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $guru = Guru::find($id);
     $mapel = Mapel::all();
     $jurusan = Jurusan::all();
     return View('admin.guru.edit')->with('guru', $guru)->with('mapel', $mapel)->with('jurusan', $jurusan);
 }
Ejemplo n.º 2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $jurusan = Jurusan::all();
     $soal = Soal::find($id);
     $mapel = Mapel::all();
     return View('admin.soal.edit')->with('jurusan', $jurusan)->with('mapel', $mapel)->with('soal', $soal);
 }
Ejemplo n.º 3
0
 public function index()
 {
     $tgl = Date('Y-m-d');
     $jam = Date('H:i:s');
     $pengawas = $this->getPengawas();
     $mengawasi = DB::table('view_detail_jadwal')->where('pengawas', $pengawas->nip)->where('tgl_ujian', $tgl)->where('jam', '<=', $jam)->where('selesai', '>=', $jam)->first();
     if (count($mengawasi) > 0) {
         Session::put('id', $mengawasi->id);
         $ruang = Ruang::find($mengawasi->id_ruang);
         $mapel = Mapel::find($mengawasi->kd_mapel);
         return View('pengawas.index')->with('pengawas', $pengawas)->with('mengawasi', $mengawasi)->with('ruang', $ruang)->with('mapel', $mapel);
     } else {
         if (Session::has('id')) {
             $mengawasi = viewDetailJadwal::find(Session::get('id'));
             $ruang = Ruang::find($mengawasi->id_ruang);
             $mapel = Mapel::find($mengawasi->kd_mapel);
             return View('pengawas.index')->with('pengawas', $pengawas)->with('mengawasi', $mengawasi)->with('ruang', $ruang)->with('mapel', $mapel);
         } else {
             return View('pengawas.sudah_selesai');
         }
     }
 }
Ejemplo n.º 4
0
 public function nilai()
 {
     $kelas = Kelas::all();
     $mapel = Mapel::all();
     return View('admin.laporan.nilai')->with('kelas', $kelas)->with('mapel', $mapel);
 }
Ejemplo n.º 5
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $jadwal = Jadwal::find($id);
     $mapel = Mapel::all();
     return View('admin.jadwal.edit')->with('jadwal', $jadwal)->with('mapel', $mapel);
 }
Ejemplo n.º 6
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     $mapel = Mapel::find($id);
     $mapel->delete();
     Session::flash('pesan', "Data berhasil dihapus");
     return Redirect::to('admin/mapel');
 }
Ejemplo n.º 7
0
 public function show_all_mapel()
 {
     $mapels = Mapel::paginate(10);
     return view('content\\scadmin\\list_mapel')->with('mapels', $mapels);
 }