2020-05-30 00:20:39 +01:00
@ extends ( 'adminlte::page' )
2020-09-01 12:43:39 +01:00
@ section ( 'title' , config ( 'app.name' ) . ' | ' . __ ( 'messages.devoptions' ))
2020-05-30 00:20:39 +01:00
@ section ( 'content_header' )
2020-09-01 12:43:39 +01:00
< h4 > {{ __ ( 'messages.adm' )}} / {{ __ ( 'messages.devtools' )}} </ h4 >
2020-05-30 00:20:39 +01:00
@ stop
@ section ( 'js' )
< x - global - errors ></ x - global - errors >
@ stop
@ section ( 'content' )
2020-09-01 12:43:39 +01:00
< x - modal id = " confirmForceEventDispatch " modal - label = " confirmForceEventDispatch " modal - title = " { { __('messages.choose_app')}} " include - close - button = " true " >
2020-05-30 00:20:39 +01:00
2021-11-06 15:06:47 +00:00
< p > {{ __ ( 'Please choose an application to force approve' )}} </ p >
< p > {{ __ ( 'Note that this process overrides users\'s votes.' ) }} </ p >
2021-10-30 04:37:10 +01:00
< form method = " POST " id = " forceEval " action = " { { route('devForceApprovalEvent')}} " >
2020-05-30 00:20:39 +01:00
@ csrf
< select name = " application " class = " custom-select " >
@ if ( ! $applications -> isEmpty ())
@ foreach ( $applications as $application )
2020-09-01 12:43:39 +01:00
< option value = " { { $application -> id } } " > {{ __ ( 'messages.appid' )}} {{ $application -> id }} ({{ $application -> user -> name }}) </ option >
2020-05-30 00:20:39 +01:00
@ endforeach
@ else
2020-09-01 12:43:39 +01:00
< option value = " null " disabled > {{ __ ( 'messages.no_valid_app' )}} </ option >
2020-05-30 00:20:39 +01:00
@ endif
</ select >
</ form >
< x - slot name = " modalFooter " >
2020-09-01 12:43:39 +01:00
< button type = " button " class = " btn btn-danger " onclick = " document.getElementById('forceEval').submit() " > {{ __ ( 'messages.dispatch_event' )}} </ button >
2020-05-30 00:20:39 +01:00
</ x - slot >
</ x - modal >
2021-11-06 15:06:47 +00:00
< x - modal id = " confirmDispatchRejection " modal - label = " confirmDispatchRejection " modal - title = " { { __('messages.choose_app')}} " include - close - button = " true " >
< p > {{ __ ( 'Please choose an application to force reject' )}} </ p >
< p > {{ __ ( 'Note that this process overrides users\'s votes, and it also ignores any stages the application may be in.' ) }} </ p >
< form method = " POST " id = " forceRejection " action = " { { route('devForceRejectionEvent')}} " >
@ csrf
< select name = " application " class = " custom-select " >
@ if ( ! $rejectApplications -> isEmpty ())
@ foreach ( $applications as $application )
< option value = " { { $application -> id } } " > {{ __ ( 'messages.appid' )}} {{ $application -> id }} ({{ $application -> user -> name }}) </ option >
@ endforeach
@ else
< option value = " null " disabled > {{ __ ( 'messages.no_valid_app' )}} </ option >
@ endif
</ select >
</ form >
< x - slot name = " modalFooter " >
< button type = " button " class = " btn btn-danger " onclick = " document.getElementById('forceRejection').submit() " > {{ __ ( 'messages.dispatch_event' )}} </ button >
</ x - slot >
</ x - modal >
2020-05-30 00:20:39 +01:00
< div class = " row " >
< div class = " col " >
< div class = " alert alert-warning " >
2020-09-01 12:43:39 +01:00
< i class = " fa fa-exclamation-triangle " ></ i > < b > {{ __ ( 'messages.warn' )}} </ b >
< p > {{ __ ( 'messages.devtools_warn' )}} </ p >
2020-05-30 00:20:39 +01:00
</ div >
</ div >
</ div >
< div class = " row " >
2021-10-30 04:37:10 +01:00
< div class = " col text-center " >
2020-05-30 00:20:39 +01:00
2021-10-30 04:37:10 +01:00
< x - card id = " tools " card - title = " Commands & Actions " footer - style = " text-center " >
2020-05-30 00:20:39 +01:00
< x - slot name = " cardHeader " >
</ x - slot >
2021-11-06 15:06:47 +00:00
< button data - toggle = " tooltip " data - placement = " top " title = " Dispatches an approval event for the selected application " type = " button " class = " btn btn-primary " onclick = " $ ('#confirmForceEventDispatch').modal('show') " >< i class = " fas fa-bullhorn " ></ i > Dispatch approval event </ button >
2021-11-06 15:07:28 +00:00
< button data - toggle = " tooltip " data - placement = " top " title = " Dispatches a rejection event for the selected application " type = " button " class = " btn btn-primary ml-2 " onclick = " $ ('#confirmDispatchRejection').modal('show') " >< i class = " fas fa-bullhorn " ></ i > Dispatch rejection event </ button >
2021-11-06 15:06:47 +00:00
2021-10-30 04:37:10 +01:00
< form name = " evalvotes " method = " post " action = " { { route('devForceEvaluateVotes') }} " class = " d-inline " >
@ csrf
< button data - toggle = " tooltip " data - placement = " top " title = " Counts and processes all backlogged votes, for all applications. " type = " submit " class = " btn btn-primary ml-3 " >< i class = " fas fa-redo " ></ i > Count all votes now </ button >
</ form >
< form name = " purgebans " method = " post " action = " { { route('devPurgeExpired') }} " class = " d-inline " >
@ csrf
@ method ( 'DELETE' )
< button data - toggle = " tooltip " data - placement = " top " title = " Cleans the database of old, expired suspensions, therefore unbanning certain users. " type = " submit " class = " btn btn-primary ml-3 " >< i class = " far fa-trash-alt " ></ i > Purge expired bans </ button >
</ form >
2020-05-30 00:20:39 +01:00
< x - slot name = " cardFooter " >
2020-09-01 12:43:39 +01:00
< p class = " text-muted " > .</ p >
2020-05-30 00:20:39 +01:00
</ x - slot >
</ x - card >
</ div >
</ div >
@ stop
2020-07-16 06:46:20 +01:00
@ section ( 'footer' )
@ include ( 'breadcrumbs.dashboard.footer' )
@ stop