@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | 'type' => 'closure', |
64 | 64 | 'label' => 'Manager', |
65 | 65 | 'orderable' => false, |
66 | - 'function' => function ($entry) { |
|
66 | + 'function' => function($entry){ |
|
67 | 67 | return '<a href="' . route('manager.profile.edit', $entry->manager->user->id) . '" target="_blank">' . $entry->manager->user->full_name . '</a>'; |
68 | 68 | } |
69 | 69 | ]); |
@@ -84,10 +84,10 @@ discard block |
||
84 | 84 | 'name' => 'departments', |
85 | 85 | 'type' => 'select2_multiple', |
86 | 86 | 'label' => 'Departments' |
87 | - ], function () { |
|
87 | + ], function(){ |
|
88 | 88 | return Department::all()->pluck('name', 'id')->toArray(); |
89 | - }, function ($values) { |
|
90 | - $this->crud->addClause('WhereHas', 'department', function ($query) use ($values) { |
|
89 | + }, function($values){ |
|
90 | + $this->crud->addClause('WhereHas', 'department', function($query) use ($values) { |
|
91 | 91 | foreach (json_decode($values) as $key => $value) { |
92 | 92 | if ($key === 0) { |
93 | 93 | $query->where('id', $value); |
@@ -20,13 +20,13 @@ |
||
20 | 20 | * |
21 | 21 | * @property \App\Models\WorkEnvironment $work_environment |
22 | 22 | */ |
23 | -class WorkEnvironmentTranslation extends BaseModel { |
|
23 | +class WorkEnvironmentTranslation extends BaseModel{ |
|
24 | 24 | |
25 | 25 | protected $fillable = [ |
26 | 26 | 'things_to_know' |
27 | 27 | ]; |
28 | 28 | |
29 | - public function work_environment() { |
|
29 | + public function work_environment(){ |
|
30 | 30 | return $this->belongsTo(\App\Models\WorkEnvironment::class); |
31 | 31 | } |
32 | 32 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @property \Illuminate\Database\Eloquent\Collection $skill_declarations |
26 | 26 | * @property \App\Models\Applicant $applicant |
27 | 27 | */ |
28 | -class WorkSample extends BaseModel { |
|
28 | +class WorkSample extends BaseModel{ |
|
29 | 29 | |
30 | 30 | protected $casts = [ |
31 | 31 | 'name' => 'string', |
@@ -43,19 +43,19 @@ discard block |
||
43 | 43 | 'description' |
44 | 44 | ]; |
45 | 45 | |
46 | - public function file_type() { |
|
46 | + public function file_type(){ |
|
47 | 47 | return $this->belongsTo(\App\Models\Lookup\FileType::class); |
48 | 48 | } |
49 | 49 | |
50 | - public function application_work_samples() { |
|
50 | + public function application_work_samples(){ |
|
51 | 51 | return $this->hasMany(\App\Models\ApplicationWorkSample::class); |
52 | 52 | } |
53 | 53 | |
54 | - public function skill_declarations() { |
|
54 | + public function skill_declarations(){ |
|
55 | 55 | return $this->belongsToMany(\App\Models\SkillDeclaration::class); |
56 | 56 | } |
57 | 57 | |
58 | - public function applicant() { |
|
58 | + public function applicant(){ |
|
59 | 59 | return $this->belongsTo(\App\Models\Applicant::class); |
60 | 60 | } |
61 | 61 |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * |
21 | 21 | * @property \App\Models\JobPosterQuestion $job_poster_question |
22 | 22 | */ |
23 | -class JobPosterQuestionTranslation extends BaseModel { |
|
23 | +class JobPosterQuestionTranslation extends BaseModel{ |
|
24 | 24 | |
25 | 25 | protected $casts = [ |
26 | 26 | 'job_poster_question_id' => 'int' |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | 'description' |
31 | 31 | ]; |
32 | 32 | |
33 | - public function job_poster_question() { |
|
33 | + public function job_poster_question(){ |
|
34 | 34 | return $this->belongsTo(\App\Models\JobPosterQuestion::class); |
35 | 35 | } |
36 | 36 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * |
20 | 20 | * @property \App\Models\JobPosterKeyTask $job_poster_key_task |
21 | 21 | */ |
22 | -class JobPosterKeyTaskTranslation extends BaseModel { |
|
22 | +class JobPosterKeyTaskTranslation extends BaseModel{ |
|
23 | 23 | |
24 | 24 | protected $casts = [ |
25 | 25 | 'job_poster_key_task_id' => 'int' |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | 'description' |
30 | 30 | ]; |
31 | 31 | |
32 | - public function job_poster_key_task() { |
|
32 | + public function job_poster_key_task(){ |
|
33 | 33 | return $this->belongsTo(\App\Models\JobPosterKeyTask::class); |
34 | 34 | } |
35 | 35 |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * |
29 | 29 | * @property \App\Models\Manager $manager |
30 | 30 | */ |
31 | -class ManagerTranslation extends BaseModel { |
|
31 | +class ManagerTranslation extends BaseModel{ |
|
32 | 32 | |
33 | 33 | protected $casts = [ |
34 | 34 | 'manager_id' => 'int' |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | 'learning_path' |
47 | 47 | ]; |
48 | 48 | |
49 | - public function manager() { |
|
49 | + public function manager(){ |
|
50 | 50 | return $this->belongsTo(\App\Models\Manager::class); |
51 | 51 | } |
52 | 52 |
@@ -21,14 +21,14 @@ |
||
21 | 21 | * |
22 | 22 | * @property \App\Models\Lookup\LanguageRequirement $language_requirement |
23 | 23 | */ |
24 | -class LanguageRequirementTranslation extends BaseModel { |
|
24 | +class LanguageRequirementTranslation extends BaseModel{ |
|
25 | 25 | |
26 | 26 | protected $casts = [ |
27 | 27 | 'language_requirement_id' => 'int' |
28 | 28 | ]; |
29 | 29 | protected $fillable = []; |
30 | 30 | |
31 | - public function language_requirement() { |
|
31 | + public function language_requirement(){ |
|
32 | 32 | return $this->belongsTo(\App\Models\Lookup\LanguageRequirement::class); |
33 | 33 | } |
34 | 34 |
@@ -21,14 +21,14 @@ |
||
21 | 21 | * |
22 | 22 | * @property \App\Models\Lookup\SecurityClearance $security_clearance |
23 | 23 | */ |
24 | -class SecurityClearanceTranslation extends BaseModel { |
|
24 | +class SecurityClearanceTranslation extends BaseModel{ |
|
25 | 25 | |
26 | 26 | protected $casts = [ |
27 | 27 | 'security_clearance_id' => 'int' |
28 | 28 | ]; |
29 | 29 | protected $fillable = []; |
30 | 30 | |
31 | - public function security_clearance() { |
|
31 | + public function security_clearance(){ |
|
32 | 32 | return $this->belongsTo(\App\Models\Lookup\SecurityClearance::class); |
33 | 33 | } |
34 | 34 |
@@ -21,14 +21,14 @@ |
||
21 | 21 | * |
22 | 22 | * @property \App\Models\Lookup\CitizenshipDeclaration $citizenship_declaration |
23 | 23 | */ |
24 | -class CitizenshipDeclarationTranslation extends BaseModel { |
|
24 | +class CitizenshipDeclarationTranslation extends BaseModel{ |
|
25 | 25 | |
26 | 26 | protected $casts = [ |
27 | 27 | 'citizenship_declaration_id' => 'int' |
28 | 28 | ]; |
29 | 29 | protected $fillable = []; |
30 | 30 | |
31 | - public function citizenship_declaration() { |
|
31 | + public function citizenship_declaration(){ |
|
32 | 32 | return $this->belongsTo(\App\Models\Lookup\CitizenshipDeclaration::class); |
33 | 33 | } |
34 | 34 |