@php($showActionColumn = auth()->user()->can('candidates show') || $canManageInterviews)

{{ __('recruitment.personal_interviews') }}

{{ __('Back to List') }}
@if(session('message'))
{{ session('message') }}
@endif
@if($showAll) {{ __('recruitment.showing_all_interviews') }} @else @endif
@if($showAll)@endif@if($showActionColumn)@endif @forelse($interviews as $interview) @php($isExpired = $interview->scheduled_at->isPast() && !$interview->evaluation) @if($showAll)@endif @if($showActionColumn)@endif @empty @endforelse
{{ __('Name') }}{{ __('Position') }}{{ __('recruitment.interview_date') }}{{ __('recruitment.interview_time') }}{{ __('Status') }}{{ __('Actions') }}
{{ $interview->candidate->name }} {{ $interview->candidate->positionDetails?->name ?? $interview->candidate->position }}{{ $interview->scheduled_at->format('Y-m-d') }}{{ $interview->scheduled_at->format('H:i') }}
{{ __('recruitment.interview_statuses.'.$interview->status) }} @if($isExpired) {{ __('recruitment.interview_time_ended') }}@endif
@if(auth()->user()->can('candidates show') && $interview->candidate->cv){{ __('recruitment.view_cv') }}@endif @if(config('recruitment.show_response_test_links') && $interview->response_token && $interview->status !== 'cancelled' && $canManageInterviews) {{ __('recruitment.accept_interview') }} {{ __('recruitment.decline_interview') }}@endif @if($interview->status === 'pending' && $canManageInterviews)@elseif($interview->status === 'accepted' && !$interview->evaluation)@can('candidates edit')@endcan @elseif($interview->evaluation){{ __('recruitment.evaluation_completed') }}@endif @if($isExpired && $canManageInterviews)@endif @if(!$interview->evaluation && $interview->status !== 'cancelled' && $canManageInterviews)@endif
{{ __('recruitment.no_interviews_for_date') }}
@if($rescheduleInterviewId)
@endif @if($cancelInterviewId)
@endif @if($manualConfirmationId)
@endif @if($showEvaluationModal) @php($activeInterview = $interviews->firstWhere('id', $interview_id))
@endif