/** * 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); }
/** * 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); }
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'); } } }
public function nilai() { $kelas = Kelas::all(); $mapel = Mapel::all(); return View('admin.laporan.nilai')->with('kelas', $kelas)->with('mapel', $mapel); }
/** * 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); }
/** * 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'); }
public function show_all_mapel() { $mapels = Mapel::paginate(10); return view('content\\scadmin\\list_mapel')->with('mapels', $mapels); }