2020-05-08 06:06:24 +01:00
@ extends ( 'adminlte::page' )
2022-03-19 06:04:30 +00:00
@ section ( 'title' , config ( 'app.name' ) . ' | ' . __ ( 'Apply' ))
2020-05-08 06:06:24 +01:00
@ section ( 'content_header' )
2022-03-19 06:04:30 +00:00
< h1 > {{ __ ( 'My account' )}} / {{ __ ( 'Apply' )}} / {{ $vacancy -> vacancyName }} {{ __ ( 'Application' )}} </ h1 >
2020-05-08 06:06:24 +01:00
@ stop
2020-05-08 08:10:25 +01:00
@ section ( 'js' )
@ if ( session () -> has ( 'success' ))
< script >
toastr . success ( " { { session('success')}} " )
</ script >
@ elseif ( session () -> has ( 'error' ))
< script >
toastr . error ( " { { session('error')}} " )
</ script >
@ endif
2020-05-10 06:36:42 +01:00
@ if ( ! $isEligibleForApplication )
2020-05-08 08:10:25 +01:00
2022-03-19 06:04:30 +00:00
< script > toastr . error ( " { { __('Application access denied')}} " ) </ script >
2020-05-08 06:06:24 +01:00
2020-05-10 06:36:42 +01:00
@ endif
@ stop
2020-05-08 06:06:24 +01:00
2020-05-10 06:36:42 +01:00
@ section ( 'content' )
2020-05-08 06:06:24 +01:00
2020-05-10 06:36:42 +01:00
@ if ( $isEligibleForApplication )
< div class = " modal fade " tabindex = " -1 " id = " confirm " role = " dialog " aria - labelledby = " modalConfirmLabel " aria - hidden = " true " >
< div class = " modal-dialog " role = " document " >
< div class = " modal-content " >
< div class = " modal-header " >
2022-03-19 06:04:30 +00:00
< h5 class = " modal-title " id = " modalConfirmLabel " > {{ __ ( 'Please confirm' )}} </ h5 >
2020-05-10 06:36:42 +01:00
< button type = " button " class = " close " data - dismiss = " modal " aria - label = " Close " >
< span aria - hidden = " true " >& times ; </ span >
</ button >
</ div >
< div class = " modal-body " >
2022-03-19 06:04:30 +00:00
< p > {{ __ ( 'Are you sure you want to submit your application? Please review each of your answers carefully before doing so.' )}} </ p >
< p class = " text-bold " > {{ __ ( " Please note: Applications CANNOT be modified once they're submitted! " )}} </ p >
2020-05-10 06:36:42 +01:00
</ div >
< div class = " modal-footer " >
2022-03-19 06:04:30 +00:00
< button type = " button " class = " btn btn-success " onclick = " document.getElementById('submitApplicationForm').submit() " >< i class = " fas fa-check-double " ></ i > {{ __ ( 'Accept & Send' )}} </ button >
< button type = " button " class = " btn btn-secondary " data - dismiss = " modal " > {{ __ ( 'Review' )}} </ button >
2020-05-10 06:36:42 +01:00
</ div >
2020-05-08 06:06:24 +01:00
</ div >
</ div >
</ div >
2020-05-10 06:36:42 +01:00
< div class = " row " >
2020-05-08 06:06:24 +01:00
2020-05-10 06:36:42 +01:00
< div class = " col " >
2021-10-25 18:37:42 +01:00
< div class = " alert alert-light " >
2020-05-08 06:06:24 +01:00
2021-10-25 18:37:42 +01:00
{ !! $vacancy -> vacancyFullDescription !! }
2020-05-08 06:06:24 +01:00
2021-10-25 18:37:42 +01:00
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col " >
< div class = " alert alert-info alert-dismissible fade show " role = " alert " >
< button type = " button " class = " close " data - dismiss = " alert " aria - label = " Close " >
< span aria - hidden = " true " >& times ; </ span >
</ button >
2022-03-19 06:04:30 +00:00
< p class = " text-bold " > {{ __ ( 'You are applying for: :vacancyNameValue' , [ 'vacancyNameValue' => $vacancy -> vacancyName ])}} </ p >
2020-05-08 06:06:24 +01:00
2022-03-19 06:04:30 +00:00
< p > {{ __ ( " We're glad you've decided to apply. Generally, applications take 48 hours to be processed and reviewed. Depending on the circumstances and the volume of applications, you may receive an answer in a shorter time. " )}} </ p >
2022-10-24 01:04:22 +01:00
< p > {{ __ ( 'Please fill out the form below. Keep all answers concise and complete. Please keep in mind that you must be at least :ageUpperLimitSettingValue years old to apply.' , [ 'ageUpperLimitSettingValue' => $vacancy -> requiredAge ]) }} </ p >
2022-03-19 06:04:30 +00:00
< p class = " text-bold " > {{ __ ( 'Asking about your application will result in instant denial. Everything you need to know is here.' )}} .</ p >
2020-05-10 06:36:42 +01:00
2022-03-19 06:04:30 +00:00
< p >< i class = " fab fa-markdown " ></ i > { !! __ ( 'All fields support <a target="_blank" href="https://www.markdownguide.org/cheat-sheet/">Markdown</a>' ) !! } </ p >
2021-01-29 17:32:43 +00:00
2020-05-10 06:36:42 +01:00
</ div >
2020-05-08 06:06:24 +01:00
</ div >
</ div >
2022-10-24 01:04:22 +01:00
@ if ( $vacancy -> requiresDiscord && Auth :: user () -> hasDiscordConnection ())
< div class = " row mt-3 " >
< div class = " col " >
< h5 > { !! __ ( ':preIcon Applying as :icon :discordUsername' , [ 'preIcon' => '<i class="fas fa-check-circle" style="color: green;"></i>' , 'icon' => '<i class="fab fa-discord" style="color: #5865F2"></i>' , 'discordUsername' => Auth :: user () -> username ]) !! } </ h5 >
</ div >
</ div >
@ endif
2020-05-08 06:06:24 +01:00
2020-05-10 06:36:42 +01:00
< div class = " row " >
2020-05-08 06:06:24 +01:00
2020-05-10 06:36:42 +01:00
< div class = " col " >
2020-05-08 06:06:24 +01:00
2020-05-10 06:36:42 +01:00
< div class = " card " >
2020-05-08 06:06:24 +01:00
2020-05-10 06:36:42 +01:00
< div class = " card-header " >
2020-05-08 06:06:24 +01:00
2020-05-10 06:36:42 +01:00
< div class = " card-title " >< h4 > {{ $vacancy -> forms -> formName }} </ h4 ></ div >
2020-05-08 06:06:24 +01:00
2020-05-10 06:36:42 +01:00
</ div >
2020-05-08 06:06:24 +01:00
2020-05-10 06:36:42 +01:00
< div class = " card-body " >
2020-05-08 06:06:24 +01:00
2020-05-10 06:36:42 +01:00
< form action = " { { route('saveApplicationForm', ['vacancySlug' => $vacancy->vacancySlug ])}} " method = " POST " id = " submitApplicationForm " >
@ csrf
2020-05-08 06:06:24 +01:00
2020-07-12 19:36:12 +01:00
@ component ( 'components.form' , [ 'form' => $preprocessedForm , 'disableFields' => false ])
2020-05-08 06:06:24 +01:00
2020-07-12 19:36:12 +01:00
@ endcomponent
2020-05-08 06:06:24 +01:00
2020-05-10 06:36:42 +01:00
</ form >
2020-05-08 06:06:24 +01:00
2020-05-10 06:36:42 +01:00
</ div >
2020-05-08 06:06:24 +01:00
2020-05-10 06:36:42 +01:00
< div class = " card-footer text-center " >
2020-05-08 06:06:24 +01:00
2022-03-19 06:04:30 +00:00
< button type = " button " class = " btn btn-success " onclick = " $ ('#confirm').modal('show') " >< i class = " fas fa-paper-plane " ></ i > {{ __ ( 'Send' )}} </ button >
2020-05-10 06:36:42 +01:00
</ div >
2020-05-08 06:06:24 +01:00
</ div >
</ div >
</ div >
2020-05-10 06:36:42 +01:00
@ else
< div class = " alert alert-danger " >
2022-03-19 06:04:30 +00:00
< p class = " text-bold " > {{ __ ( 'Access denied' )}} </ p >
2020-05-10 06:36:42 +01:00
2022-03-19 06:04:30 +00:00
< p > {{ __ ( 'Your account is not permitted to submit another application. Please wait :applicationThrottleLimitSettingValue more days before trying to submit an application.' , [ ':applicationThrottleLimitSettingValue' => $eligibilityDaysRemaining ])}} </ p >
2020-05-10 06:36:42 +01:00
</ div >
@ endif
2020-05-08 06:06:24 +01:00
@ stop
2020-07-16 06:46:20 +01:00
@ section ( 'footer' )
@ include ( 'breadcrumbs.dashboard.footer' )
@ stop