@extends('adminlte::page') @section('title', 'Raspberry Network | Profile') @section('content_header')

Application Management / Viewing {{$application->user->name}}'s Application

@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')
@endhasrole
× Reminder: 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']}}

{{$content['response']}}

@endforeach
Contextual Information

Applicant Name: {{$application->user->name}}

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

Applicant IP Address: {{$application->user->originalIP}}

@endif

Applied On: {{$application->created_at}}

Last acted on:{{$application->updated_at}}

Applying for: {{$vacancy->vacancyName}}

Current Status: @switch($application->applicationStatus) @case('STAGE_SUBMITTED') Outstanding @break @case('STAGE_PEERAPPROVAL') Pending 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())
Such wow, much empty

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($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

Commenting as {{Auth::user()->name}}

0/600 max characters

@endif @endhasanyrole @endsection