/** * Method used to filter the selected items for changing the result set * * @return Html */ public function filterResults(Request $request) { $this->data['location_ids'] = $request->get('location_ids'); $this->data['specialty_ids'] = $request->get('specialty_ids'); $this->data['current_loc'] = $request->get('current_location'); $this->data['current_spec'] = $request->get('current_specialty'); $this->data['query'] = array('specialization_id' => $request->get('current_specialty'), 'location_id' => $request->get('current_location'), 'locations' => $request->get('location_ids')); $this->doctor = new DataLoader(); $this->data['result'] = json_decode($this->doctor->buildDoctorsList('', '', 0, 25, $this->data['query'])); return $this->data['result']; }