diff --git a/app/Http/Controllers/.fuse_hidden00000c9a00000002 b/app/Http/Controllers/.fuse_hidden00000c9a00000002 deleted file mode 100644 index b734658a9be61223d06d25cf7cf02a4f25e20991..0000000000000000000000000000000000000000 --- a/app/Http/Controllers/.fuse_hidden00000c9a00000002 +++ /dev/null @@ -1,146 +0,0 @@ -<?php - -namespace App\Http\Controllers; - -use Illuminate\Http\Request; -use App\Http\Controllers\APIBaseController as APIBaseController; -use Illuminate\Support\Facades\Auth; -use App\User; -use App\Pegawai; -use App\PMO; -use App\Admin; -use App\Kinerja; -use App\UnitKerja; -use App\Posisi; -use App\KelompokKompetensi; -use App\RekomendasiPosisi; -use App\RekomendasiTraining; -use App\Training; - -class PagesController extends APIBaseController -{ - public function index() { - if(!$this->authenticate(6)){return redirect('/');} - return view('welcome'); - } - - public function landing() { - if(!$this->authenticate(6)){return redirect('/');} - if(!$this->authenticate(3) and !$this->authenticate(2) and $this->authenticate(1)){return redirect('/pages/profile');} - return view('pages'); - } - - public function pegawai(){ - if(!$this->authenticate(1)){return redirect('/');} - - $id = Auth::user()->id; - - $data_kinerja = Kinerja::where('id_pegawai', $id) - ->orderBy('tahun', 'ASC') - ->orderBy('semester', 'ASC') - ->get(); - $unit_kerja = UnitKerja::all(); - $posisi = Posisi::all(); - $kelompok_kompetensi = KelompokKompetensi::all(); - $rekomendasi_training = RekomendasiTraining::where('id_pegawai', $id)->get(); - $training_list = Training::all(); - $rekomendasi_posisi = RekomendasiPosisi::where('id_pegawai', $id)->get(); - $id_pengubah = Pegawai::where('id_user', $id)->first()->id_pengubah; - if ($id_pengubah === $id) { - $nama_pengubah = "Anda"; - } else { - $nama_pengubah = User::where('id', $id_pengubah)->first()->name; - } - $last_edited = Pegawai::where('id_user', $id)->first()->updated_at; - - return view("profile.index", compact('last_edited', 'nama_pengubah','data_kinerja', 'unit_kerja', 'posisi', 'kelompok_kompetensi', 'rekomendasi_training', 'training_list', 'rekomendasi_posisi')); - } - - public function pegawaiSpecific($id){ - if(!$this->authenticate(2)){return redirect('/');} - - $id_pmo = Auth::user()->id; - - $data_kinerja = Kinerja::where('id_pegawai', $id) - ->orderBy('tahun', 'ASC') - ->orderBy('semester', 'ASC') - ->get(); - $unit_kerja = UnitKerja::all(); - $posisi = Posisi::all(); - $kelompok_kompetensi = KelompokKompetensi::all(); - $rekomendasi_training = RekomendasiTraining::where('id_pegawai', $id)->get(); - $training_list = Training::all(); - $rekomendasi_posisi = RekomendasiPosisi::where('id_pegawai', $id)->get(); - $id_pengubah = Pegawai::where('id_user', $id)->first()->id_pengubah; - if ($id_pengubah === $id_pmo) { - $nama_pengubah = "Anda"; - } else { - $nama_pengubah = User::where('id', $id_pengubah)->first()->name; - } - $last_edited = Pegawai::where('id_user', $id)->first()->updated_at; - - return view("profile.pmo", compact('id', 'last_edited', 'nama_pengubah','data_kinerja', 'unit_kerja', 'posisi', 'kelompok_kompetensi', 'rekomendasi_training', 'training_list', 'rekomendasi_posisi')); - } - - public function pmo() { - if(!$this->authenticate(2)){return redirect('/');} - return view('pages.pmo')->with('page', 'pmo'); - } - - public function admin() { - if(!$this->authenticate(3)){return redirect('/');} - return view('pages.admin')->with('page', 'admin'); - } - - public function addUser() { - if(!$this->authenticate(3)){return redirect('/');} - return view('pages.admin.adduser')->with('page', 'addUser'); - } - - private function authenticate($role){ - if (Auth::check()) { - $session_id = Auth::user()->id; - }else{ - return false; - } - - $auth = NULL; - switch ($role) { - case 1: - $auth = Pegawai::find($session_id); - break; - - case 2: - $auth = PMO::find($session_id); - break; - - case 3: - $auth = Admin::find($session_id); - break; - - case 4: - $auth = PMO::find($session_id); - if (is_null($auth)) { - $auth = Pegawai::find($session_id); - } - break; - - case 5: - $auth = PMO::find($session_id); - if (is_null($auth)) { - $auth = Admin::find($session_id); - } - break; - - case 6: - $auth = User::find($session_id); - break; - } - - if (is_null($auth)) { - return false; - } - - return true; - } -} diff --git a/public/profile/256636605084866041.png b/public/profile/256636605084866041.png deleted file mode 100644 index cfbba33ef9f66f630f9bc9bf71eafae4003a7412..0000000000000000000000000000000000000000 Binary files a/public/profile/256636605084866041.png and /dev/null differ diff --git a/public/profile/649660532340430924.gif b/public/profile/649660532340430924.gif deleted file mode 100644 index 5b12271eb956e5c150fcca3cd6dd7606d1a6f2ec..0000000000000000000000000000000000000000 Binary files a/public/profile/649660532340430924.gif and /dev/null differ diff --git a/public/profile/649660532340430924.jpeg b/public/profile/649660532340430924.jpeg deleted file mode 100644 index 4823a08a45852a48051ae81ca8fdedc8d0f7d89b..0000000000000000000000000000000000000000 Binary files a/public/profile/649660532340430924.jpeg and /dev/null differ diff --git a/public/profile/649660532340430924.jpg b/public/profile/649660532340430924.jpg deleted file mode 100644 index cfbba33ef9f66f630f9bc9bf71eafae4003a7412..0000000000000000000000000000000000000000 Binary files a/public/profile/649660532340430924.jpg and /dev/null differ diff --git a/public/sertifikat/256636605084866041_2.jpeg b/public/sertifikat/256636605084866041_2.jpeg deleted file mode 100644 index 4823a08a45852a48051ae81ca8fdedc8d0f7d89b..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/256636605084866041_2.jpeg and /dev/null differ diff --git a/public/sertifikat/256636605084866041_3.jpeg b/public/sertifikat/256636605084866041_3.jpeg deleted file mode 100644 index 4823a08a45852a48051ae81ca8fdedc8d0f7d89b..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/256636605084866041_3.jpeg and /dev/null differ diff --git a/public/sertifikat/476316332965399593_0.gif b/public/sertifikat/476316332965399593_0.gif deleted file mode 100644 index 5b12271eb956e5c150fcca3cd6dd7606d1a6f2ec..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/476316332965399593_0.gif and /dev/null differ diff --git a/public/sertifikat/486106095028569447_0.gif b/public/sertifikat/486106095028569447_0.gif deleted file mode 100644 index 5b12271eb956e5c150fcca3cd6dd7606d1a6f2ec..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/486106095028569447_0.gif and /dev/null differ diff --git a/public/sertifikat/486106095028569447_1.gif b/public/sertifikat/486106095028569447_1.gif deleted file mode 100644 index 5b12271eb956e5c150fcca3cd6dd7606d1a6f2ec..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/486106095028569447_1.gif and /dev/null differ diff --git a/public/sertifikat/486106095028569447_2.jpeg b/public/sertifikat/486106095028569447_2.jpeg deleted file mode 100644 index 4823a08a45852a48051ae81ca8fdedc8d0f7d89b..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/486106095028569447_2.jpeg and /dev/null differ diff --git a/public/sertifikat/649660532340430924_0.gif b/public/sertifikat/649660532340430924_0.gif deleted file mode 100644 index 5b12271eb956e5c150fcca3cd6dd7606d1a6f2ec..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/649660532340430924_0.gif and /dev/null differ diff --git a/public/sertifikat/649660532340430924_0.jpeg b/public/sertifikat/649660532340430924_0.jpeg deleted file mode 100644 index 4823a08a45852a48051ae81ca8fdedc8d0f7d89b..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/649660532340430924_0.jpeg and /dev/null differ diff --git a/public/sertifikat/649660532340430924_1.gif b/public/sertifikat/649660532340430924_1.gif deleted file mode 100644 index 5b12271eb956e5c150fcca3cd6dd7606d1a6f2ec..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/649660532340430924_1.gif and /dev/null differ diff --git a/public/sertifikat/649660532340430924_1.jpeg b/public/sertifikat/649660532340430924_1.jpeg deleted file mode 100644 index 4823a08a45852a48051ae81ca8fdedc8d0f7d89b..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/649660532340430924_1.jpeg and /dev/null differ diff --git a/public/sertifikat/649660532340430924_2.gif b/public/sertifikat/649660532340430924_2.gif deleted file mode 100644 index 5b12271eb956e5c150fcca3cd6dd7606d1a6f2ec..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/649660532340430924_2.gif and /dev/null differ diff --git a/public/sertifikat/649660532340430924_2.jpeg b/public/sertifikat/649660532340430924_2.jpeg deleted file mode 100644 index 4823a08a45852a48051ae81ca8fdedc8d0f7d89b..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/649660532340430924_2.jpeg and /dev/null differ diff --git a/public/sertifikat/649660532340430924_3.gif b/public/sertifikat/649660532340430924_3.gif deleted file mode 100644 index 5b12271eb956e5c150fcca3cd6dd7606d1a6f2ec..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/649660532340430924_3.gif and /dev/null differ diff --git a/public/sertifikat/649660532340430924_3.jpeg b/public/sertifikat/649660532340430924_3.jpeg deleted file mode 100644 index 4823a08a45852a48051ae81ca8fdedc8d0f7d89b..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/649660532340430924_3.jpeg and /dev/null differ diff --git a/public/sertifikat/861171021411429094_1.gif b/public/sertifikat/861171021411429094_1.gif deleted file mode 100644 index 5b12271eb956e5c150fcca3cd6dd7606d1a6f2ec..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/861171021411429094_1.gif and /dev/null differ diff --git a/public/sertifikat/861171021411429094_2.jpeg b/public/sertifikat/861171021411429094_2.jpeg deleted file mode 100644 index 4823a08a45852a48051ae81ca8fdedc8d0f7d89b..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/861171021411429094_2.jpeg and /dev/null differ diff --git a/public/sertifikat/harvard.jpg b/public/sertifikat/harvard.jpg deleted file mode 100644 index 5cd7cbcc499b296b6d7d63eab4da0592cdcc3a73..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/harvard.jpg and /dev/null differ diff --git a/public/sertifikat/nasa.jpg b/public/sertifikat/nasa.jpg deleted file mode 100644 index 7f09683d3dcc2fec7e05bdf0459879a3d4710c4a..0000000000000000000000000000000000000000 Binary files a/public/sertifikat/nasa.jpg and /dev/null differ