2020-04-30 15:38:54 +00:00
|
|
|
@extends('adminlte::page')
|
|
|
|
|
2020-09-01 17:49:08 +00:00
|
|
|
@section('title', config('app.name') . ' | ' . __('messages.application_m.int_applications'))
|
2020-04-30 15:38:54 +00:00
|
|
|
|
|
|
|
@section('content_header')
|
|
|
|
|
2020-09-01 17:49:08 +00:00
|
|
|
<h4>{{__('messages.reusable.my_acc')}} / {{__('messages.application_m.int_applications')}}</h4>
|
2020-04-30 15:38:54 +00:00
|
|
|
|
|
|
|
@stop
|
|
|
|
|
2020-05-08 07:10:25 +00:00
|
|
|
@section('js')
|
|
|
|
|
2020-06-26 23:32:33 +00:00
|
|
|
<x-global-errors></x-global-errors>
|
2020-05-08 07:10:25 +00:00
|
|
|
|
|
|
|
@stop
|
|
|
|
|
2020-04-30 15:38:54 +00:00
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col">
|
|
|
|
|
|
|
|
<div class="callout callout-warning">
|
2020-09-01 17:49:08 +00:00
|
|
|
<h5>{{__('messages.user.app_process.title')}}</h5>
|
2020-04-30 15:38:54 +00:00
|
|
|
|
2020-09-01 17:49:08 +00:00
|
|
|
<p>{{__('messages.user.app_process.line1')}}</p>
|
|
|
|
<p>{{__('messages.user.app_process.line2')}}</p>
|
2020-04-30 15:38:54 +00:00
|
|
|
</div>
|
|
|
|
|
2020-05-11 15:44:47 +00:00
|
|
|
<div class="alert alert-info">
|
2020-09-01 17:49:08 +00:00
|
|
|
<b><i class="fa fa-info-circle"></i> {{__('messages.user.account_standing')}}</b>
|
2020-05-11 15:44:47 +00:00
|
|
|
|
2020-09-02 19:30:25 +00:00
|
|
|
<p>{{__('messages.user.account_eligibility', ['eligibility' => ($isEligibleForApplication) ? __('messages.eligible') : __('messages.ineligible')])}}</p>
|
2020-05-11 15:44:47 +00:00
|
|
|
|
|
|
|
@if (!$isEligibleForApplication)
|
2020-09-01 17:49:08 +00:00
|
|
|
<p>{{__('messages.user.days_remaining_acc_alt', ['days' => '<b>' . $eligibilityDaysRemaining .'</b>'])}}</p>
|
2020-05-11 15:44:47 +00:00
|
|
|
@endif
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2020-04-30 15:38:54 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col">
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
2020-09-01 17:49:08 +00:00
|
|
|
<h3 class="card-title">{{__('messages.user.my_ongoingapps')}}</h3>
|
2020-04-30 15:38:54 +00:00
|
|
|
</div>
|
|
|
|
<!-- /.card-header -->
|
|
|
|
<div class="card-body p-0"> <!-- move to dedi css -->
|
|
|
|
|
2020-05-13 21:47:51 +00:00
|
|
|
@if (!$applications->isEmpty())
|
|
|
|
|
|
|
|
<table class="table" style="white-space: nowrap">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 10px">#</th>
|
2020-09-01 17:49:08 +00:00
|
|
|
<th>{{__('messages.application_m.applicant')}}</th>
|
|
|
|
<th>{{__('messages.application_m.application_date')}}</th>
|
|
|
|
<th>{{__('messages.last_updated')}}</th>
|
|
|
|
<th style="width: 40px">{{__('messages.reusable.status')}}</th>
|
|
|
|
<th style="width: 40px">{{__('messages.reusable.actions')}}</th>
|
2020-05-13 21:47:51 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2020-04-30 15:38:54 +00:00
|
|
|
|
2020-05-11 15:44:47 +00: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')
|
2020-09-01 17:49:08 +00:00
|
|
|
<span class="badge badge-success"><i class="fas fa-paper-plane"></i> {{__('messages.user.submitted')}}</span>
|
2020-05-11 15:44:47 +00:00
|
|
|
@break
|
|
|
|
|
|
|
|
@case('STAGE_PEERAPPROVAL')
|
2020-09-01 17:49:08 +00:00
|
|
|
<span class="badge badge-warning"><i class="fas fa-users"></i> {{__('messages.user.peer_approval')}}</span>
|
2020-05-11 15:44:47 +00:00
|
|
|
@break
|
|
|
|
|
|
|
|
@case('STAGE_INTERVIEW')
|
2020-09-01 17:49:08 +00:00
|
|
|
<span class="badge badge-info"><i class="fa fa-microphone-alt"></i> {{__('messages.application_m.interview_p')}}</span>
|
2020-05-11 15:44:47 +00:00
|
|
|
@break
|
|
|
|
|
|
|
|
@case('STAGE_INTERVIEW_SCHEDULED')
|
2020-09-01 17:49:08 +00:00
|
|
|
<span class="badge badge-warning"><i class="fa fa-clock"></i> {{__('messages.application_m.interview_s')}}</span>
|
2020-05-11 15:44:47 +00:00
|
|
|
@break
|
|
|
|
|
|
|
|
@case('APPROVED')
|
2020-09-01 17:49:08 +00:00
|
|
|
<span class="badge badge-success"><i class="fa fa-check-double"></i> {{__('messages.application_m.approved')}}</span>
|
2020-05-11 15:44:47 +00:00
|
|
|
@break
|
|
|
|
|
|
|
|
@case('DENIED')
|
2020-09-01 17:49:08 +00:00
|
|
|
<span class="badge badge-danger"><i class="fa fa-ban"></i> <b>{{__('messages.application_m.denied')}}</b></span>
|
2020-05-11 15:44:47 +00:00
|
|
|
@break
|
|
|
|
|
|
|
|
@default
|
2020-09-01 17:49:08 +00:00
|
|
|
<span class="badge badge-danger"><i class="fa fa-question"></i> {{__('messages.application_m.unknown_stat')}}</span>
|
2020-05-11 15:44:47 +00:00
|
|
|
@endswitch
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
2020-09-01 17:49:08 +00:00
|
|
|
<button type="button" class="btn btn-success" onclick="window.location.href='{{route('showUserApp', ['application' => $application->id])}}'"><i class="fa fa-eye"></i> {{__('messages.reusable.view')}}</button>
|
2020-05-11 15:44:47 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
@endforeach
|
2020-04-30 15:38:54 +00:00
|
|
|
|
2020-05-13 21:47:51 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2020-04-30 15:38:54 +00:00
|
|
|
|
2020-05-13 21:47:51 +00:00
|
|
|
@else
|
|
|
|
|
|
|
|
<div class="alert alert-warning">
|
2020-09-01 17:49:08 +00:00
|
|
|
<p><i class="fa fa-info-circle"></i> <b>{{__('messages.user.nothing_to_show')}}</b></p>
|
|
|
|
<p>{{__('messages.user.nothing_to_show_exp')}}</p>
|
2020-05-13 21:47:51 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@endif
|
2020-04-30 15:38:54 +00:00
|
|
|
</div>
|
|
|
|
<!-- /.card-body -->
|
|
|
|
|
|
|
|
<div class="card-footer">
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-default mr-2">Back</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|
2020-07-16 05:46:20 +00:00
|
|
|
@section('footer')
|
|
|
|
@include('breadcrumbs.dashboard.footer')
|
|
|
|
@stop
|