public function applyChangeStatus(CompanyService $company, $user_id, $apply_id) { $retrieve = ['status']; try { $input = Request::only($retrieve); $response = $company->applicantChangeStatus($apply_id, $input); if ($response) { return $this->json_response->success($response); } return $this->json_response->error(); } catch (Exception $e) { return $this->json_response->error(['error' => $e->getMessage()]); } }