2020-04-30 16:38:54 +01:00
@ extends ( 'adminlte::page' )
2022-03-19 18:39:59 +00:00
@ section ( 'title' , config ( 'app.name' ) . ' | ' . __ ( 'Applications' ))
2020-04-30 16:38:54 +01:00
@ section ( 'content_header' )
2022-03-19 18:39:59 +00:00
< h4 > {{ __ ( 'My account' )}} / {{ __ ( 'Applications' )}} </ h4 >
2020-04-30 16:38:54 +01:00
@ stop
2020-05-08 08:10:25 +01:00
@ section ( 'js' )
2020-06-27 00:32:33 +01:00
< x - global - errors ></ x - global - errors >
2020-05-08 08:10:25 +01:00
@ stop
2020-04-30 16:38:54 +01:00
@ section ( 'content' )
< div class = " row " >
< div class = " col " >
< div class = " callout callout-warning " >
2022-03-19 18:39:59 +00:00
< h5 > {{ __ ( 'Application Process' )}} </ h5 >
2020-04-30 16:38:54 +01:00
2022-03-19 18:39:59 +00:00
< p > {{ __ ( 'Please allow up to three days for your application to be processed. Your application will be reviewed by every team member, and will move up in stages.' )}} </ p >
< p > {{ __ ( " If an interview is scheduled, you'll need to open your application here and confirm the time, date, and location assigned for you. " )}} </ p >
2020-04-30 16:38:54 +01:00
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col " >
< div class = " card " >
< div class = " card-header " >
2022-03-19 18:39:59 +00:00
< h3 class = " card-title " > {{ __ ( 'My Ongoing Applications' )}} </ h3 >
2020-04-30 16:38:54 +01:00
</ div >
<!-- /. card - header -->
< div class = " card-body p-0 " > <!-- move to dedi css -->
2020-05-13 22:47:51 +01:00
@ if ( ! $applications -> isEmpty ())
< table class = " table " style = " white-space: nowrap " >
< thead >
< tr >
< th style = " width: 10px " > #</th>
2022-03-19 18:39:59 +00:00
< th > {{ __ ( 'Applicant' )}} </ th >
< th > {{ __ ( 'Application Date' )}} </ th >
< th > {{ __ ( 'Last updated' )}} </ th >
< th style = " width: 40px " > {{ __ ( 'Status' )}} </ th >
< th style = " width: 40px " > {{ __ ( 'Actions' )}} </ th >
2020-05-13 22:47:51 +01:00
</ tr >
</ thead >
< tbody >
2020-04-30 16:38:54 +01:00
2020-05-11 16:44:47 +01:00
@ foreach ( $applications as $application )
< tr >
< td > {{ $application -> id }} </ td >
< td > {{ Auth :: user () -> name }} </ td >
< td > {{ $application -> created_at }} </ td >
< td > {{ $application -> updated_at }} </ td >
< td >
@ switch ( $application -> applicationStatus )
@ case ( 'STAGE_SUBMITTED' )
2022-03-19 18:39:59 +00:00
< span class = " badge badge-success " >< i class = " fas fa-paper-plane " ></ i > {{ __ ( 'Submitted' )}} </ span >
2020-05-11 16:44:47 +01:00
@ break
@ case ( 'STAGE_PEERAPPROVAL' )
2022-03-19 18:39:59 +00:00
< span class = " badge badge-warning " >< i class = " fas fa-users " ></ i > {{ __ ( 'Peer Approval' )}} </ span >
2020-05-11 16:44:47 +01:00
@ break
@ case ( 'STAGE_INTERVIEW' )
2022-03-19 18:39:59 +00:00
< span class = " badge badge-info " >< i class = " fa fa-microphone-alt " ></ i > {{ __ ( 'Interview' )}} </ span >
2020-05-11 16:44:47 +01:00
@ break
@ case ( 'STAGE_INTERVIEW_SCHEDULED' )
2022-03-19 18:39:59 +00:00
< span class = " badge badge-warning " >< i class = " fa fa-clock " ></ i > {{ __ ( 'Interview Scheduled' )}} </ span >
2020-05-11 16:44:47 +01:00
@ break
@ case ( 'APPROVED' )
2022-03-19 18:39:59 +00:00
< span class = " badge badge-success " >< i class = " fa fa-check-double " ></ i > {{ __ ( 'Approved' )}} </ span >
2020-05-11 16:44:47 +01:00
@ break
@ case ( 'DENIED' )
2022-03-19 18:39:59 +00:00
< span class = " badge badge-danger " >< i class = " fa fa-ban " ></ i > < b > {{ __ ( 'Denied' )}} </ b ></ span >
2020-05-11 16:44:47 +01:00
@ break
@ default
2022-03-19 18:39:59 +00:00
< span class = " badge badge-danger " >< i class = " fa fa-question " ></ i > {{ __ ( 'Unknown' )}} </ span >
2020-05-11 16:44:47 +01:00
@ endswitch
</ td >
< td >
2022-03-19 18:39:59 +00:00
< button type = " button " class = " btn btn-success " onclick = " window.location.href=' { { route('showUserApp', ['application' => $application->id ])}}' " >< i class = " fa fa-eye " ></ i > {{ __ ( 'View' )}} </ button >
2020-05-11 16:44:47 +01:00
</ td >
</ tr >
@ endforeach
2020-04-30 16:38:54 +01:00
2020-05-13 22:47:51 +01:00
</ tbody >
</ table >
2020-04-30 16:38:54 +01:00
2020-05-13 22:47:51 +01:00
@ else
< div class = " alert alert-warning " >
2022-03-19 18:39:59 +00:00
< p >< i class = " fa fa-info-circle " ></ i > < b > {{ __ ( 'Nothing to show' )}} </ b ></ p >
< p > {{ __ ( " You currently have no applications to display. If you're eligible, you may apply once every month. " )}} </ p >
2020-05-13 22:47:51 +01:00
</ div >
@ endif
2020-04-30 16:38:54 +01:00
</ div >
<!-- /. card - body -->
< div class = " card-footer " >
2022-03-19 18:39:59 +00:00
< button type = " button " class = " btn btn-default mr-2 " onclick = " window.location.href=' { { route('dashboard')}}' " > {{ __ ( 'Go back' )}} </ button >
2020-04-30 16:38:54 +01:00
</ div >
</ div >
</ div >
</ div >
@ stop
2020-07-16 06:46:20 +01:00
@ section ( 'footer' )
@ include ( 'breadcrumbs.dashboard.footer' )
@ stop