@@ -21,14 +21,14 @@ |
||
| 21 | 21 | * |
| 22 | 22 | * @property \App\Models\Lookup\Province $province |
| 23 | 23 | */ |
| 24 | -class ProvinceTranslation extends BaseModel { |
|
| 24 | +class ProvinceTranslation extends BaseModel{ |
|
| 25 | 25 | |
| 26 | 26 | protected $casts = [ |
| 27 | 27 | 'province_id' => 'int' |
| 28 | 28 | ]; |
| 29 | 29 | protected $fillable = []; |
| 30 | 30 | |
| 31 | - public function province() { |
|
| 31 | + public function province(){ |
|
| 32 | 32 | return $this->belongsTo(\App\Models\Lookup\Province::class); |
| 33 | 33 | } |
| 34 | 34 | |
@@ -21,14 +21,14 @@ |
||
| 21 | 21 | * |
| 22 | 22 | * @property \App\Models\Lookup\ExperienceLevel $experience_level |
| 23 | 23 | */ |
| 24 | -class ExperienceLevelTranslation extends BaseModel { |
|
| 24 | +class ExperienceLevelTranslation extends BaseModel{ |
|
| 25 | 25 | |
| 26 | 26 | protected $casts = [ |
| 27 | 27 | 'experience_level_id' => 'int' |
| 28 | 28 | ]; |
| 29 | 29 | protected $fillable = []; |
| 30 | 30 | |
| 31 | - public function experience_level() { |
|
| 31 | + public function experience_level(){ |
|
| 32 | 32 | return $this->belongsTo(\App\Models\Lookup\ExperienceLevel::class); |
| 33 | 33 | } |
| 34 | 34 | |
@@ -21,14 +21,14 @@ |
||
| 21 | 21 | * |
| 22 | 22 | * @property \App\Models\Lookup\JobTerm $job_term |
| 23 | 23 | */ |
| 24 | -class JobTermTranslation extends BaseModel { |
|
| 24 | +class JobTermTranslation extends BaseModel{ |
|
| 25 | 25 | |
| 26 | 26 | protected $casts = [ |
| 27 | 27 | 'job_term_id' => 'int' |
| 28 | 28 | ]; |
| 29 | 29 | protected $fillable = []; |
| 30 | 30 | |
| 31 | - public function job_term() { |
|
| 31 | + public function job_term(){ |
|
| 32 | 32 | return $this->belongsTo(\App\Models\Lookup\JobTerm::class); |
| 33 | 33 | } |
| 34 | 34 | |
@@ -21,11 +21,11 @@ |
||
| 21 | 21 | * |
| 22 | 22 | * @property \App\Models\CriteriaType $criteria_type |
| 23 | 23 | */ |
| 24 | -class CriteriaTypeTranslation extends BaseModel { |
|
| 24 | +class CriteriaTypeTranslation extends BaseModel{ |
|
| 25 | 25 | |
| 26 | 26 | protected $fillable = []; |
| 27 | 27 | |
| 28 | - public function criteria_type() { |
|
| 28 | + public function criteria_type(){ |
|
| 29 | 29 | return $this->belongsTo(\App\Models\CriteriaType::class); |
| 30 | 30 | } |
| 31 | 31 | |
@@ -21,14 +21,14 @@ |
||
| 21 | 21 | * |
| 22 | 22 | * @property \App\Models\Lookup\Relationship $relationship |
| 23 | 23 | */ |
| 24 | -class RelationshipTranslation extends BaseModel { |
|
| 24 | +class RelationshipTranslation extends BaseModel{ |
|
| 25 | 25 | |
| 26 | 26 | protected $casts = [ |
| 27 | 27 | 'relationship_id' => 'int' |
| 28 | 28 | ]; |
| 29 | 29 | protected $fillable = []; |
| 30 | 30 | |
| 31 | - public function relationship() { |
|
| 31 | + public function relationship(){ |
|
| 32 | 32 | return $this->belongsTo(\App\Models\Lookup\Relationship::class); |
| 33 | 33 | } |
| 34 | 34 | |
@@ -21,14 +21,14 @@ |
||
| 21 | 21 | * |
| 22 | 22 | * @property \App\Models\Lookup\SkillLevel $skill_level |
| 23 | 23 | */ |
| 24 | -class SkillLevelTranslation extends BaseModel { |
|
| 24 | +class SkillLevelTranslation extends BaseModel{ |
|
| 25 | 25 | |
| 26 | 26 | protected $casts = [ |
| 27 | 27 | 'skill_level_id' => 'int' |
| 28 | 28 | ]; |
| 29 | 29 | protected $fillable = []; |
| 30 | 30 | |
| 31 | - public function skill_level() { |
|
| 31 | + public function skill_level(){ |
|
| 32 | 32 | return $this->belongsTo(\App\Models\Lookup\SkillLevel::class); |
| 33 | 33 | } |
| 34 | 34 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | * @property \App\Models\Lookup\AssessmentType $assessment_type |
| 23 | 23 | */ |
| 24 | -class AssessmentTypeTranslation extends BaseModel { |
|
| 24 | +class AssessmentTypeTranslation extends BaseModel{ |
|
| 25 | 25 | |
| 26 | 26 | protected $casts = [ |
| 27 | 27 | 'id' => 'int', |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | 'name', |
| 34 | 34 | ]; |
| 35 | 35 | |
| 36 | - public function assessment_type() { |
|
| 36 | + public function assessment_type(){ |
|
| 37 | 37 | return $this->belongsTo(\App\Models\Lookup\AssessmentType::class); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -190,10 +190,10 @@ discard block |
||
| 190 | 190 | } |
| 191 | 191 | |
| 192 | 192 | /** |
| 193 | - * Check if the user has the specified role. |
|
| 194 | - * @param string $role This may be either 'applicant', 'manager', 'hr_advisor' or 'admin'. |
|
| 195 | - * @return boolean |
|
| 196 | - */ |
|
| 193 | + * Check if the user has the specified role. |
|
| 194 | + * @param string $role This may be either 'applicant', 'manager', 'hr_advisor' or 'admin'. |
|
| 195 | + * @return boolean |
|
| 196 | + */ |
|
| 197 | 197 | public function hasRole($role) |
| 198 | 198 | { |
| 199 | 199 | switch ($role) { |
@@ -214,8 +214,8 @@ discard block |
||
| 214 | 214 | * Set this user to the specified role. |
| 215 | 215 | * |
| 216 | 216 | * @param string $role Must be either 'applicant', 'manager', 'hr_advisor' or 'admin'. |
| 217 | - * @return void |
|
| 218 | - */ |
|
| 217 | + * @return void |
|
| 218 | + */ |
|
| 219 | 219 | public function setRole(string $role): void |
| 220 | 220 | { |
| 221 | 221 | $this->user_role()->associate(UserRole::where('name', $role)->firstOrFail()); |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | * Returns a user's full name. |
| 251 | 251 | * |
| 252 | 252 | * @return string |
| 253 | - */ |
|
| 253 | + */ |
|
| 254 | 254 | public function getFullNameAttribute(): string |
| 255 | 255 | { |
| 256 | 256 | return $this->first_name . ' ' . $this->last_name; |
@@ -234,6 +234,6 @@ |
||
| 234 | 234 | */ |
| 235 | 235 | public function getFullNameAttribute(): string |
| 236 | 236 | { |
| 237 | - return $this->first_name . ' ' . $this->last_name; |
|
| 237 | + return $this->first_name.' '.$this->last_name; |
|
| 238 | 238 | } |
| 239 | 239 | } |
@@ -238,12 +238,12 @@ |
||
| 238 | 238 | 'logout_link' => route('hr_advisor.logout'), |
| 239 | 239 | ]; |
| 240 | 240 | } elseif (WhichPortal::isAdminPortal()) { |
| 241 | - $loginModals = [ |
|
| 241 | + $loginModals = [ |
|
| 242 | 242 | 'modals' => Lang::get('common/login_modals'), |
| 243 | 243 | 'register_link' => route('register'), |
| 244 | 244 | 'login_link' => backpack_url('login'), |
| 245 | 245 | 'logout_link' => backpack_url('logout'), |
| 246 | - ]; |
|
| 246 | + ]; |
|
| 247 | 247 | } else { |
| 248 | 248 | $loginModals = [ |
| 249 | 249 | 'modals' => Lang::get('common/login_modals'), |