2020-05-02 05:54:14 +00:00
|
|
|
@extends('adminlte::page')
|
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
@section('title', config('app.name') . ' | ' . __('messages.application_m.int_applications'))
|
2020-05-02 05:54:14 +00:00
|
|
|
|
|
|
|
@section('content_header')
|
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
<h4>{{__('messages.application_m.title')}} / {{__('messages.application_m.interview_q')}}</h4>
|
2020-05-02 05:54:14 +00:00
|
|
|
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col">
|
|
|
|
|
|
|
|
<div class="small-box bg-warning">
|
|
|
|
<div class="inner">
|
2020-05-22 02:49:16 +00:00
|
|
|
<h3>{{$applications->count()}}</h3>
|
2020-09-01 13:40:41 +00:00
|
|
|
<p>{{__('messages.application_m.interview_q')}}</p>
|
2020-05-02 05:54:14 +00:00
|
|
|
</div>
|
|
|
|
<div class="icon">
|
|
|
|
<i class="fas fa-microphone-alt"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col">
|
|
|
|
|
|
|
|
<div class="small-box bg-success">
|
|
|
|
<div class="inner">
|
2020-05-22 02:49:16 +00:00
|
|
|
<h3>{{$finishedCount}}</h3>
|
2020-09-01 13:40:41 +00:00
|
|
|
<p>{{__('messages.application_m.finished_int')}}</p>
|
2020-05-02 05:54:14 +00:00
|
|
|
</div>
|
|
|
|
<div class="icon">
|
|
|
|
<i class="fas fa-check"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col">
|
|
|
|
|
2020-05-02 19:51:36 +00:00
|
|
|
<div class="card">
|
2020-05-02 05:54:14 +00:00
|
|
|
|
2020-05-02 19:51:36 +00:00
|
|
|
<div class="card-header">
|
2020-09-01 13:40:41 +00:00
|
|
|
<div class="card-title"><h3>{{__('messages.application_m.schedule_int')}}</h3></div>
|
2020-05-02 19:51:36 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
@if (!$applications->isEmpty())
|
2020-05-02 19:51:36 +00:00
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
<table class="table" style="white-space: nowrap">
|
|
|
|
|
|
|
|
<thead>
|
2020-05-02 19:51:36 +00:00
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
2020-09-01 13:40:41 +00:00
|
|
|
<th>{{__('messages.application_m.interviewee')}}</th>
|
|
|
|
<th>{{__('messages.reusable.status')}}</th>
|
|
|
|
<th>{{__('messages.reusable.actions')}}</th>
|
2020-05-02 19:51:36 +00:00
|
|
|
</tr>
|
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
</thead>
|
2020-05-02 19:51:36 +00:00
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
<tbody>
|
2020-05-02 19:51:36 +00:00
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
@foreach($applications as $application)
|
2020-05-02 19:51:36 +00:00
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
<tr>
|
|
|
|
<td>{{$application->id}}</td>
|
|
|
|
<td>{{$application->user->name}}</td>
|
2020-09-01 13:40:41 +00:00
|
|
|
<td><span class="badge-warning badge">{{($application->applicationStatus == 'STAGE_INTERVIEW') ? __('messages.application_m.pending_int') : __('messages.application_m.unknown_stat')}}</span></td>
|
2020-05-22 02:49:16 +00:00
|
|
|
<td>
|
2020-09-01 13:40:41 +00:00
|
|
|
<button type="button" class="btn btn-sm btn-success" onclick="window.location.href='{{route('showUserApp', ['application' => $application->id])}}'"><i class="fa fa-eye"></i> {{__('messages.reusable.view')}}</button>
|
|
|
|
<button type="button" class="btn btn-sm btn-warning"><i class="fa fa-clock"></i> {{__('messages.application_m.schedule')}}</button>
|
2020-05-22 02:49:16 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2020-05-02 19:51:36 +00:00
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
@endforeach
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
@else
|
2020-05-02 19:51:36 +00:00
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
<div class="alert alert-danger">
|
2020-05-02 19:51:36 +00:00
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
<b><i class="fa fa-exclamation-triangle"></i> {{__('messages.application_m.no_apps_pending_int')}}</b>
|
|
|
|
<p>{{__('messages.application_m.no_apps_pending_int_exp')}}</p>
|
2020-05-22 02:49:16 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@endif
|
2020-05-02 19:51:36 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col">
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
|
|
|
<div class="card-header">
|
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
<div class="card-title"><h3>{{__('messages.application_m.upcoming_int')}}</h3></div>
|
2020-05-02 19:51:36 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
@if (!$upcomingApplications->isEmpty())
|
|
|
|
<table class="table" style="white-space: nowrap">
|
2020-05-02 19:51:36 +00:00
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
<thead>
|
2020-05-02 19:51:36 +00:00
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<th>#</th>
|
2020-09-01 13:40:41 +00:00
|
|
|
<th>{{__('messages.application_m.interviewee')}}</th>
|
|
|
|
<th>{{__('messages.reusable.status')}}</th>
|
|
|
|
<th>{{__('messages.reusable.datetime')}}</th>
|
|
|
|
<th>{{__('messages.reusable.location')}}</th>
|
|
|
|
<th>{{__('messages.reusable.actions')}}</th>
|
2020-05-02 19:51:36 +00:00
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
</thead>
|
2020-05-02 19:51:36 +00:00
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
<tbody>
|
2020-05-02 19:51:36 +00:00
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
@foreach($upcomingApplications as $upcomingApp)
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>{{$upcomingApp->id}}</td>
|
|
|
|
<td>{{$upcomingApp->user->name}}</td>
|
2020-06-26 23:32:33 +00:00
|
|
|
@if (is_null($upcomingApp->appointment))
|
2020-09-01 13:40:41 +00:00
|
|
|
<td><span class="badge badge-warning"><i class="fa fa-question-circle"></i>{{__('messages.application_m.pending_schedule')}}</span></td>
|
|
|
|
<td>{{__('messages.reusable.none_yet')}}</td>
|
|
|
|
<td><span class="badge badge-warning"><i class="fa fa-question-circle"></i>{{__('messages.application_m.pending_int')}}</span></td>
|
2020-06-26 23:32:33 +00:00
|
|
|
@else
|
|
|
|
<td><span class="badge badge-success"><i class="fa fa-check"></i> {{ucfirst(strtolower($upcomingApp->appointment->appointmentStatus))}}</span></td>
|
|
|
|
<td>{{$upcomingApp->appointment->appointmentDate}}</td>
|
|
|
|
<td><span class="badge badge-success"><i class="fa fa-check"></i> {{ucfirst(strtolower($upcomingApp->appointment->appointmentLocation))}}</span></td>
|
|
|
|
@endif
|
2020-05-22 02:49:16 +00:00
|
|
|
<td>
|
2020-09-01 13:40:41 +00:00
|
|
|
<button type="button" class="btn btn-sm btn-success" onclick="window.location.href='{{route('showUserApp', ['application' => $upcomingApp->id])}}'"><i class="fa fa-eye"></i> {{__('messages.reusable.view_c')}}</button>
|
2020-05-22 02:49:16 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
@endforeach
|
2020-05-02 19:51:36 +00:00
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
</tbody>
|
2020-05-02 19:51:36 +00:00
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
</table>
|
|
|
|
|
|
|
|
@else
|
|
|
|
|
|
|
|
<x-alert alert-type="danger">
|
2020-09-01 13:40:41 +00:00
|
|
|
<p><i class="fa fa-exclamation-triangle"></i><b>{{__('messages.application_m.no_upcoming')}}</b></p>
|
|
|
|
{{__('messages.application_m.no_upcoming_exp')}}
|
2020-05-22 02:49:16 +00:00
|
|
|
</x-alert>
|
|
|
|
|
|
|
|
@endif
|
2020-05-02 19:51:36 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2020-05-02 05:54:14 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2020-05-22 02:49:16 +00:00
|
|
|
<div class="row mr-5">
|
|
|
|
|
|
|
|
<div class="col text-center">
|
|
|
|
|
2020-09-01 13:40:41 +00:00
|
|
|
<button type="button" class="btn btn-success mr-3" onclick="window.location.href='{{route('staffPendingApps')}}'">{{__('messages.application_m.view_outstanding_queue')}}</button>
|
|
|
|
<button type="button" class="btn btn-success mr-3" onclick="window.location.href='{{route('peerReview')}}'">{{__('messages.application_m.view_approval_queue')}}</button>
|
2020-05-22 02:49:16 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2020-05-02 05:54:14 +00:00
|
|
|
@stop
|
2020-07-16 05:46:20 +00:00
|
|
|
|
|
|
|
@section('footer')
|
|
|
|
@include('breadcrumbs.dashboard.footer')
|
|
|
|
@stop
|