public function postIndex() { $nip = Auth::user()->nip; $competency = Competency::all(); $recap = CompetencyRecap::with('competency')->where('competency_id', '=', Input::get('competency_id'))->where('user_nip', '=', $nip)->first(); $competencyType = CompetencyType::all(); $masterPegawai = MasterPegawai::getDetailbyDate($recap->competency->date_start, $nip); foreach ($competencyType as $rowCT) { $profiles = CompetencyProfile::getProfilebyRecapType($recap->user_nip, $rowCT->id); $result[] = array('name' => $rowCT->name, 'data' => $profiles); } // return $result; $this->layout->content = View::make('competency::result.index', compact('competency', 'recap', 'result', 'masterPegawai')); }
public function postResult() { // return Input::all(); $competencyAll = Competency::all(); $competency = Competency::find(Input::get('competency')); $recap = CompetencyRecap::with('pegawai', 'jabatan')->where('competency_id', $competency->id)->get(); $this->layout->content = View::make('competency::adminRecap.result', compact('competencyAll', 'competency', 'recap')); }