public function filter() { $filtertarifs = Input::get('kdlab'); //Untuk Searing berdasarkan nama laboratorium $lab = Lab::groupBy('NmLab')->get(); $labcari = Lab::where('KdLab', '=', $filtertarifs)->get(); $tarifs = Tarif::where('KdLab', '=', $filtertarifs)->paginate(5); return View::make('tarif.filtertarif')->with('filtertarifs', $filtertarifs)->with('lab', $lab)->with('labcari', $labcari)->with('tarifs', $tarifs); }
public function jadwal() { $jadwals = Jadwal::where('jadwal_status', '=', 1)->get(); $labs = Lab::where('lab_status', '=', 1)->get(); $ruangs = Ruang::where('ruang_status', '=', 1)->get(); $praktikums = Praktikum::all(); return View::make('dashboard.kordas.DataMaster.jadwal')->with('jadwals', $jadwals)->with('labs', $labs)->with('ruangs', $ruangs)->with('praktikums', $praktikums); }