public function reject($id) { $rencanaKarir = RencanaKarir::findOrFail($id); $rencanaKarir->approved = 2; // 2 = rejected $rencanaKarir->save(); return $rencanaKarir; }
public function showRencanaKarir($user_id) { $rencanaKarir = RencanaKarir::with(['diklat_jk_pendek'])->where('user_id', $user_id)->paginate(10); return $rencanaKarir; }