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

{{__('Application Management')}} / {{__("Viewing :userNameValue's application", ['userNameValue' => $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')

{{__('Last updated')}} @ {{$application->appointment->updated_at}}

@endcanany @endif @role('hiringManager')

{{__('Are you sure you want to deny this application? Please keep in mind that this user will only be allowed to apply 30 days after their first application.')}}

{{__('This action cannot be undone.')}}

@csrf @method('PATCH')

{{ __('Caution') }}

{{__('Are you sure you want to cancel this appointment? The user will be notified of this via email, and you will be able to reschedule.')}}

{{ __('Before you can cancel this appointment, you\'ll need to provide a reason in writing. ') }}

@method('DELETE') @csrf
@endhasrole
× {{__('If this form has been updated, new fields and updated questions will not show up here!')}}
{{$formStructure->formName}}
@foreach($structuredResponses['responses'] as $content)
{{$content['title']}}

{!! GrahamCampbell\Markdown\Facades\Markdown::convertToHtml($content['response']) !!}

@endforeach
{{__('Contextual information')}}

{{__('Applicant Name')}} {{$application->user->name}}

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

{{__('Applicant IP Address')}} {{ (!$shouldCollect) ? __('0.0.0.0 (censored)') : $application->user->originalIP }}

@endif

{{__('Application Date')}} {{$application->created_at}}

{{__('Last updated')}}{{$application->updated_at}}

{{__('Applying for')}} {{$vacancy->vacancyName}}

{{__('Current Status')}} @switch($application->applicationStatus) @case('STAGE_SUBMITTED') {{__('Outstanding')}} @break @case('STAGE_PEERAPPROVAL') {{__('Peer Approval')}} @break @case('STAGE_INTERVIEW') {{__('Pending Interview')}} @break @case('STAGE_INTERVIEW_SCHEDULED') {{__('Interview Scheduled')}} @break @case('APPROVED') {{__('Approved')}} @break @case('DENIED') {{__('Denied')}} @break @endswitch

@if ($application->applicationStatus == 'STAGE_SUBMITTED' && Auth::user()->hasRole('hiringManager'))
{{__('Decision & Moderation Tools')}}
@csrf @method('PATCH')
@endif
@if ($application->applicationStatus == 'STAGE_INTERVIEW' && Auth::user()->hasRole('hiringManager'))
@csrf

{{__('Click to choose a date')}}

{{__('Embedded in-house video conferencing coming soon, powered by Jitsi Meet')}}

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

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

{{__('Interview Scheduled for:')}} {{$application->appointment->appointmentDate}}

{{__('Status')}}: {{Str::ucfirst(Str::lower($application->appointment->appointmentStatus))}}

{{__('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'))

{{__("If you weren't present during this meeting, you can view the shared meeting notepad to help you make a decision.")}}

{{__('You may vote on as many applications as needed; However, you can only vote once per application.')}}

{{__('Votes carry no weight based on rank. This system has been designed with fairness and ease of use in mind.')}}

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

{{__('Comments')}} ({{$comments->count()}})

@if ($comments->isEmpty())

{{__('There are no comments here! Comments are only visible to staff members. Be the first to share your input! Commenting may help with decision-making when time comes to vote for an application.')}}

@endif
@if (!$comments->isEmpty()) @foreach($comments as $comment)
@if($comment->user->profile->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') {{__( @else {{__( @endif
@csrf

{{__('Commenting as :usernameValue', ['usernameValue' => Auth::user()->name ])}}

0/600 {{__(' max characters')}}

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