2020-04-29 03:20:00 +01:00
@ extends ( 'adminlte::page' )
2020-09-01 12:43:39 +01:00
@ section ( 'title' , config ( 'app.name' ))
2020-04-29 03:20:00 +01:00
@ section ( 'content_header' )
2022-10-24 01:04:22 +01:00
< h1 > {{ config ( 'app.name' )}} / {{ __ ( 'Dashboard' )}} </ h1 >
2020-04-29 03:20:00 +01:00
@ stop
2020-06-27 04:49:55 +01:00
@ section ( 'js' )
2023-02-26 01:01:18 +00:00
< script src = " { { asset('js/dashboard.js') }} " ></ script >
2021-09-04 00:44:54 +01:00
< x - global - errors ></ x - global - errors >
2020-06-27 04:49:55 +01:00
@ endsection
2020-04-29 03:20:00 +01:00
@ section ( 'content' )
2020-05-03 00:45:29 +01:00
2021-09-04 00:44:54 +01:00
@ if ( $demoActive )
< div class = " alert alert-info " >
< p class = " font-weight-bold " >< i class = " fas fa-info-circle " ></ i > {{ __ ( 'Reminder' )}} </ p >
< p > {{ __ ( 'The application is in demo mode.' )}} </ p >
2022-03-19 06:28:38 +00:00
< p > {{ __ ( " Demo mode disables some app features in order to preserve it's integrity for everyone who wants to test it. Here's what's disabled: " ) }} </ p >
2021-09-04 00:44:54 +01:00
< ul >
< li > {{ __ ( 'All user account operations such as: ' ) }}
< ul >
< li > {{ __ ( 'Password change' ) }} </ li >
< li > {{ __ ( 'Two factor authentication' ) }} </ li >
< li > {{ __ ( 'Email change' ) }} </ li >
< li > {{ __ ( 'Account deletion' ) }} </ li >
</ ul >
</ li >
< li > {{ __ ( 'Administrative actions such as:' ) }}
< ul >
< li > {{ __ ( 'Account suspension' )}} </ li >
< li > {{ __ ( 'Termination' ) }} </ li >
< li > {{ __ ( 'Account deletion' ) }} </ li >
< li > {{ __ ( 'Privilege editing' ) }} </ li >
</ ul >
</ li >
< li > {{ __ ( 'Team file uploads' ) }} </ li >
< li > {{ __ ( 'Developer mode' )}} </ li >
< li > {{ __ ( 'Admin logs' ) }} </ li >
</ ul >
2022-02-07 19:00:48 +00:00
< p > {{ __ ( 'To keep everyone safe, IP addresses are censored everywhere in the app, and they\'re also not collected during registration. The IP address lookup feature is also disabled.' ) }} </ p >
< p > {{ __ ( 'Only system administrators can disable demo mode - it cannot be disabled via app settings.' ) }} </ p >
< p class = " font-weight-bold " > {{ __ ( 'Note! The database is wiped every six hours during demo mode.' ) }} </ p >
2021-09-04 00:44:54 +01:00
</ div >
@ endif
2020-07-11 05:34:12 +01:00
@ if ( ! $vacancies -> isEmpty ())
@ foreach ( $vacancies as $vacancy )
2022-03-19 06:28:38 +00:00
< x - modal id = " { { $vacancy->vacancySlug . '-details' }} " modal - label = " { { $vacancy->vacancySlug . '-details-label' }} " modal - title = " { { __('Vacancy details')}} " include - close - button = " true " >
2020-07-11 05:34:12 +01:00
@ if ( is_null ( $vacancy -> vacancyFullDescription ))
< div class = " alert alert-warning " >
2022-03-19 06:28:38 +00: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-19 06:28:38 +00:00
{{ __ ( 'This opening does not have any details yet.' )}}
2020-07-11 05:34:12 +01:00
</ p >
</ div >
@ else
2022-10-24 01:04:22 +01:00
@ if ( $vacancy -> requiresDiscord )
< p class = " text-muted " >< i class = " fas fa-info-circle " ></ i > {{ __ ( 'Note: to apply for this position, you must sign in with your Discord account beforehand.' ) }} </ p >
@ endif
2020-07-11 05:34:12 +01:00
{ !! $vacancy -> vacancyFullDescription !! }
< p class = " text-sm text-muted " >
2022-03-19 06:28:38 +00:00
{{ __ ( 'Last updated @ :vacancyUpdatedTimeValue' , [ 'vacancyUpdatedTimeValue' => $vacancy -> updated_at ]) }}
2020-07-11 05:34:12 +01:00
</ p >
@ endif
< x - slot name = " modalFooter " ></ x - slot >
</ x - modal >
@ endforeach
@ endif
2022-02-07 20:02:46 +00:00
@ if ( ! Auth :: user () -> isStaffMember ())
2020-05-03 00:45:29 +01:00
2022-02-07 20:02:46 +00:00
< div class = " row mb-3 " >
< div class = " col " >
@ if ( $isEligibleForApplication )
< x - alert id = " eligibleAlertCard " alert - type = " success " title = " { { __('Account status notification') }} " icon = " fa-info-circle " >
< p > {{ __ ( 'You do not have any active applications, therefore your account is authorized to submit an application at this time. Feel free to submit one when you\'re ready.' ) }} </ p >
</ x - alert >
@ else
< x - alert id = " eligibleAlertCard " alert - type = " warning " title = " { { __('Account status notification') }} " icon = " fa-exclamation-triangle " >
< p > {{ __ ( 'Since you already submitted an application, you will not be able to submit a new one. If our team did not approve your application, you will be able submit another one in :daysRemaining days.' , [ 'daysRemaining' => $eligibilityDaysRemaining ]) }} </ p >
< x - button id = " viewApplications " link = " { { route('showUserApps') }} " type = " button " color = " info " icon = " fas fa-arrow-right " >
{{ __ ( 'My applications' ) }}
</ x - button >
</ x - alert >
@ endif
2020-06-27 04:49:55 +01:00
</ div >
</ div >
2020-05-03 00:45:29 +01:00
2020-06-27 04:49:55 +01:00
< div class = " row " >
< div class = " col-lg-3 col-3 offset-3 " >
<!-- small box -->
< div class = " small-box bg-info " >
< div class = " inner " >
2021-09-04 00:44:54 +01:00
< h3 > {{ $totalNewSingle ? ? 0 }} </ h3 >
2020-05-03 00:45:29 +01:00
2022-03-19 06:28:38 +00:00
< p > {{ __ ( 'Ongoing apps' )}} </ p >
2020-06-27 04:49:55 +01:00
</ div >
< div class = " icon " >
< i class = " fas fa-sync " ></ i >
</ div >
2022-10-24 01:04:22 +01:00
< a href = " { { route('showUserApps') }} " class = " small-box-footer " > {{ __ ( 'Open' )}} < i class = " fas fa-arrow-circle-right " ></ i ></ a >
2020-06-27 04:49:55 +01:00
</ div >
</ div >
<!-- ./ col -->
< div class = " col-lg-3 col-6 " >
<!-- small box -->
< div class = " small-box bg-danger " >
< div class = " inner " >
2021-09-04 00:44:54 +01:00
< h3 > {{ $totalDeniedSingle ? ? 0 }} </ h3 >
2020-06-27 04:49:55 +01:00
2022-03-19 06:28:38 +00:00
< p > {{ __ ( 'Denied apps' )}} </ p >
2020-06-27 04:49:55 +01:00
</ div >
< div class = " icon " >
< i class = " fas fa-times " ></ i >
</ div >
2022-03-19 06:28:38 +00:00
< a href = " { { route('showUserApps') }} " class = " small-box-footer " > {{ __ ( 'Open' )}} < i class = " fas fa-arrow-circle-right " ></ i ></ a >
2020-06-27 04:49:55 +01:00
</ div >
</ div >
</ div >
2020-05-03 00:45:29 +01:00
2020-06-27 04:49:55 +01:00
@ else
2020-05-03 00:45:29 +01:00
2020-06-27 04:49:55 +01:00
< div class = " row " >
< div class = " col-lg-3 col-6 " >
<!-- small box -->
< div class = " small-box bg-info " >
< div class = " inner " >
< h3 > {{ $totalUserCount }} </ h3 >
2020-05-03 00:45:29 +01:00
2022-03-19 06:28:38 +00:00
< p > {{ __ ( 'Total Users + Staff' )}} </ p >
2020-06-27 04:49:55 +01:00
</ div >
< div class = " icon " >
< i class = " fas fa-users " ></ i >
</ div >
@ if ( Auth :: user () -> hasRole ( 'admin' ))
2020-05-03 00:45:29 +01:00
2022-03-19 06:28:38 +00:00
< a href = " { { route('registeredPlayerList') }} " class = " small-box-footer " > {{ __ ( 'Open' )}} < i class = " fas fa-arrow-circle-right " ></ i ></ a >
2020-12-20 05:55:03 +00:00
@ else
< a class = " small-box-footer " >< i class = " fas " ></ i ></ a >
2020-06-27 04:49:55 +01:00
@ endif
</ div >
</ div >
<!-- ./ col -->
< div class = " col-lg-3 col-6 " >
<!-- small box -->
< div class = " small-box bg-danger " >
< div class = " inner " >
< h3 > {{ $totalDenied }} </ h3 >
2022-03-19 06:28:38 +00:00
< p > {{ __ ( 'Denied apps' )}} </ p >
2020-06-27 04:49:55 +01:00
</ div >
< div class = " icon " >
< i class = " fas fa-user-slash " ></ i >
</ div >
2020-12-20 05:55:03 +00:00
@ if ( Auth :: user () -> hasRole ( 'admin' ))
2022-03-19 06:28:38 +00:00
< a href = " { { route('allApplications') }} " class = " small-box-footer " > {{ __ ( 'Open' )}} < i class = " fas fa-arrow-circle-right " ></ i ></ a >
2020-12-20 05:55:03 +00:00
@ else
< a class = " small-box-footer " >< i class = " fas " ></ i ></ a >
@ endif
2020-06-27 04:49:55 +01:00
</ div >
</ div >
<!-- ./ col -->
< div class = " col-lg-3 col-6 " >
<!-- small box -->
< div class = " small-box bg-success " >
< div class = " inner " >
< h3 > {{ $totalNewApplications }} </ h3 >
2022-03-19 06:28:38 +00:00
< p > {{ __ ( 'New applications' )}} </ p >
2020-06-27 04:49:55 +01:00
</ div >
< div class = " icon " >
< i class = " fas fa-plus " ></ i >
</ div >
2020-12-20 05:55:03 +00:00
@ if ( Auth :: user () -> hasRole ( 'admin' ))
2022-03-19 06:28:38 +00:00
< a href = " { { route('allApplications') }} " class = " small-box-footer " > {{ __ ( 'Open' )}} < i class = " fas fa-arrow-circle-right " ></ i ></ a >
2020-12-20 05:55:03 +00:00
@ else
< a class = " small-box-footer " >< i class = " fas " ></ i ></ a >
@ endif
2020-06-27 04:49:55 +01:00
</ div >
</ div >
<!-- ./ col -->
< div class = " col-lg-3 col-6 " >
<!-- small box -->
< div class = " small-box bg-warning " >
< div class = " inner " >
< h3 > {{ $totalPeerReview }} </ h3 >
2022-03-19 06:28:38 +00:00
< p > {{ __ ( 'Vote backlog' )}} </ p >
2020-06-27 04:49:55 +01:00
</ div >
< div class = " icon " >
< i class = " fas fa-vote-yea " ></ i >
</ div >
2020-12-20 05:55:03 +00:00
< a class = " small-box-footer " >< i class = " fas " ></ i ></ a >
2020-06-27 04:49:55 +01:00
</ div >
</ div >
<!-- ./ col -->
2020-05-03 00:45:29 +01:00
</ div >
2020-06-27 04:49:55 +01:00
@ endif
2020-05-10 06:36:42 +01:00
2021-09-04 00:44:54 +01:00
@ if ( ! $vacancies -> isEmpty () && $isEligibleForApplication && ! Auth :: user () -> isStaffMember ())
2020-06-27 04:49:55 +01:00
< div class = " row mt-5 mb-5 " >
< div class = " col text-center " >
2022-03-19 06:28:38 +00:00
< h4 > {{ __ ( 'Available vacancies' )}} </ h4 >
2020-06-27 04:49:55 +01:00
< hr />
2020-05-10 06:36:42 +01:00
</ div >
2020-06-27 04:49:55 +01:00
2020-05-10 06:36:42 +01:00
</ div >
2020-06-27 04:49:55 +01:00
@ endif
2020-05-10 06:36:42 +01:00
2020-06-27 04:49:55 +01:00
< div class = " row " >
@ if ( ! $vacancies -> isEmpty () && $isEligibleForApplication && ! Auth :: user () -> isStaffMember ())
@ foreach ( $vacancies as $vacancy )
< div class = " col { { ( $vacancy->count () == 1) ? '-3 offset-3' : '' }} " >
< div class = " card card-outline card-primary " >
< div class = " card-header " >
< h3 class = " card-title " > {{ $vacancy -> vacancyName }} </ h3 >
< div class = " card-tools " >
< button type = " button " class = " btn btn-tool " data - card - widget = " collapse " >< i class = " fas fa-minus " ></ i >
</ button >
</ div >
<!-- /. card - tools -->
</ div >
<!-- /. card - header -->
< div class = " card-body " style = " display: block; " >
{{ $vacancy -> vacancyDescription }}
</ div >
<!-- /. card - body -->
< div class = " card-footer text-center " >
2022-10-24 01:04:22 +01:00
@ if ( $vacancy -> requiresDiscord && ! Auth :: user () -> hasDiscordConnection ())
< button type = " button " style = " background-color: #5865F2 " class = " btn btn-primary btn-sm " onclick = " window.location.href=' { { route('renderApplicationForm', ['vacancySlug' => $vacancy->vacancySlug ]) }}' " >< i style = " color: white " class = " fab fa-discord " ></ i > {{ __ ( 'Apply with Discord' )}} </ button >
@ else
< button type = " button " class = " btn btn-primary btn-sm " onclick = " window.location.href=' { { route('renderApplicationForm', ['vacancySlug' => $vacancy->vacancySlug ]) }}' " > {{ __ ( 'Apply' )}} </ button >
@ endif
2022-03-19 06:28:38 +00:00
< button type = " button " class = " btn btn-warning btn-sm " onclick = " $ ('# { { $vacancy->vacancySlug }}-details').modal('show') " > {{ __ ( 'Learn More' )}} </ button >
2020-06-27 04:49:55 +01:00
</ div >
</ div >
</ div >
@ endforeach
@ endif
</ div >
2020-04-29 03:20:00 +01:00
@ stop
2020-07-16 06:46:20 +01:00
@ section ( 'footer' )
@ include ( 'breadcrumbs.dashboard.footer' )
@ stop