@@ -15,8 +15,8 @@ |
||
15 | 15 | */ |
16 | 16 | public function compose(View $view) |
17 | 17 | { |
18 | - $show_demo_notification = Auth::user() !== null && Auth::user()->isDemoManager(); |
|
19 | - $view->with([ |
|
18 | + $show_demo_notification = Auth::user () !== null && Auth::user ()->isDemoManager (); |
|
19 | + $view->with ([ |
|
20 | 20 | 'show_demo_notification' => $show_demo_notification, |
21 | 21 | ]); |
22 | 22 | } |
@@ -15,6 +15,6 @@ |
||
15 | 15 | */ |
16 | 16 | public function compose(View $view) |
17 | 17 | { |
18 | - $view->with('goc', Lang::get('common/goc')); |
|
18 | + $view->with ('goc', Lang::get ('common/goc')); |
|
19 | 19 | } |
20 | 20 | } |
@@ -15,6 +15,6 @@ |
||
15 | 15 | */ |
16 | 16 | public function compose(View $view) |
17 | 17 | { |
18 | - $view->with('alert', Lang::get('common/alert')); |
|
18 | + $view->with ('alert', Lang::get ('common/alert')); |
|
19 | 19 | } |
20 | 20 | } |
21 | 21 | \ No newline at end of file |
@@ -15,6 +15,6 @@ |
||
15 | 15 | */ |
16 | 16 | public function compose(View $view) |
17 | 17 | { |
18 | - $view->with('relative_template', Lang::get('common/relatives')); |
|
18 | + $view->with ('relative_template', Lang::get ('common/relatives')); |
|
19 | 19 | } |
20 | 20 | } |
@@ -23,10 +23,10 @@ |
||
23 | 23 | public function compose(View $view) : void |
24 | 24 | { |
25 | 25 | if (!$this->courseStatuses) { |
26 | - $this->courseStatuses = CourseStatus::all(); |
|
26 | + $this->courseStatuses = CourseStatus::all (); |
|
27 | 27 | } |
28 | 28 | |
29 | - $view->with('course_status', $this->courseStatuses); |
|
30 | - $view->with('course_template', Lang::get('common/course')); |
|
29 | + $view->with ('course_status', $this->courseStatuses); |
|
30 | + $view->with ('course_template', Lang::get ('common/course')); |
|
31 | 31 | } |
32 | 32 | } |
@@ -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,13 +162,13 @@ discard block |
||
162 | 162 | unset($menu['items']['create_job']); |
163 | 163 | unset($menu['items']['profile']); |
164 | 164 | } |
165 | - } elseif (WhichPortal::isAdminPortal()) { |
|
165 | + } elseif (WhichPortal::isAdminPortal ()) { |
|
166 | 166 | // Use the manager menu, keeping only |
167 | - $menu = Lang::get('admin/menu'); |
|
167 | + $menu = Lang::get ('admin/menu'); |
|
168 | 168 | |
169 | 169 | |
170 | 170 | // Set active on the proper item |
171 | - switch (Route::currentRouteName()) { |
|
171 | + switch (Route::currentRouteName ()) { |
|
172 | 172 | case 'admin.home': |
173 | 173 | $menu['items']['home']['active'] = true; |
174 | 174 | break; |
@@ -178,10 +178,10 @@ discard block |
||
178 | 178 | } |
179 | 179 | |
180 | 180 | // Set route links |
181 | - $menu['items']['home']['link'] = backpack_url(); |
|
181 | + $menu['items']['home']['link'] = backpack_url (); |
|
182 | 182 | |
183 | 183 | // Check if use is logged in, and remove invalid menu items |
184 | - if (Auth::check()) { |
|
184 | + if (Auth::check ()) { |
|
185 | 185 | unset($menu['items']['login']); |
186 | 186 | unset($menu['items']['register']); |
187 | 187 | // TODO set profile like using user slug |
@@ -190,30 +190,30 @@ discard block |
||
190 | 190 | } |
191 | 191 | } |
192 | 192 | // Set login modals data |
193 | - if (WhichPortal::isManagerPortal()) { |
|
193 | + if (WhichPortal::isManagerPortal ()) { |
|
194 | 194 | $loginModals = [ |
195 | - 'modals' => Lang::get('common/login_modals'), |
|
196 | - 'register_link' => route('manager.register'), |
|
197 | - 'login_link' => route('manager.login'), |
|
198 | - 'logout_link' => route('manager.logout'), |
|
195 | + 'modals' => Lang::get ('common/login_modals'), |
|
196 | + 'register_link' => route ('manager.register'), |
|
197 | + 'login_link' => route ('manager.login'), |
|
198 | + 'logout_link' => route ('manager.logout'), |
|
199 | 199 | ]; |
200 | - } elseif (WhichPortal::isAdminPortal()) { |
|
200 | + } elseif (WhichPortal::isAdminPortal ()) { |
|
201 | 201 | $loginModals = [ |
202 | - 'modals' => Lang::get('common/login_modals'), |
|
203 | - 'register_link' => route('register'), |
|
204 | - 'login_link' => backpack_url('login'), |
|
205 | - 'logout_link' => backpack_url('logout'), |
|
202 | + 'modals' => Lang::get ('common/login_modals'), |
|
203 | + 'register_link' => route ('register'), |
|
204 | + 'login_link' => backpack_url ('login'), |
|
205 | + 'logout_link' => backpack_url ('logout'), |
|
206 | 206 | ]; |
207 | 207 | } else { |
208 | 208 | $loginModals = [ |
209 | - 'modals' => Lang::get('common/login_modals'), |
|
210 | - 'register_link' => route('register'), |
|
211 | - 'login_link' => route('login'), |
|
212 | - 'logout_link' => route('logout'), |
|
209 | + 'modals' => Lang::get ('common/login_modals'), |
|
210 | + 'register_link' => route ('register'), |
|
211 | + 'login_link' => route ('login'), |
|
212 | + 'logout_link' => route ('logout'), |
|
213 | 213 | ]; |
214 | 214 | } |
215 | 215 | |
216 | - $view->with('menu', $menu) |
|
217 | - ->with('login_modals', $loginModals); |
|
216 | + $view->with ('menu', $menu) |
|
217 | + ->with ('login_modals', $loginModals); |
|
218 | 218 | } |
219 | 219 | } |
@@ -23,10 +23,10 @@ |
||
23 | 23 | public function compose(View $view) : void |
24 | 24 | { |
25 | 25 | if (!$this->degreeTypes) { |
26 | - $this->degreeTypes = DegreeType::all(); |
|
26 | + $this->degreeTypes = DegreeType::all (); |
|
27 | 27 | } |
28 | 28 | |
29 | - $view->with('degree_types', $this->degreeTypes); |
|
30 | - $view->with('degree_template', Lang::get('common/degree')); |
|
29 | + $view->with ('degree_types', $this->degreeTypes); |
|
30 | + $view->with ('degree_template', Lang::get ('common/degree')); |
|
31 | 31 | } |
32 | 32 | } |
@@ -16,25 +16,25 @@ |
||
16 | 16 | */ |
17 | 17 | public function compose(View $view) |
18 | 18 | { |
19 | - $app_tracker = Lang::get('applicant/application_tracker'); |
|
19 | + $app_tracker = Lang::get ('applicant/application_tracker'); |
|
20 | 20 | |
21 | 21 | |
22 | - $app_tracker['items']['basics']['url'] = route('job.application.edit.1', $view->getData()['job']); |
|
23 | - $app_tracker['items']['experience']['url'] = route('job.application.edit.2', $view->getData()['job']); |
|
24 | - $app_tracker['items']['essential_skills']['url'] = route('job.application.edit.3', $view->getData()['job']); |
|
25 | - $app_tracker['items']['asset_skills']['url'] = route('job.application.edit.4', $view->getData()['job']); |
|
26 | - $app_tracker['items']['preview']['url'] = route('job.application.edit.5', $view->getData()['job']); |
|
27 | - $app_tracker['items']['confirm']['url'] = route('job.application.edit.6', $view->getData()['job']); |
|
22 | + $app_tracker['items']['basics']['url'] = route ('job.application.edit.1', $view->getData ()['job']); |
|
23 | + $app_tracker['items']['experience']['url'] = route ('job.application.edit.2', $view->getData ()['job']); |
|
24 | + $app_tracker['items']['essential_skills']['url'] = route ('job.application.edit.3', $view->getData ()['job']); |
|
25 | + $app_tracker['items']['asset_skills']['url'] = route ('job.application.edit.4', $view->getData ()['job']); |
|
26 | + $app_tracker['items']['preview']['url'] = route ('job.application.edit.5', $view->getData ()['job']); |
|
27 | + $app_tracker['items']['confirm']['url'] = route ('job.application.edit.6', $view->getData ()['job']); |
|
28 | 28 | |
29 | 29 | //TODO: all these checks shouldn't be neccessary when controllers are properly set up |
30 | - if (isset($view->getData()['job_application'])) { |
|
31 | - $job_application = $view->getData()['job_application']; |
|
30 | + if (isset($view->getData ()['job_application'])) { |
|
31 | + $job_application = $view->getData ()['job_application']; |
|
32 | 32 | if ($job_application != null && $job_application instanceof JobApplication) { |
33 | - foreach($app_tracker['items'] as $key => $value) { |
|
34 | - $app_tracker['items'][$key]['status'] = $job_application->getSectionStatus($key); |
|
33 | + foreach ($app_tracker['items'] as $key => $value) { |
|
34 | + $app_tracker['items'][$key]['status'] = $job_application->getSectionStatus ($key); |
|
35 | 35 | } |
36 | 36 | } |
37 | 37 | } |
38 | - $view->with('application_tracker', $app_tracker); |
|
38 | + $view->with ('application_tracker', $app_tracker); |
|
39 | 39 | } |
40 | 40 | } |
@@ -23,10 +23,10 @@ |
||
23 | 23 | public function compose(View $view) : void |
24 | 24 | { |
25 | 25 | if (!$this->relationships) { |
26 | - $this->relationships = Relationship::all(); |
|
26 | + $this->relationships = Relationship::all (); |
|
27 | 27 | } |
28 | 28 | |
29 | - $view->with('relationships', $this->relationships); |
|
30 | - $view->with('reference_template', Lang::get('common/references')); |
|
29 | + $view->with ('relationships', $this->relationships); |
|
30 | + $view->with ('reference_template', Lang::get ('common/references')); |
|
31 | 31 | } |
32 | 32 | } |