Ejemplo n.º 1
0
 public function index()
 {
     //Session::forget('access_token');
     $id = Session::get('user');
     $data = array('title' => 'Collaborative Learning', 'mahasiswa' => DB::table('mahasiswa')->where('nim', $id)->first(), 'dosen' => DB::table('dosen')->where('nip', $id)->first(), 'kelas' => ['' => '-- Pilih kelas --'] + Perkuliahan::where('nip', '=', $id)->lists('kodekelas', 'kodekelas'));
     return view('frontend.layouts.storage-master')->with($data);
 }
 public function index()
 {
     $data = array('title' => "dashboard", 'dosen' => count(Dosen::where('status', '=', 1)->get()), 'mahasiswa' => count(Mahasiswa::where('status', '=', 1)->get()), 'matakuliah' => count(Matakuliah::where('status', '=', 1)->get()), 'perkuliahan' => count(Perkuliahan::where('status', '=', 1)->get()), 'userMhs' => User::with('mhs')->where('role', '=', 'mahasiswa')->get(), 'userDosen' => User::with('dosen')->where('role', '=', 'dosen')->get());
     return view('backend.pages.backend-home')->with($data);
 }