@@ -63,7 +63,7 @@ |
||
| 63 | 63 | ); |
| 64 | 64 | |
| 65 | 65 | View::composer( |
| 66 | - ['common/relatives','common/reference','common/relatives-projects', |
|
| 66 | + ['common/relatives', 'common/reference', 'common/relatives-projects', |
|
| 67 | 67 | 'common/sample', 'common/skill', 'common/modals/create_reference'], |
| 68 | 68 | 'App\Http\ViewComposers\RelativeComposer' |
| 69 | 69 | ); |
@@ -684,7 +684,7 @@ discard block |
||
| 684 | 684 | ->name('api.jobs.submit'); |
| 685 | 685 | Route::resource('jobs', 'Api\JobController')->only([ |
| 686 | 686 | 'show', 'store', 'update', 'index' |
| 687 | - ])->names([ // Specify custom names because default names collied with existing routes. |
|
| 687 | + ])->names([// Specify custom names because default names collied with existing routes. |
|
| 688 | 688 | 'show' => 'api.jobs.show', |
| 689 | 689 | 'store' => 'api.jobs.store', |
| 690 | 690 | 'update' => 'api.jobs.update', |
@@ -697,7 +697,7 @@ discard block |
||
| 697 | 697 | |
| 698 | 698 | Route::resource('managers', 'Api\ManagerController')->only([ |
| 699 | 699 | 'show', 'update' |
| 700 | - ])->names([ // Specify custom names because default names collied with existing routes. |
|
| 700 | + ])->names([// Specify custom names because default names collied with existing routes. |
|
| 701 | 701 | 'show' => 'api.managers.show', |
| 702 | 702 | 'update' => 'api.managers.update' |
| 703 | 703 | ]); |
@@ -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', |
@@ -213,7 +213,7 @@ |
||
| 213 | 213 | */ |
| 214 | 214 | public function downloadApplicants(User $user, JobPoster $jobPoster): bool |
| 215 | 215 | { |
| 216 | - return $user->isAdmin() && ( $jobPoster->status() == 'published' || $jobPoster->status() == 'closed' ); |
|
| 216 | + return $user->isAdmin() && ($jobPoster->status() == 'published' || $jobPoster->status() == 'closed'); |
|
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | } |
@@ -108,8 +108,7 @@ |
||
| 108 | 108 | 'function' => |
| 109 | 109 | function ($entry) { |
| 110 | 110 | return $entry->submitted_applications_count() > 0 ? |
| 111 | - '<a target="_blank" href="' . route('manager.jobs.applications', $entry->id) . '">' . $entry->submitted_applications_count() . ' (View <i class="fa fa-external-link"></i>)</a>' : |
|
| 112 | - $entry->submitted_applications_count(); |
|
| 111 | + '<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(); |
|
| 113 | 112 | } |
| 114 | 113 | ]); |
| 115 | 114 | |