@php $candidate = $record->candidate; $position = $candidate->positionDetails?->name ?? $candidate->position; $isAccepting = $decision === 'accepted'; @endphp

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

{{ $type === 'interview' ? __('recruitment.interview_invitation_subject') : __('recruitment.job_offer_subject') }}
{{ __('recruitment.selected_decision') }}: {{ $isAccepting ? __('recruitment.acceptance') : __('recruitment.rejection') }}

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

{{ __('Name') }}{{ $candidate->name }}
{{ __('Position') }}{{ $position }}
@if($type === 'interview')
{{ __('recruitment.interview_date') }}{{ $record->scheduled_at->format('Y-m-d') }}
{{ __('recruitment.interview_time') }}{{ $record->scheduled_at->format('H:i') }}
{{ __('recruitment.location') }}{{ $record->location }}
{{ __('recruitment.floor') }}{{ $record->floor ?: '—' }}
{{ __('recruitment.interview_invitation_message') }}{{ $record->message }}
@else @php($totalSalary = $record->basic_salary + $record->housing_allowance + $record->transport_allowance + $record->other_allowance)
{{ __('recruitment.start_date') }}{{ $record->start_date->format('Y-m-d') }}
{{ __('recruitment.work_type') }}{{ __('recruitment.work_types.'.$record->work_type) }}
@if($record->salary_display_mode === 'total_only')
{{ __('recruitment.total_salary') }}{{ number_format($totalSalary, 2) }}
@else
{{ __('recruitment.basic_salary') }}{{ number_format($record->basic_salary, 2) }}
{{ __('recruitment.housing_allowance') }}{{ number_format($record->housing_allowance, 2) }}
{{ __('recruitment.transport_allowance') }}{{ number_format($record->transport_allowance, 2) }}
{{ __('recruitment.other_allowance') }}{{ number_format($record->other_allowance, 2) }}
{{ __('recruitment.total_salary') }}{{ number_format($totalSalary, 2) }}
@endif
{{ __('recruitment.contract_type') }}{{ $record->contract_type ?: '—' }}
{{ __('recruitment.contract_duration') }}{{ $record->contract_duration ?: '—' }}
{{ __('recruitment.working_days') }}{{ collect($record->working_days ?? [])->map(fn ($day) => __('recruitment.weekdays.'.$day))->join('، ') ?: '—' }}
{{ __('recruitment.working_hours') }}{{ $record->working_hours ?: '—' }}
{{ __('recruitment.annual_leave_days') }}{{ $record->annual_leave_days ?? '—' }}
{{ __('recruitment.probation_days') }}{{ $record->probation_days ?? '—' }}
@if($record->terms)
{{ __('recruitment.offer_terms') }}{{ $record->terms }}
@endif @endif
@if($alreadyResponded)
{{ __('recruitment.response_already_recorded') }} — {{ __('recruitment.current_response_status') }}: {{ $type === 'interview' ? __('recruitment.interview_statuses.'.$record->status) : __('recruitment.offer_statuses.'.$record->status) }}
@else
@csrf
{{ $isAccepting ? __('recruitment.rejection') : __('recruitment.acceptance') }}
@endif