public function getCompanyJobApplicants(CompanyService $company, $user_id, $company_id, $job_id) { try { $status = Request::get('type'); $status_id = 0; if ($status == 'short-listed') { $status_id = 3; } if ($status == 'rejected') { $status_id = 2; } $job_posts = $company->getJobApplicants($job_id, $status_id); return $this->json_response->success($job_posts); } catch (Exception $e) { return $this->json_response->error(['error' => $e->getMessage()]); } }