示例#1
0
 public function dashboard()
 {
     $prospeks = Prospek::all();
     $projects = Project::all();
     $pelatihans = Pelatihan::all();
     $rpds = Rpd::mine()->where('status', 'BACK TO INITIATOR')->orWhere('status', 'SUBMIT')->orderBy('kode')->paginate(10);
     $users = Pegawai::all();
     $lpds = Lpd::mine()->where('status', 'BACK TO INITIATOR')->orWhere('status', 'SUBMIT')->orWhere('status', 'TAKE PAYMENT')->where('status', 'BACK TO INITIATOR')->orWhere('status', 'PROCESS PAYMENT')->orderBy('kode')->paginate(10);
     return view('dashboard', compact('prospeks', 'projects', 'pelatihans', 'rpds', 'users', 'lpds'));
 }
示例#2
0
 public function prospek()
 {
     $prospek = Prospek::all();
     return $prospek->toJson();
 }