public function getMatrikskompetensi() { //q1 => kompetensi_id $dataScheduleActive = Competency::where('status', '=', 'active')->first(); $dataCompetency = CompetencyDictionary::all(); $dataProfile = null; if (Input::has('q1')) { $dataProfile = CompetencyProfile::with('jabatan')->where('competency_id', '=', $dataScheduleActive->id)->where('competency_dictionary_id', '=', Input::get('q1'))->get(); // return $dataProfile; } $this->layout->content = View::make('competency::adminProfile.matriksKompetensi', compact('dataScheduleActive', 'dataCompetency', 'dataProfile')); }