| @@ 271-280 (lines=10) @@ | ||
| 268 | * |
|
| 269 | * @author Bertrand Kintanar <[email protected]> |
|
| 270 | */ |
|
| 271 | public function store(EmploymentStatusRequest $request) |
|
| 272 | { |
|
| 273 | try { |
|
| 274 | $employment_status = $this->employment_status->create($request->all()); |
|
| 275 | } catch (Exception $e) { |
|
| 276 | return $this->_response(422, UNABLE_ADD_MESSAGE); |
|
| 277 | } |
|
| 278 | ||
| 279 | return $this->_response(201, SUCCESS_ADD_MESSAGE, compact('employment_status')); |
|
| 280 | } |
|
| 281 | ||
| 282 | /** |
|
| 283 | * Update the Admin - Employment Status. |
|
| @@ 271-280 (lines=10) @@ | ||
| 268 | * |
|
| 269 | * @author Bertrand Kintanar <[email protected]> |
|
| 270 | */ |
|
| 271 | public function store(JobTitleRequest $request) |
|
| 272 | { |
|
| 273 | try { |
|
| 274 | $job_title = $this->job_title->create($request->all()); |
|
| 275 | } catch (Exception $e) { |
|
| 276 | return $this->_response(422, UNABLE_ADD_MESSAGE); |
|
| 277 | } |
|
| 278 | ||
| 279 | return $this->_response(201, SUCCESS_ADD_MESSAGE, compact('job_title')); |
|
| 280 | } |
|
| 281 | ||
| 282 | /** |
|
| 283 | * Update the Admin - Job Title. |
|
| @@ 102-111 (lines=10) @@ | ||
| 99 | * |
|
| 100 | * @author Bertrand Kintanar <[email protected]> |
|
| 101 | */ |
|
| 102 | public function store(DependentsRequest $request) |
|
| 103 | { |
|
| 104 | try { |
|
| 105 | $dependent = $this->dependent->create($request->all()); |
|
| 106 | } catch (Exception $e) { |
|
| 107 | return $this->_response(422, UNABLE_ADD_MESSAGE); |
|
| 108 | } |
|
| 109 | ||
| 110 | return $this->_response(201, SUCCESS_ADD_MESSAGE, compact('dependent')); |
|
| 111 | } |
|
| 112 | ||
| 113 | /** |
|
| 114 | * Update the Profile - Dependents. |
|
| @@ 102-111 (lines=10) @@ | ||
| 99 | * |
|
| 100 | * @author Bertrand Kintanar <[email protected]> |
|
| 101 | */ |
|
| 102 | public function store(EmergencyContactsRequest $request) |
|
| 103 | { |
|
| 104 | try { |
|
| 105 | $emergency_contact = $this->emergency_contact->create($request->all()); |
|
| 106 | } catch (Exception $e) { |
|
| 107 | return $this->_response(422, UNABLE_ADD_MESSAGE); |
|
| 108 | } |
|
| 109 | ||
| 110 | return $this->_response(201, SUCCESS_ADD_MESSAGE, compact('emergency_contact')); |
|
| 111 | } |
|
| 112 | ||
| 113 | /** |
|
| 114 | * Update the Profile - Emergency Contacts. |
|
| @@ 55-64 (lines=10) @@ | ||
| 52 | * |
|
| 53 | * @author Bertrand Kintanar <[email protected]> |
|
| 54 | */ |
|
| 55 | public function storeWorkExperience(QualificationsWorkExperienceRequest $request, WorkExperience $workExperience) |
|
| 56 | { |
|
| 57 | try { |
|
| 58 | $work_experience = $workExperience->create($request->all()); |
|
| 59 | } catch (Exception $e) { |
|
| 60 | return $this->_response(422, UNABLE_ADD_MESSAGE); |
|
| 61 | } |
|
| 62 | ||
| 63 | return $this->_response(201, SUCCESS_ADD_MESSAGE, compact('work_experience')); |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|
| 67 | * Delete the Profile - Qualifications - Work Experiences. |
|
| @@ 125-134 (lines=10) @@ | ||
| 122 | * |
|
| 123 | * @author Bertrand Kintanar <[email protected]> |
|
| 124 | */ |
|
| 125 | public function storeEducation(QualificationsEducationRequest $request, Education $education) |
|
| 126 | { |
|
| 127 | try { |
|
| 128 | $education = $education->create($request->except(['education_level', 'education_levels'])); |
|
| 129 | } catch (Exception $e) { |
|
| 130 | return $this->_response(422, UNABLE_ADD_MESSAGE); |
|
| 131 | } |
|
| 132 | ||
| 133 | return $this->_response(201, SUCCESS_ADD_MESSAGE, compact('education')); |
|
| 134 | } |
|
| 135 | ||
| 136 | /** |
|
| 137 | * Delete the Profile - Qualifications - Educations. |
|