@@ -21,15 +21,15 @@ |
||
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() { |
|
32 | - return $this->belongsTo(\App\Models\Lookup\ExperienceLevel::class); |
|
31 | + public function experience_level(){ |
|
32 | + return $this->belongsTo (\App\Models\Lookup\ExperienceLevel::class); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | } |
@@ -61,6 +61,6 @@ |
||
61 | 61 | |
62 | 62 | public function job_poster() |
63 | 63 | { |
64 | - return $this->belongsTo(\App\Models\JobPoster::class); |
|
64 | + return $this->belongsTo (\App\Models\JobPoster::class); |
|
65 | 65 | } |
66 | 66 | } |
@@ -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,8 +46,8 @@ discard block |
||
46 | 46 | 'learning_path' |
47 | 47 | ]; |
48 | 48 | |
49 | - public function manager() { |
|
50 | - return $this->belongsTo(\App\Models\Manager::class); |
|
49 | + public function manager(){ |
|
50 | + return $this->belongsTo (\App\Models\Manager::class); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | } |
@@ -49,26 +49,26 @@ |
||
49 | 49 | |
50 | 50 | public function manager() |
51 | 51 | { |
52 | - return $this->belongsTo(\App\Models\Manager::class); |
|
52 | + return $this->belongsTo (\App\Models\Manager::class); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | public function telework_allowed_frequency() //phpcs:ignore |
56 | 56 | { |
57 | - return $this->belongsTo(\App\Models\Lookup\Frequency::class); |
|
57 | + return $this->belongsTo (\App\Models\Lookup\Frequency::class); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | public function flexible_hours_frequency() //phpcs:ignore |
61 | 61 | { |
62 | - return $this->belongsTo(\App\Models\Lookup\Frequency::class); |
|
62 | + return $this->belongsTo (\App\Models\Lookup\Frequency::class); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | public function workplace_photo_captions() //phpcs:ignore |
66 | 66 | { |
67 | - return $this->hasMany(\App\Models\WorkplacePhotoCaption::class); |
|
67 | + return $this->hasMany (\App\Models\WorkplacePhotoCaption::class); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | public function work_environment_translations() //phpcs:ignore |
71 | 71 | { |
72 | - return $this->hasMany(\App\Models\WorkEnvironmentTranslation::class); |
|
72 | + return $this->hasMany (\App\Models\WorkEnvironmentTranslation::class); |
|
73 | 73 | } |
74 | 74 | } |
@@ -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,20 +43,20 @@ discard block |
||
43 | 43 | 'description' |
44 | 44 | ]; |
45 | 45 | |
46 | - public function file_type() { |
|
47 | - return $this->belongsTo(\App\Models\Lookup\FileType::class); |
|
46 | + public function file_type(){ |
|
47 | + return $this->belongsTo (\App\Models\Lookup\FileType::class); |
|
48 | 48 | } |
49 | 49 | |
50 | - public function application_work_samples() { |
|
51 | - return $this->hasMany(\App\Models\ApplicationWorkSample::class); |
|
50 | + public function application_work_samples(){ |
|
51 | + return $this->hasMany (\App\Models\ApplicationWorkSample::class); |
|
52 | 52 | } |
53 | 53 | |
54 | - public function skill_declarations() { |
|
55 | - return $this->belongsToMany(\App\Models\SkillDeclaration::class); |
|
54 | + public function skill_declarations(){ |
|
55 | + return $this->belongsToMany (\App\Models\SkillDeclaration::class); |
|
56 | 56 | } |
57 | 57 | |
58 | - public function applicant() { |
|
59 | - return $this->belongsTo(\App\Models\Applicant::class); |
|
58 | + public function applicant(){ |
|
59 | + return $this->belongsTo (\App\Models\Applicant::class); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | } |
@@ -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'), |
@@ -18,11 +18,11 @@ discard block |
||
18 | 18 | */ |
19 | 19 | public function compose(View $view) |
20 | 20 | { |
21 | - if (WhichPortal::isApplicantPortal()) { |
|
22 | - $menu = Lang::get('applicant/menu'); |
|
21 | + if (WhichPortal::isApplicantPortal ()) { |
|
22 | + $menu = Lang::get ('applicant/menu'); |
|
23 | 23 | |
24 | 24 | // Set active on the proper item |
25 | - switch (Route::currentRouteName()) { |
|
25 | + switch (Route::currentRouteName ()) { |
|
26 | 26 | case 'home': |
27 | 27 | $menu['items']['home']['active'] = true; |
28 | 28 | break; |
@@ -82,15 +82,15 @@ discard block |
||
82 | 82 | } |
83 | 83 | |
84 | 84 | // Set route links |
85 | - $menu['items']['home']['link'] = route('home'); |
|
86 | - $menu['items']['jobs']['link'] = route('jobs.index'); |
|
87 | - $menu['items']['applications']['link'] = route('applications.index'); |
|
88 | - $menu['items']['profile']['link'] = route('profile'); |
|
89 | - $menu['items']['faq']['link'] = route('faq'); |
|
90 | - $menu['items']['itp']['link'] = route('itp'); |
|
85 | + $menu['items']['home']['link'] = route ('home'); |
|
86 | + $menu['items']['jobs']['link'] = route ('jobs.index'); |
|
87 | + $menu['items']['applications']['link'] = route ('applications.index'); |
|
88 | + $menu['items']['profile']['link'] = route ('profile'); |
|
89 | + $menu['items']['faq']['link'] = route ('faq'); |
|
90 | + $menu['items']['itp']['link'] = route ('itp'); |
|
91 | 91 | |
92 | 92 | // Check if use is logged in, and remove invalid menu items |
93 | - if (Auth::check()) { |
|
93 | + if (Auth::check ()) { |
|
94 | 94 | unset($menu['items']['login']); |
95 | 95 | unset($menu['items']['register']); |
96 | 96 | // TODO set profile like using user slug |
@@ -99,11 +99,11 @@ discard block |
||
99 | 99 | unset($menu['items']['applications']); |
100 | 100 | unset($menu['items']['profile']); |
101 | 101 | } |
102 | - } elseif (WhichPortal::isManagerPortal()) { |
|
103 | - $menu = Lang::get('manager/menu'); |
|
102 | + } elseif (WhichPortal::isManagerPortal ()) { |
|
103 | + $menu = Lang::get ('manager/menu'); |
|
104 | 104 | |
105 | 105 | // Set active on the proper item |
106 | - switch (Route::currentRouteName()) { |
|
106 | + switch (Route::currentRouteName ()) { |
|
107 | 107 | case 'manager.home': |
108 | 108 | $menu['items']['home']['active'] = true; |
109 | 109 | break; |
@@ -144,15 +144,15 @@ discard block |
||
144 | 144 | } |
145 | 145 | |
146 | 146 | // Set route links |
147 | - $menu['items']['home']['link'] = route('manager.home'); |
|
148 | - $menu['items']['jobs']['link'] = route('manager.jobs.index'); |
|
147 | + $menu['items']['home']['link'] = route ('manager.home'); |
|
148 | + $menu['items']['jobs']['link'] = route ('manager.jobs.index'); |
|
149 | 149 | // TODO: restore when job poster builder complete |
150 | 150 | // $menu['items']['create_job']['link'] = route('manager.jobs.create'); |
151 | - $menu['items']['profile']['link'] = route('manager.profile'); |
|
152 | - $menu['items']['faq']['link'] = route('manager.faq.section'); |
|
151 | + $menu['items']['profile']['link'] = route ('manager.profile'); |
|
152 | + $menu['items']['faq']['link'] = route ('manager.faq.section'); |
|
153 | 153 | |
154 | 154 | // Check if use is logged in, and remove invalid menu items |
155 | - if (Auth::check()) { |
|
155 | + if (Auth::check ()) { |
|
156 | 156 | unset($menu['items']['login']); |
157 | 157 | unset($menu['items']['register']); |
158 | 158 | // TODO set profile like using user slug |
@@ -162,11 +162,11 @@ discard block |
||
162 | 162 | unset($menu['items']['create_job']); |
163 | 163 | unset($menu['items']['profile']); |
164 | 164 | } |
165 | - } elseif (WhichPortal::isHrPortal()) { |
|
166 | - $menu = Lang::get('hr_advisor/menu'); |
|
165 | + } elseif (WhichPortal::isHrPortal ()) { |
|
166 | + $menu = Lang::get ('hr_advisor/menu'); |
|
167 | 167 | |
168 | 168 | // Set active on the proper item |
169 | - switch (Route::currentRouteName()) { |
|
169 | + switch (Route::currentRouteName ()) { |
|
170 | 170 | case 'hr_advisor.home': |
171 | 171 | $menu['items']['home']['active'] = true; |
172 | 172 | break; |
@@ -185,23 +185,23 @@ discard block |
||
185 | 185 | } |
186 | 186 | |
187 | 187 | // Set route links |
188 | - $menu['items']['home']['link'] = route('hr_advisor.home'); |
|
188 | + $menu['items']['home']['link'] = route ('hr_advisor.home'); |
|
189 | 189 | |
190 | 190 | // Check if use is logged in, and remove invalid menu items |
191 | - if (Auth::check()) { |
|
191 | + if (Auth::check ()) { |
|
192 | 192 | unset($menu['items']['login']); |
193 | 193 | unset($menu['items']['register']); |
194 | 194 | // TODO set profile like using user slug |
195 | 195 | } else { |
196 | 196 | unset($menu['items']['logout']); |
197 | 197 | } |
198 | - } elseif (WhichPortal::isAdminPortal()) { |
|
198 | + } elseif (WhichPortal::isAdminPortal ()) { |
|
199 | 199 | // Use the manager menu, keeping only |
200 | - $menu = Lang::get('admin/menu'); |
|
200 | + $menu = Lang::get ('admin/menu'); |
|
201 | 201 | |
202 | 202 | |
203 | 203 | // Set active on the proper item |
204 | - switch (Route::currentRouteName()) { |
|
204 | + switch (Route::currentRouteName ()) { |
|
205 | 205 | case 'admin.home': |
206 | 206 | $menu['items']['home']['active'] = true; |
207 | 207 | break; |
@@ -211,10 +211,10 @@ discard block |
||
211 | 211 | } |
212 | 212 | |
213 | 213 | // Set route links |
214 | - $menu['items']['home']['link'] = backpack_url(); |
|
214 | + $menu['items']['home']['link'] = backpack_url (); |
|
215 | 215 | |
216 | 216 | // Check if use is logged in, and remove invalid menu items |
217 | - if (Auth::check()) { |
|
217 | + if (Auth::check ()) { |
|
218 | 218 | unset($menu['items']['login']); |
219 | 219 | unset($menu['items']['register']); |
220 | 220 | // TODO set profile like using user slug |
@@ -223,37 +223,37 @@ discard block |
||
223 | 223 | } |
224 | 224 | } |
225 | 225 | // Set login modals data |
226 | - if (WhichPortal::isManagerPortal()) { |
|
226 | + if (WhichPortal::isManagerPortal ()) { |
|
227 | 227 | $loginModals = [ |
228 | - 'modals' => Lang::get('common/login_modals'), |
|
229 | - 'register_link' => route('manager.register'), |
|
230 | - 'login_link' => route('manager.login'), |
|
231 | - 'logout_link' => route('manager.logout'), |
|
228 | + 'modals' => Lang::get ('common/login_modals'), |
|
229 | + 'register_link' => route ('manager.register'), |
|
230 | + 'login_link' => route ('manager.login'), |
|
231 | + 'logout_link' => route ('manager.logout'), |
|
232 | 232 | ]; |
233 | - } elseif (WhichPortal::isHrPortal()) { |
|
233 | + } elseif (WhichPortal::isHrPortal ()) { |
|
234 | 234 | $loginModals = [ |
235 | - 'modals' => Lang::get('common/login_modals'), |
|
236 | - 'register_link' => route('hr_advisor.register'), |
|
237 | - 'login_link' => route('hr_advisor.login'), |
|
238 | - 'logout_link' => route('hr_advisor.logout'), |
|
235 | + 'modals' => Lang::get ('common/login_modals'), |
|
236 | + 'register_link' => route ('hr_advisor.register'), |
|
237 | + 'login_link' => route ('hr_advisor.login'), |
|
238 | + 'logout_link' => route ('hr_advisor.logout'), |
|
239 | 239 | ]; |
240 | - } elseif (WhichPortal::isAdminPortal()) { |
|
240 | + } elseif (WhichPortal::isAdminPortal ()) { |
|
241 | 241 | $loginModals = [ |
242 | - 'modals' => Lang::get('common/login_modals'), |
|
243 | - 'register_link' => route('register'), |
|
244 | - 'login_link' => backpack_url('login'), |
|
245 | - 'logout_link' => backpack_url('logout'), |
|
242 | + 'modals' => Lang::get ('common/login_modals'), |
|
243 | + 'register_link' => route ('register'), |
|
244 | + 'login_link' => backpack_url ('login'), |
|
245 | + 'logout_link' => backpack_url ('logout'), |
|
246 | 246 | ]; |
247 | 247 | } else { |
248 | 248 | $loginModals = [ |
249 | - 'modals' => Lang::get('common/login_modals'), |
|
250 | - 'register_link' => route('register'), |
|
251 | - 'login_link' => route('login'), |
|
252 | - 'logout_link' => route('logout'), |
|
249 | + 'modals' => Lang::get ('common/login_modals'), |
|
250 | + 'register_link' => route ('register'), |
|
251 | + 'login_link' => route ('login'), |
|
252 | + 'logout_link' => route ('logout'), |
|
253 | 253 | ]; |
254 | 254 | } |
255 | 255 | |
256 | - $view->with('menu', $menu) |
|
257 | - ->with('login_modals', $loginModals); |
|
256 | + $view->with ('menu', $menu) |
|
257 | + ->with ('login_modals', $loginModals); |
|
258 | 258 | } |
259 | 259 | } |
@@ -22,39 +22,39 @@ |
||
22 | 22 | */ |
23 | 23 | public function getForJob(JobPoster $jobPoster) |
24 | 24 | { |
25 | - if (Gate::denies('view-assessment-plan', $jobPoster)) { |
|
26 | - abort(403); |
|
25 | + if (Gate::denies ('view-assessment-plan', $jobPoster)) { |
|
26 | + abort (403); |
|
27 | 27 | } |
28 | 28 | |
29 | - $criteria = Criteria::where('job_poster_id', $jobPoster->id)->get(); |
|
29 | + $criteria = Criteria::where ('job_poster_id', $jobPoster->id)->get (); |
|
30 | 30 | $criteriaTranslated = []; |
31 | 31 | foreach ($criteria as $criterion) { |
32 | 32 | // TODO: getTranslationsArray probably makes DB calls every loop. Find a way to profile & optimize. |
33 | - $criteriaTranslated[] = array_merge($criterion->toArray(), $criterion->getTranslationsArray()); |
|
33 | + $criteriaTranslated[] = array_merge ($criterion->toArray (), $criterion->getTranslationsArray ()); |
|
34 | 34 | } |
35 | - $criteriaIds = $criteria->pluck('id'); |
|
36 | - $assessments = Assessment::whereIn('criterion_id', $criteriaIds)->get(); |
|
35 | + $criteriaIds = $criteria->pluck ('id'); |
|
36 | + $assessments = Assessment::whereIn ('criterion_id', $criteriaIds)->get (); |
|
37 | 37 | // Check for newly created assessment plan, and initialize any empty criteria to have the |
38 | 38 | // "Narrative Review" option set. |
39 | - $assessmentCriteriaIds = $assessments->pluck('criterion_id'); |
|
40 | - $emptyAssessments = array_diff($criteriaIds->toArray(), $assessmentCriteriaIds->toArray()); |
|
39 | + $assessmentCriteriaIds = $assessments->pluck ('criterion_id'); |
|
40 | + $emptyAssessments = array_diff ($criteriaIds->toArray (), $assessmentCriteriaIds->toArray ()); |
|
41 | 41 | if (!empty($emptyAssessments)) { |
42 | - $narrativeReview = AssessmentType::where('key', 'narrative_assessment')->first(); |
|
42 | + $narrativeReview = AssessmentType::where ('key', 'narrative_assessment')->first (); |
|
43 | 43 | foreach ($emptyAssessments as $criterionId) { |
44 | - Assessment::create([ |
|
44 | + Assessment::create ([ |
|
45 | 45 | 'criterion_id' => $criterionId, |
46 | 46 | 'assessment_type_id' => $narrativeReview->id |
47 | 47 | ]); |
48 | 48 | } |
49 | - $assessments = Assessment::whereIn('criterion_id', $criteriaIds)->get(); |
|
49 | + $assessments = Assessment::whereIn ('criterion_id', $criteriaIds)->get (); |
|
50 | 50 | } |
51 | - $questions = RatingGuideQuestion::where('job_poster_id', $jobPoster->id)->get(); |
|
52 | - $answers = RatingGuideAnswer::whereIn('rating_guide_question_id', $questions->pluck('id'))->get(); |
|
51 | + $questions = RatingGuideQuestion::where ('job_poster_id', $jobPoster->id)->get (); |
|
52 | + $answers = RatingGuideAnswer::whereIn ('rating_guide_question_id', $questions->pluck ('id'))->get (); |
|
53 | 53 | return [ |
54 | 54 | 'criteria' => $criteriaTranslated, |
55 | - 'assessments' => $assessments->toArray(), |
|
56 | - 'rating_guide_questions' => $questions->toArray(), |
|
57 | - 'rating_guide_answers' => $answers->toArray() |
|
55 | + 'assessments' => $assessments->toArray (), |
|
56 | + 'rating_guide_questions' => $questions->toArray (), |
|
57 | + 'rating_guide_answers' => $answers->toArray () |
|
58 | 58 | ]; |
59 | 59 | } |
60 | 60 | } |
@@ -17,49 +17,49 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public function setup() : void |
19 | 19 | { |
20 | - $this->crud->setModel('App\Models\User'); |
|
21 | - $this->crud->setRoute('admin/manager'); |
|
22 | - $this->crud->setEntityNameStrings('manager', 'managers'); |
|
20 | + $this->crud->setModel ('App\Models\User'); |
|
21 | + $this->crud->setRoute ('admin/manager'); |
|
22 | + $this->crud->setEntityNameStrings ('manager', 'managers'); |
|
23 | 23 | |
24 | 24 | // Don't show 'basic' users. |
25 | - $this->crud->addClause('whereIn', 'user_role_id', [2, 3]); |
|
25 | + $this->crud->addClause ('whereIn', 'user_role_id', [2, 3]); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | public function setupListOperation() |
29 | 29 | { |
30 | - $this->crud->removeButton('update'); |
|
30 | + $this->crud->removeButton ('update'); |
|
31 | 31 | |
32 | - $this->crud->addColumn([ |
|
32 | + $this->crud->addColumn ([ |
|
33 | 33 | 'name' => 'manager.id', |
34 | 34 | 'key' => 'manager_id', |
35 | 35 | 'type' => 'number', |
36 | 36 | 'label' => 'ID' |
37 | 37 | ]); |
38 | - $this->crud->addColumn([ |
|
38 | + $this->crud->addColumn ([ |
|
39 | 39 | 'name' => 'manager.name', |
40 | 40 | 'key' => 'manager_name', |
41 | 41 | 'type' => 'text', |
42 | 42 | 'label' => 'Name' |
43 | 43 | ]); |
44 | - $this->crud->addColumn([ |
|
44 | + $this->crud->addColumn ([ |
|
45 | 45 | 'name' => 'user_role.name', |
46 | 46 | 'type' => 'text', |
47 | 47 | 'key' => 'user_role_name', |
48 | 48 | 'label' => 'Role' |
49 | 49 | ]); |
50 | - $this->crud->addColumn([ |
|
50 | + $this->crud->addColumn ([ |
|
51 | 51 | 'name' => 'email', |
52 | 52 | 'key' => 'manager_email', |
53 | 53 | 'type' => 'text', |
54 | 54 | 'label' => 'Email' |
55 | 55 | ]); |
56 | - $this->crud->addColumn([ |
|
56 | + $this->crud->addColumn ([ |
|
57 | 57 | 'name' => 'gov_email', |
58 | 58 | 'key' => 'government_email', |
59 | 59 | 'type' => 'text', |
60 | 60 | 'label' => 'Government Email' |
61 | 61 | ]); |
62 | - $this->crud->addColumn([ |
|
62 | + $this->crud->addColumn ([ |
|
63 | 63 | 'name' => 'manager.department.name', |
64 | 64 | 'key' => 'manager_department', |
65 | 65 | 'type' => 'text', |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | ]); |
69 | 69 | |
70 | 70 | // Add the custom blade button found in resources/views/vendor/backpack/crud/buttons/profile_edit.blade.php. |
71 | - $this->crud->addButtonFromView('line', 'create_job_poster', 'create_job_poster', 'beginning'); |
|
72 | - $this->crud->addButtonFromView('line', 'profile_edit', 'profile_edit', 'end'); |
|
71 | + $this->crud->addButtonFromView ('line', 'create_job_poster', 'create_job_poster', 'beginning'); |
|
72 | + $this->crud->addButtonFromView ('line', 'profile_edit', 'profile_edit', 'end'); |
|
73 | 73 | } |
74 | 74 | } |
@@ -15,27 +15,27 @@ discard block |
||
15 | 15 | */ |
16 | 16 | public function applicant() |
17 | 17 | { |
18 | - $now = Carbon::now(); |
|
18 | + $now = Carbon::now (); |
|
19 | 19 | |
20 | 20 | // Find three most recent published jobs that are currently open for applications. |
21 | 21 | // Eager load required relationships: Department, Province, JobTerm. |
22 | - $jobs = JobPoster::where('open_date_time', '<=', $now) |
|
23 | - ->where('close_date_time', '>=', $now) |
|
24 | - ->where('published', true) |
|
25 | - ->with([ |
|
22 | + $jobs = JobPoster::where ('open_date_time', '<=', $now) |
|
23 | + ->where ('close_date_time', '>=', $now) |
|
24 | + ->where ('published', true) |
|
25 | + ->with ([ |
|
26 | 26 | 'department', |
27 | 27 | 'province', |
28 | 28 | ]) |
29 | - ->orderBy('open_date_time', 'desc') |
|
30 | - ->take(3) |
|
31 | - ->get(); |
|
32 | - return view('applicant/home', [ |
|
33 | - 'home' => Lang::get('applicant/home'), |
|
34 | - 'hero' => Lang::get('common/hero'), |
|
35 | - 'job_index' => Lang::get('applicant/job_index'), |
|
36 | - 'job_post' => Lang::get('applicant/job_post'), |
|
29 | + ->orderBy ('open_date_time', 'desc') |
|
30 | + ->take (3) |
|
31 | + ->get (); |
|
32 | + return view ('applicant/home', [ |
|
33 | + 'home' => Lang::get ('applicant/home'), |
|
34 | + 'hero' => Lang::get ('common/hero'), |
|
35 | + 'job_index' => Lang::get ('applicant/job_index'), |
|
36 | + 'job_post' => Lang::get ('applicant/job_post'), |
|
37 | 37 | 'jobs' => $jobs, |
38 | - 'job_count' => count($jobs) |
|
38 | + 'job_count' => count ($jobs) |
|
39 | 39 | ]); |
40 | 40 | } |
41 | 41 | |
@@ -45,8 +45,8 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public function manager() |
47 | 47 | { |
48 | - return view('manager/home', [ |
|
49 | - 'home_l10n' => Lang::get('manager/home'), |
|
48 | + return view ('manager/home', [ |
|
49 | + 'home_l10n' => Lang::get ('manager/home'), |
|
50 | 50 | ]); |
51 | 51 | } |
52 | 52 | |
@@ -56,8 +56,8 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function hr_advisor() //phpcs:ignore |
58 | 58 | { |
59 | - return view('hr_advisor/home', [ |
|
60 | - 'hr_home' => Lang::get('hr_advisor/home'), |
|
59 | + return view ('hr_advisor/home', [ |
|
60 | + 'hr_home' => Lang::get ('hr_advisor/home'), |
|
61 | 61 | ]); |
62 | 62 | } |
63 | 63 | } |