2020-04-27 07:28:00 +01:00
@ extends ( 'breadcrumbs.app' )
2021-10-25 18:37:42 +01:00
@ section ( 'content' )
2020-04-27 07:28:00 +01:00
2021-12-11 23:45:15 +00:00
2021-12-09 19:54:33 +00:00
2020-07-11 05:34:12 +01:00
@ if ( ! $positions -> isEmpty ())
<!-- todo : details component -->
@ foreach ( $positions as $position )
2023-02-26 04:28:57 +00:00
< x - modal id = " { { $position->vacancySlug . '-details' }} " modal - label = " { { $position->vacancySlug . '-details-label' }} " modal - title = " { { __('Vacancy details')}} " include - close - button = " false " >
2020-07-11 05:34:12 +01:00
@ if ( is_null ( $position -> vacancyFullDescription ))
< div class = " alert alert-warning " >
2022-03-31 16:39:59 +01:00
< h3 >< i class = " fas fa-question-circle " ></ i > {{ __ ( " There don't seem to be any details. " )}} </ h3 >
2020-07-11 05:34:12 +01:00
< p >
2022-03-31 16:39:59 +01:00
{{ __ ( 'This vacancy does not have any details yet.' )}}
2020-07-11 05:34:12 +01:00
</ p >
</ div >
@ else
{ !! $position -> vacancyFullDescription !! }
< p class = " text-sm text-muted " >
2022-10-24 01:04:22 +01:00
{{ __ ( 'Last updated :lastUpdatedRelativeTimeValue' , [ 'lastUpdatedRelativeTimeValue' => $position -> updated_at -> diffForHumans ()])}}
2020-07-11 05:34:12 +01:00
</ p >
@ endif
2023-02-26 04:28:57 +00:00
< x - slot name = " modalFooter " >
</ x - slot >
2020-07-11 05:34:12 +01:00
</ x - modal >
@ endforeach
@ endif
2020-04-27 07:28:00 +01:00
<!-- Main Layout -->
< main class = " py-5 " >
< div class = " container-fluid " >
2021-09-04 00:44:54 +01:00
@ if ( $demoActive )
< div class = " row " >
< div class = " col " >
< div class = " alert alert-warning " >
2022-03-31 16:39:59 +01:00
< p class = " font-weight-bold " >< i class = " fas fa-exclamation-circle " ></ i > {{ __ ( 'Attention' ) }} </ p >
< p > {{ __ ( 'Demo mode is active on this instance. The database is refreshed daily and some features are disabled for security reasons.' ) }} </ p >
2021-09-04 00:44:54 +01:00
2022-03-31 16:39:59 +01:00
< p > {{ __ ( " If you're seeing this message in error, please contact your system administrator. " ) }} </ p >
2021-09-04 00:44:54 +01:00
</ div >
</ div >
</ div >
@ endif
2021-10-13 07:17:52 +01:00
< div class = " row mt-5 " >
< div class = " col text-center " >
2023-06-29 22:51:46 +01:00
< h3 > {{ __ ( 'Check out our available roles' ) }} </ h3 >
{ !! __ ( " <p>Are you looking to work with the :appName team? We're actively recruiting! Check out one of our open roles. A good team is an important aaspect of a successful community.</p> " , [ 'appName' => config ( 'app.name' )]) !! }
2020-04-27 07:28:00 +01:00
</ div >
</ div >
< div class = " row mt-5 mb-5 " >
2020-05-08 01:45:29 +01:00
@ if ( ! $positions -> isEmpty ())
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
@ foreach ( $positions as $position )
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
< div class = " col-md-4 " >
2020-04-27 07:28:00 +01:00
2020-07-16 07:32:52 +01:00
< div class = " card mt-3 " >
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
< div class = " card-header text-center " >
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
< h4 class = " card-title " > {{ $position -> vacancyName }} </ h4 >
2022-03-31 16:39:59 +01:00
< p class = " card-subtitle " > {{ trans_choice ( '{1} There is :count open position!|[2,*] There are :count open positions!' , $position -> vacancyCount )}} </ p >
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
</ div >
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
< div class = " card-body text-center " >
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
< p class = " card-text " >
{{ $position -> vacancyDescription }}
</ p >
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
</ div >
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
< div class = " card-footer text-center " >
2020-05-10 06:36:42 +01:00
@ auth
2022-10-24 01:04:22 +01:00
@ if ( $position -> requiresDiscord )
@ if ( Auth :: user () -> hasDiscordConnection ())
< button {{( $isEligibleForApplication ) ? '' : 'disabled' }} type = " button " class = " btn btn-success " onclick = " window.location.href=' { { route('renderApplicationForm', ['vacancySlug' => $position->vacancySlug ])}}' " > {{ __ ( 'Apply' )}} </ button >
@ else
< button {{( $isEligibleForApplication ) ? '' : 'disabled' }} style = " background-color: #5865F2; color: white " type = " button " class = " btn " onclick = " window.location.href=' { { route('renderApplicationForm', ['vacancySlug' => $position->vacancySlug ])}}' " >< i class = " fab fa-discord " ></ i > {{ __ ( 'Apply with Discord' )}} </ button >
@ endif
@ else
< button {{( $isEligibleForApplication ) ? '' : 'disabled' }} type = " button " class = " btn btn-success " onclick = " window.location.href=' { { route('renderApplicationForm', ['vacancySlug' => $position->vacancySlug ])}}' " > {{ __ ( 'Apply' )}} </ button >
@ endif
2020-05-10 06:36:42 +01:00
@ if ( ! $isEligibleForApplication )
2022-03-31 16:39:59 +01:00
< span class = " badge-warning badge " >< i class = " fa fa-info " ></ i > {{ __ ( 'Ineligible (:days) day(s) remaining' , [ 'days' => $eligibilityDaysRemaining ])}} </ span >
2020-05-10 06:36:42 +01:00
@ endif
@ endauth
@ guest
2022-10-24 01:04:22 +01:00
@ if ( $position -> requiresDiscord )
< button style = " background-color: #5865F2; color: white " type = " button " class = " btn " onclick = " window.location.href=' { { route('discord-apply', ['vacancySlug' => $position->vacancySlug ])}}' " >< i class = " fab fa-discord " ></ i > {{ __ ( 'Apply with Discord' )}} </ button >
@ else
2023-02-26 04:28:57 +00:00
< button type = " button " class = " btn btn-dark " onclick = " window.location.href=' { { route('renderApplicationForm', ['vacancySlug' => $position->vacancySlug ])}}' " > {{ __ ( 'Apply' )}} </ button >
2022-10-24 01:04:22 +01:00
@ endif
2020-09-01 00:29:58 +01:00
@ endguest
2020-04-27 07:28:00 +01:00
2023-02-26 04:28:57 +00:00
< button type = " button " class = " btn btn-outline-primary " onclick = " $ ('# { { $position->vacancySlug }}-details').modal('show') " > {{ __ ( 'Learn more' )}} </ button >
2022-10-24 01:04:22 +01:00
2020-05-08 01:45:29 +01:00
</ div >
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
</ div >
2020-04-27 07:28:00 +01:00
</ div >
2020-05-08 01:45:29 +01:00
@ endforeach
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
@ else
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
< div class = " col-md-4 offset-md-4 " >
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
< div class = " card " >
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
< div class = " card-header " >
2020-04-27 07:28:00 +01:00
2023-06-29 22:51:46 +01:00
< div class = " card-title " >< h4 > {{ __ ( 'There are no open roles' )}} </ h4 ></ div >
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
</ div >
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
< div class = " card-body " >
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
< div class = " alert alert-info " >
2020-04-27 07:28:00 +01:00
2022-03-31 16:39:59 +01:00
< p >< b > {{ __ ( 'Hello There!' )}} </ b ></ p >
2020-05-08 01:45:29 +01:00
< p >
2023-06-29 22:51:46 +01:00
{{ __ ( ' We are currently not recruiting any new staff members at the moment . If you\ ' d like to apply , check out our community\ ' s
announcement channel for news when a new role opens . ' )}}
2020-05-08 01:45:29 +01:00
</ p >
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
</ div >
2020-04-27 07:28:00 +01:00
2020-05-08 01:45:29 +01:00
</ div >
2020-04-27 07:28:00 +01:00
</ div >
</ div >
2020-05-08 01:45:29 +01:00
@ endif
2020-04-27 07:28:00 +01:00
</ div >
< div class = " row mt-5 mb-5 " >
< div class = " col text-center " >
2023-06-29 22:51:46 +01:00
{ !! __ ( " <h3>The :appName management team usually responds to applications within :timeTakenAppl hours.</hr> " , [ 'appName' => config ( 'app.name' ), 'timeTakenAppl' => '48' ]) !! }
< p > { !! __ ( 'If you have any questions about your web portal account, application or literally anything else, please visit our <a href=":supportURL" target="_blank">support site</a>, or <a href="mailto::supportEmail">send us an email</a>.' , [ 'supportURL' => config ( 'app.support_url' ), 'supportEmail' => config ( 'app.support_email' )]) !! } </ p >
2020-04-27 07:28:00 +01:00
</ div >
</ div >
</ div >
</ main >
<!-- Main Layout -->
@ stop