@@ -81,8 +81,7 @@ discard block |
||
81 | 81 | 'orderable' => false, |
82 | 82 | 'function' => function ($entry) { |
83 | 83 | return $entry->isOpen() ? |
84 | - '<span><i class="fa fa-check-circle"></i></span>' : |
|
85 | - '<span><i class="fa fa-circle"></i></span>'; |
|
84 | + '<span><i class="fa fa-check-circle"></i></span>' : '<span><i class="fa fa-circle"></i></span>'; |
|
86 | 85 | } |
87 | 86 | ]); |
88 | 87 | $this->crud->addColumn([ |
@@ -92,8 +91,7 @@ discard block |
||
92 | 91 | 'orderable' => false, |
93 | 92 | 'function' => function ($entry) { |
94 | 93 | return $entry->isClosed() ? |
95 | - '<span><i class="fa fa-check-circle"></i></span>' : |
|
96 | - '<span><i class="fa fa-circle"></i></span>'; |
|
94 | + '<span><i class="fa fa-check-circle"></i></span>' : '<span><i class="fa fa-circle"></i></span>'; |
|
97 | 95 | } |
98 | 96 | ]); |
99 | 97 | |
@@ -124,8 +122,7 @@ discard block |
||
124 | 122 | 'function' => |
125 | 123 | function ($entry) { |
126 | 124 | return $entry->submitted_applications_count() > 0 ? |
127 | - '<a target="_blank" href="' . route('manager.jobs.applications', $entry->id) . '">' . $entry->submitted_applications_count() . ' (View <i class="fa fa-external-link"></i>)</a>' : |
|
128 | - $entry->submitted_applications_count(); |
|
125 | + '<a target="_blank" href="' . route('manager.jobs.applications', $entry->id) . '">' . $entry->submitted_applications_count() . ' (View <i class="fa fa-external-link"></i>)</a>' : $entry->submitted_applications_count(); |
|
129 | 126 | } |
130 | 127 | ]); |
131 | 128 |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | 'limit' => 120, |
41 | 41 | ]); |
42 | 42 | |
43 | - $this->crud->addField([ // Select |
|
43 | + $this->crud->addField([// Select |
|
44 | 44 | 'label' => 'Owner User Role', |
45 | 45 | 'type' => 'select', |
46 | 46 | 'name' => 'owner_user_role_id', // the db column for the foreign key |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | 'attributes' => ['disabled' => 'disabled'] |
51 | 51 | ]); |
52 | 52 | |
53 | - $this->crud->addField([ // Select |
|
53 | + $this->crud->addField([// Select |
|
54 | 54 | 'label' => 'From Status', |
55 | 55 | 'type' => 'select', |
56 | 56 | 'name' => 'from_job_poster_status_id', // the db column for the foreign key |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | 'attributes' => ['disabled' => 'disabled'] |
61 | 61 | ]); |
62 | 62 | |
63 | - $this->crud->addField([ // Select |
|
63 | + $this->crud->addField([// Select |
|
64 | 64 | 'label' => 'To Status', |
65 | 65 | 'type' => 'select', |
66 | 66 | 'name' => 'to_job_poster_status_id', // the db column for the foreign key |
@@ -47,7 +47,7 @@ |
||
47 | 47 | $ids = explode(',', $ids); |
48 | 48 | if ($ids) { |
49 | 49 | array_map(function ($v) { |
50 | - return (int) $v; |
|
50 | + return (int)$v; |
|
51 | 51 | }, $ids); |
52 | 52 | $users = User::whereIn('id', $ids)->with(['applicant', 'manager', 'hr_advisor'])->get(); |
53 | 53 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | class ApplicationValidator |
13 | 13 | { |
14 | 14 | |
15 | - public $backendRules = [ |
|
15 | + public $backendRules = [ |
|
16 | 16 | 'job_poster_id' => 'required', |
17 | 17 | 'application_status_id' => 'required', |
18 | 18 | 'applicant_id' => 'required', |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | 'label' => 'Job Poster Title', |
41 | 41 | 'searchLogic' => function ($query, $column, $searchTerm) { |
42 | 42 | $query->orWhereHas('job_poster', function ($q) use ($searchTerm) { |
43 | - $q->where('title', 'ilike', '%'.$searchTerm.'%'); |
|
43 | + $q->where('title', 'ilike', '%' . $searchTerm . '%'); |
|
44 | 44 | }); |
45 | 45 | } |
46 | 46 | ]); |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | 'label' => 'Applicant Name', |
52 | 52 | 'searchLogic' => function ($query, $column, $searchTerm) { |
53 | 53 | $query->orWhereHas('applicant.user', function ($q) use ($searchTerm) { |
54 | - $q->where('first_name', 'ilike', '%'.$searchTerm.'%') |
|
55 | - ->orWhere('last_name', 'ilike', '%'.$searchTerm.'%'); |
|
54 | + $q->where('first_name', 'ilike', '%' . $searchTerm . '%') |
|
55 | + ->orWhere('last_name', 'ilike', '%' . $searchTerm . '%'); |
|
56 | 56 | }); |
57 | 57 | } |
58 | 58 | ]); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | 'label' => 'Applicant Email', |
64 | 64 | 'searchLogic' => function ($query, $column, $searchTerm) { |
65 | 65 | $query->orWhereHas('applicant.user', function ($q) use ($searchTerm) { |
66 | - $q->where('email', 'ilike', '%'.$searchTerm.'%'); |
|
66 | + $q->where('email', 'ilike', '%' . $searchTerm . '%'); |
|
67 | 67 | }); |
68 | 68 | } |
69 | 69 | ]); |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | 'label' => 'Full Name', |
40 | 40 | 'searchLogic' => function ($query, $column, $searchTerm) { |
41 | 41 | $query->orWhereHas('user', function ($q) use ($searchTerm) { |
42 | - $q->where('first_name', 'ilike', '%'.$searchTerm.'%') |
|
43 | - ->orWhere('last_name', 'ilike', '%'.$searchTerm.'%'); |
|
42 | + $q->where('first_name', 'ilike', '%' . $searchTerm . '%') |
|
43 | + ->orWhere('last_name', 'ilike', '%' . $searchTerm . '%'); |
|
44 | 44 | }); |
45 | 45 | } |
46 | 46 | ]); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | 'label' => 'Email', |
52 | 52 | 'searchLogic' => function ($query, $column, $searchTerm) { |
53 | 53 | $query->orWhereHas('user', function ($q) use ($searchTerm) { |
54 | - $q->where('email', 'ilike', '%'.$searchTerm.'%'); |
|
54 | + $q->where('email', 'ilike', '%' . $searchTerm . '%'); |
|
55 | 55 | }); |
56 | 56 | } |
57 | 57 | ]); |
@@ -75,9 +75,9 @@ |
||
75 | 75 | |
76 | 76 | $position = $this->job->getTranslations('title'); |
77 | 77 | $classification = $this->job->getClassificationMessageAttribute(); |
78 | - $subject = Lang::get('common/notifications/screen_candidates.subject', [ 'position' => $position['en'], 'classification' => $classification ], 'en') |
|
78 | + $subject = Lang::get('common/notifications/screen_candidates.subject', ['position' => $position['en'], 'classification' => $classification], 'en') |
|
79 | 79 | . ' / ' |
80 | - . Lang::get('common/notifications/screen_candidates.subject', [ 'position' => $position['fr'], 'classification' => $classification ], 'fr'); |
|
80 | + . Lang::get('common/notifications/screen_candidates.subject', ['position' => $position['fr'], 'classification' => $classification], 'fr'); |
|
81 | 81 | |
82 | 82 | return $this->subject($subject) |
83 | 83 | ->cc($hr_advisors_emails) |
@@ -249,7 +249,7 @@ |
||
249 | 249 | $rules = $this->addNestedValidatorRules( |
250 | 250 | 'job_application_answers.*', |
251 | 251 | $answerValidator->rules(), |
252 | - [ 'job_application_answers.*.answer' => ['required', 'string', new WordLimitRule(250)]] |
|
252 | + ['job_application_answers.*.answer' => ['required', 'string', new WordLimitRule(250)]] |
|
253 | 253 | ); |
254 | 254 | |
255 | 255 | // Validate that each question has been answered. |
@@ -92,7 +92,7 @@ |
||
92 | 92 | 'application' => $jobApplication, |
93 | 93 | 'application_template' => Lang::get( |
94 | 94 | 'applicant/application_template', |
95 | - ['security_clearance' => $jobPoster->security_clearance->value ] |
|
95 | + ['security_clearance' => $jobPoster->security_clearance->value] |
|
96 | 96 | ), |
97 | 97 | 'jobPoster' => $jobPoster, |
98 | 98 | ] |