public function getApplicationById(CompanyService $company, $applicant_id) { try { $response = $company->getJobApplicantById($applicant_id); if ($response) { return $this->json_response->success($response); } return $this->json_response->error($response); } catch (Exception $e) { return $this->json_response->error(['error' => $e->getMessage()]); } }