2020-07-11 01:43:59 +00:00
|
|
|
@extends('adminlte::page')
|
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
@section('title', config('app.name') . ' | ' . __('messages.application_m.all_apps'))
|
2020-07-11 01:43:59 +00:00
|
|
|
|
|
|
|
@section('content_header')
|
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
<h4>{{__('messages.application_m.title')}} / {{__('messages.application_m.all_apps')}}</h4>
|
2020-07-11 01:43:59 +00:00
|
|
|
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('js')
|
|
|
|
|
|
|
|
<script type="text/javascript" src="/js/app.js"></script>
|
2020-07-12 16:01:33 +00:00
|
|
|
<x-global-errors></x-global-errors>
|
2020-07-11 01:43:59 +00:00
|
|
|
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
|
2020-07-12 16:01:33 +00:00
|
|
|
@foreach($applications as $application)
|
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
<x-modal id="deletionConfirmationModal-{{ $application->id }}" modal-label="deletion-{{ $application->id }}" modal-title="{{__('messages.application_m.modal_confirm')}}" include-close-button="true">
|
2020-07-12 16:01:33 +00:00
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
<h4><i class="fas fa-exclamation-triangle"></i> {{__('messages.application_m.really_delete')}}</h4>
|
2020-07-12 16:01:33 +00:00
|
|
|
<p>
|
2020-09-01 13:40:41 +00:00
|
|
|
{{__('messages.application_m.delete_action_warning', ['consequence' => '<b>' . __('messages.application_m.consequence_irreversible') .'</b>'])}}
|
2020-07-12 16:01:33 +00:00
|
|
|
</p>
|
2020-09-01 13:40:41 +00:00
|
|
|
<p>{{__('messages.application_m.delete_explainer')}}</p>
|
2020-07-12 16:01:33 +00:00
|
|
|
|
|
|
|
<x-slot name="modalFooter">
|
|
|
|
|
|
|
|
<form method="POST" action="{{ route('deleteApplication', ['application' => $application->id]) }}">
|
|
|
|
@csrf
|
|
|
|
@method('DELETE')
|
2020-09-01 13:40:41 +00:00
|
|
|
<button type="submit" class="btn btn-danger"><i class="fas fa-check-double"></i> {{__('messages.reusable.confirm_plain')}}</button>
|
2020-07-12 16:01:33 +00:00
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</x-slot>
|
|
|
|
|
|
|
|
</x-modal>
|
|
|
|
|
|
|
|
@endforeach
|
2020-07-11 01:43:59 +00:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="callout callout-info">
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-3">
|
|
|
|
|
|
|
|
<img src="/img/applications_all.svg" alt="Applications illustration" class="img-responsive" width="200px"/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col">
|
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
<h3><i class="fas fa-info-circle"></i> {{__('messages.application_m.all_apps_header')}}</h3>
|
2020-07-11 01:43:59 +00:00
|
|
|
<p>
|
2020-09-01 13:40:41 +00:00
|
|
|
{{__('messages.application_m.all_apps_exp')}}
|
2020-07-11 01:43:59 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row mt-5">
|
|
|
|
|
|
|
|
<div class="col">
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<!-- MAIN CONTENT - APPS AND PICS -->
|
|
|
|
|
|
|
|
<div class="card-header">
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-3">
|
2020-09-01 13:40:41 +00:00
|
|
|
<h3>{{__('messages.application_m.all_apps')}}</h3>
|
2020-07-11 01:43:59 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col">
|
|
|
|
|
|
|
|
<div class="navbtn right" style="whitespace: nowrap">
|
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
<button type="button" class="btn btn-sm btn-primary" onclick="window.location.href='{{ route('staffPendingApps') }}'"><i class="far fa-folder-open"></i> {{__('messages.application_m.outstanding_apps')}}</button>
|
|
|
|
<button type="button" class="btn btn-sm btn-primary" onclick="window.location.href='{{ route('pendingInterview') }}'"><i class="fas fa-microphone-alt"></i> {{__('messages.application_m.interview_q')}}</button>
|
|
|
|
<button type="button" class="btn btn-sm btn-primary" onclick="window.location.href='{{ route('peerReview') }}'"><i class="fas fa-search"></i> {{__('messages.application_m.p_review')}}</button>
|
2020-07-11 01:43:59 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-3 center">
|
|
|
|
|
|
|
|
<img src="/img/placeholders.svg" alt="Placeholder illustration" class="img-responsive" width="200px"/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col">
|
|
|
|
|
|
|
|
@if (!$applications->isEmpty())
|
|
|
|
|
|
|
|
<table class="table table-borderless" style="whitespace: nowrap">
|
|
|
|
|
|
|
|
<thead>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
2020-09-01 13:40:41 +00:00
|
|
|
<th>{{__('messages.application_m.applicant')}}</th>
|
|
|
|
<th>{{__('messages.reusable.status')}}</th>
|
|
|
|
<th>{{__('messages.reusable.date')}}</th>
|
|
|
|
<th>{{__('messages.reusable.actions')}}</th>
|
2020-07-11 01:43:59 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
@foreach($applications as $application)
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>{{ $application->id }}</td>
|
|
|
|
<td><a href="{{ route('showSingleProfile', ['user' => $application->user->id]) }}">{{ $application->user->name }}</a></td>
|
|
|
|
<td>
|
|
|
|
@switch($application->applicationStatus)
|
|
|
|
|
|
|
|
@case('STAGE_SUBMITTED')
|
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
<span class="badge badge-primary"><i class="far fa-clock"></i> {{__('messages.application_m.outstanding_subm')}}</span>
|
2020-07-11 01:43:59 +00:00
|
|
|
@break
|
|
|
|
|
|
|
|
@case('STAGE_PEERAPPROVAL')
|
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
<span class="badge badge-warning"><i class="fas fa-vote-yea"></i> {{__('messages.application_m.p_review')}}</span>
|
2020-07-11 01:43:59 +00:00
|
|
|
@break
|
|
|
|
|
|
|
|
@case('STAGE_INTERVIEW')
|
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
<span class="badge badge-warning"><i class="fas fa-microphone-alt"></i> {{__('messages.application_m.interview_p')}}</span>
|
2020-07-11 01:43:59 +00:00
|
|
|
|
|
|
|
@break
|
|
|
|
|
|
|
|
@case('STAGE_INTERVIEW_SCHEDULED')
|
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
<span class="badge badge-warning"><i class="far fa-clock"></i>{{__('messages.application_m.interview_s')}}</span>
|
2020-07-11 01:43:59 +00:00
|
|
|
|
|
|
|
@break
|
|
|
|
|
|
|
|
@case('APPROVED')
|
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
<span class="badge badge-success"><i class="fas fa-check"></i> {{__('messages.application_m.approved')}}</span>
|
2020-07-11 01:43:59 +00:00
|
|
|
|
|
|
|
@break
|
|
|
|
|
|
|
|
@case('DENIED')
|
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
<span class="badge badge-danger"><i class="fas fa-times"></i> {{__('messages.application_m.denied')}}</span>
|
2020-07-11 01:43:59 +00:00
|
|
|
|
|
|
|
@break;
|
|
|
|
|
|
|
|
@default
|
2020-09-01 13:40:41 +00:00
|
|
|
<span class="badge badge-secondary"><i class="fas fa-question-circle"></i> {{__('messages.application_m.denied')}}</span>
|
2020-07-11 01:43:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
@endswitch
|
|
|
|
</td>
|
|
|
|
<td>{{ $application->created_at }}</td>
|
|
|
|
<td>
|
2020-09-01 13:40:41 +00:00
|
|
|
<button type="button" class="btn btn-success btn-sm" onclick="window.location.href='{{ route('showUserApp', ['application' => $application->id]) }}'"><i class="fas fa-eye"></i> {{__('messages.reusable.view')}}</button>
|
|
|
|
<button type="button" class="btn btn-danger btn-sm ml-2" onclick="$('#deletionConfirmationModal-{{ $application->id }}').modal('show')"><i class="fa fa-trash"></i> {{__('messages.reusable.delete')}}</button>
|
2020-07-11 01:43:59 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
@else
|
|
|
|
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
<h3><i class="fas fa-question-circle"></i> {{__('messages.application_m.no_apps')}}</h3>
|
2020-07-11 01:43:59 +00:00
|
|
|
<p>
|
2020-09-01 13:40:41 +00:00
|
|
|
{{__('messages.application_m.no_apps_exp')}}
|
2020-07-11 01:43:59 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- end main content card -->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if (!$applications->isEmpty() && isset($applications->links))
|
|
|
|
|
|
|
|
<div class="card-footer">
|
|
|
|
|
|
|
|
{{ $applications->links }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|
2020-07-16 05:46:20 +00:00
|
|
|
|
|
|
|
@section('footer')
|
|
|
|
@include('breadcrumbs.dashboard.footer')
|
|
|
|
@stop
|