@extends('adminlte::page') @section('title', config('app.name') . ' | ' . __('messages.view_app.title')) @section('content_header')

{{__('messages.application_m.title')}} / {{__('messages.view_app.viewing_app', ['user' => $application->user->name])}}

@stop @section('css') @stop @section('js') @if (!$canVote && Auth::user()->can('applications.vote') && $application->applicationStatus == 'STAGE_PEERAPPROVAL') @endif @stop @section('content') @if (!is_null($application->appointment)) @canany('applications.view.all', 'appointments.*')
@csrf @method('PATCH')

{{__('messages.last_updated')}} @ {{$application->appointment->updated_at}}

@endcanany @endif @role('hiringManager')

{{__('messages.view_app.deny_confirm')}}

{{__('messages.view_app.deny_confirm_consequence')}}

@csrf @method('PATCH')
@endhasrole
× {{__('messages.view_app.form_updated_alert')}}
{{$formStructure->formName}}
@foreach($structuredResponses['responses'] as $content)
{{$content['title']}}

{{$content['response']}}

@endforeach
{{__('messages.view_app.context_info')}}

{{__('messages.application_m.applicant_name')}} {{$application->user->name}}

@if (Auth::user()->hasRole('hiringManager'))

{{__('messages.view_app.appl_ip')}} {{$application->user->originalIP}}

@endif

{{__('messages.application_m.application_date')}} {{$application->created_at}}

{{__('messages.last_updated')}}{{$application->updated_at}}

{{__('messages.view_app.appl_for')}} {{$vacancy->vacancyName}}

{{__('messages.view_app.currentstatus')}} @switch($application->applicationStatus) @case('STAGE_SUBMITTED') {{__('messages.application_m.outstanding_sm')}} @break @case('STAGE_PEERAPPROVAL') {{__('messages.user.peer_approval')}} @break @case('STAGE_INTERVIEW') {{__('messages.application_m.pending_int')}} @break @case('STAGE_INTERVIEW_SCHEDULED') {{__('messages.application_m.interview_s')}} @break @case('APPROVED') {{__('messages.application_m.approved')}} @break @case('DENIED') {{__('messages.application_m.denied')}} @break @endswitch

@if ($application->applicationStatus == 'STAGE_SUBMITTED' && Auth::user()->hasRole('hiringManager'))
{{__('messages.view_app.decisionmod')}}
@csrf @method('PATCH')
@endif
@if ($application->applicationStatus == 'STAGE_INTERVIEW' && Auth::user()->hasRole('hiringManager'))
@csrf

{{__('messages.view_app.choosedate')}}

{{__('messages.view_app.coming_soon_int')}}

@endif @if ($application->applicationStatus == 'STAGE_INTERVIEW_SCHEDULED')

{{$application->appointment->appointmentDescription}}

{{__('messages.view_app.scheduled_for')}} {{$application->appointment->appointmentDate}}

{{__('messages.reusable.status')}}: {{Str::ucfirst(Str::lower($application->appointment->appointmentStatus))}}

{{__('messages.reusable.platform')}}: {{Str::ucfirst(Str::lower($application->appointment->appointmentLocation))}}

@can('appointments.schedule.edit') @endcan @can('applications.vote') @endcan
@endif @if ($application->applicationStatus == 'STAGE_PEERAPPROVAL' && Auth::user()->can('applications.vote'))

{{__('messages.view_app.vote_explainer.line1')}}

{{__('messages.view_app.vote_explainer.line2')}}

{{__('messages.view_app.vote_explainer.line3')}}

@if($canVote)
@csrf
@csrf
@endif
@endif @can('applications.view.all')
@endcan
@hasanyrole('reviewer|hiringManager|admin') @if (!Auth::user()->is($application->user))

{{__('messages.view_app.comments')}} ({{$comments->count()}})

@if ($comments->isEmpty())

{{__('messages.view_app.no_comments_exp')}}

@endif
@if (!$comments->isEmpty()) @foreach($comments as $comment)
@if($application->user->avatarPreference == 'gravatar') User profile picture @else User profile picture @endif

{{$comment->user->name}} ● {{Carbon\Carbon::parse($comment->created_at)->diffForHumans()}}

{{$comment->text}}
@if(Auth::user()->is($comment->user) || Auth::user()->hasRole('admin')) @endif
@endforeach @endif
@if($application->user->avatarPreference == 'gravatar') User profile picture @else User profile picture @endif
@csrf

{{__('messages.view_app.commenting_as', ['username' => Auth::user()->name ])}}

0/600 {{__('messages.view_app.max_chars')}}

@endif @endhasanyrole @stop @section('footer') @include('breadcrumbs.dashboard.footer') @stop