@extends('layouts.careers') @section('title', __('Application status')) @section('content') @php $mainSteps = ['applied', 'shortlisted', 'interview', 'offered', 'hired']; $currentIdx = array_search($application->status, $mainSteps, true); @endphp

{{ __('Application status') }}

{{ $application->jobPosting->title }}

@if(session('message'))
{{ session('message') }}
@endif
{{ \App\Models\RecruitmentJobApplication::statusLabel($application->status) }}
{{ __('Applied') }}: {{ $application->created_at?->format('M j, Y') }}
{{ __('Tracking link') }}
@foreach($mainSteps as $idx => $stepKey) @php $isCurrent = $application->status === $stepKey; $isPast = $currentIdx !== false && $idx < $currentIdx; @endphp
@if($isPast)@else{{ $idx + 1 }}@endif
{{ \App\Models\RecruitmentJobApplication::statusLabel($stepKey) }}
@endforeach
@if($application->status === 'rejected')
{{ __('Unfortunately your application was not successful at this time.') }} @if($application->rejection_reason) ({{ \App\Models\RecruitmentJobApplication::rejectionReasonLabel($application->rejection_reason) }}) @endif
@endif
@if($application->interviews->isNotEmpty())
{{ __('Interviews') }}
@foreach($application->interviews as $int)
{{ $int->scheduled_at->format('l, M j, Y \a\t H:i') }} @if($int->completed_at) {{ __('Completed') }} @else {{ __('Scheduled') }} @endif @if($int->location_or_link)
{{ $int->location_or_link }}
@endif
@endforeach
@endif
{{ __('Browse other positions') }}
@endsection