@extends('layouts.user-no-nav') @section('page_title', __('Apply for').' '.$job->title) @section('content')
@include('elements.page-navigation-header',[ 'title' => __('Apply'), 'points' => [ ['title' => __('Home'), 'route' => route('home')], ['title' => $job->title, 'route' => route('jobs.get', ['slug' => $job->slug])], ['title' => __('Apply')], ], ]) @include('elements.message-alert',['classes'=>'alert-box pt-0 pb-4'])

{{$job->company ? $job->company->name : __('Company')}}

{{$job->title}}

{{optional($job->type)->name ?: __('Job')}} @if($job->salary) - {{$job->salary}} @endif
@csrf
{{__('Your application')}}

{{__('We will send your candidate profile with this application. You can add a short note for the hiring team.')}}

@php $existingAnswers = optional($existingApplication)->answers ? $existingApplication->answers->keyBy('job_application_question_id') : collect(); @endphp
@if($errors->has('cover_note')) {{$errors->first('cover_note')}} @endif
@if($profile->resume_url)
{{__('CV from your profile')}}
{{$profile->resume_url}}
@else
{{__('Optional for now. Add it here or save it once on your candidate profile.')}} @if($errors->has('resume_url')) {{$errors->first('resume_url')}} @endif
@endif @if($job->applicationQuestions->count())
{{__('Questions from the hiring team')}}

{{__('Your answers are sent with your candidate profile.')}}

@foreach($job->applicationQuestions as $question) @php $answerField = 'answers.'.$question->id; $answerName = 'answers['.$question->id.']'; $answerValue = old($answerField, optional($existingAnswers->get($question->id))->answer); @endphp
@if($errors->has($answerField)) {{$errors->first($answerField)}} @endif
@endforeach @endif
{{__('Back to listing')}}
{{__('Candidate profile')}}

{{$profile->publicHeadline()}}

{{__('CV')}}
@if($profile->resume_url) {{__('Added to profile')}} @else
{{__('Not added yet')}}
@endif
@if($profile->desired_job_titles)
{{__('Target roles')}}
{{implode(', ', $profile->desired_job_titles)}}
@endif @if($profile->desired_locations)
{{__('Locations')}}
{{implode(', ', $profile->desired_locations)}}
@endif @if($profile->desired_skills)
{{__('Skills')}}
@foreach($profile->desired_skills as $skill) {{$skill}} @endforeach
@endif {{__('Edit profile')}}
@if(optional($existingApplication)->id)
{{__('Already applied')}}

{{__('You can update your note and submit again.')}}

{{$existingApplication->candidateStatusLabel()}} {{__('View application')}}
@endif
@endsection