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

{{ __('recruitment.job_postings') }} @can('candidate interviews show') {{ __('recruitment.today_interviews') }}@endcan @can('candidate hiring approvals show') {{ __('recruitment.hiring_approvals') }} {{ __('recruitment.offer_approvals') }}@endcan @can('candidates create')@endcan
@if(session('message'))
{{ session('message') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($errors->any() && !$showCandidateModal && !$showInterviewModal && !$showOfferModal)
{{ $errors->first() }}
@endif
@forelse($candidates as $candidate) @empty@endforelse
#{{ __('Name') }}{{ __('Phone') }}{{ __('Email') }}{{ __('Position') }}{{ __('Status') }}{{ __('Actions') }}
{{ $candidate->id }} {{ $candidate->name }} {{ $candidate->phone }}{{ $candidate->email }} {{ $candidate->positionDetails?->name ?? $candidate->position }} {{ __('recruitment.statuses.'.$candidate->workflow_status) }}
@can('candidates edit')@endcan @if($candidate->cv) {{ __('recruitment.cv') }}@endif @can('candidates edit') @if(auth()->user()->can('candidate interviews show') && $candidate->workflow_status === 'interview_confirmed' && $candidate->latestInterview?->status === 'accepted' && !$candidate->latestInterview?->evaluation) {{ __('recruitment.evaluate_interview') }}@endif @if(in_array($candidate->workflow_status, ['new','interview_declined','interview_no_response','interview_scheduled']))@endif @if(in_array($candidate->workflow_status, ['interview_passed','offer_declined','offer_approval_rejected']))@endif @if(config('recruitment.show_response_test_links') && $candidate->latestJobOffer?->response_token) {{ __('recruitment.accept_offer') }} {{ __('recruitment.decline_offer') }}@endif @if($candidate->workflow_status === 'offer_sent' && $candidate->latestJobOffer?->status === 'sent')@endif @if(in_array($candidate->workflow_status, ['offer_accepted','manager_rejected']))@endif @endcan @if($candidate->user_id && auth()->user()->can('employees show')){{ __('recruitment.employee_file') }}@endif
{{ __('No candidates found.') }}
{{ $candidates->links() }}
@if($workflowConfirmationId) @php($isOfferConfirmation = $workflowConfirmationAction === 'offer_accept')
@endif @if($showCandidateModal)

{{ $isEditMode ? __('recruitment.edit_candidate') : __('recruitment.add_candidate') }}

@endif @if($showInterviewModal)

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

@error('interview_message')

{{ $message }}

@enderror
@endif @if($showOfferModal)

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

@foreach(['basic_salary','housing_allowance','transport_allowance','other_allowance'] as $field)@endforeach
{{ __('recruitment.working_days') }}
@foreach(['saturday','sunday','monday','tuesday','wednesday','thursday','friday'] as $day) @endforeach
@error('working_days'){{ $message }}@enderror

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

@endif