@extends('backoffice.layout.master') @section('setSectionTitle', __('Candidature Ricevute')) @section('setSectionDescription', $job->position) @section('setContent')
{{ __('Dettagli Offerta') }}

{{ __('Posizione') }}: {{ $job->position }}

@if($job->refJobsCategory)

{{ __('Categoria') }}: {{ $job->refJobsCategory->name }}

@endif @if($job->contract_type)

{{ __('Tipo Contratto') }}: @switch($job->contract_type) @case('FULL_TIME_CONTRACT') {{ __('Contratto full-time') }} @break @case('PART_TIME_CONTRACT') {{ __('Contratto part-time') }} @break @case('PROJECT_CONTRACT') {{ __('Contratto a progetto') }} @break @case('ON_CALL_CONTRACT') {{ __('Contratto a chiamata') }} @break @case('APPRENTICESHIP_CONTRACT') {{ __('Contratto di apprendistato') }} @break @case('TEMPORARY_AGENCY_WORK') {{ __('Lavoro tramite agenzia interinale') }} @break @default {{ $job->contract_type }} @endswitch

@endif
@if($job->ral_min || $job->ral_max)

{{ __('RAL') }}: @if($job->ral_min && $job->ral_max) €{{ number_format($job->ral_min, 0, ',', '.') }} - €{{ number_format($job->ral_max, 0, ',', '.') }} @elseif($job->ral_min) Da €{{ number_format($job->ral_min, 0, ',', '.') }} @else Fino a €{{ number_format($job->ral_max, 0, ',', '.') }} @endif

@endif

{{ __('Data Pubblicazione') }}: {{ $job->created_at->format('d/m/Y') }}

{{ __('Totale Candidature') }}: {{ $applications->count() }}

{{ __('Candidati') }}
@if($applications->count() > 0)
@foreach($applications as $application) @php $candidate = $application->refCandidate; $user = $candidate->refUser; $age = $candidate->birth_date ? $candidate->birth_date->age : null; $cv = \App\Models\Candidate\CandidatesFile::where('candidate_id', $candidate->id) ->where('type', 'CURRICULUM_VITAE') ->with('refFile') ->first(); @endphp @endforeach
{{ __('Candidato') }} {{ __('Email') }} {{ __('Telefono') }} {{ __('Età') }} {{ __('Città') }} {{ __('Data Candidatura') }} {{ __('CV') }} {{ __('Azioni') }}
{{ $candidate->first_name }} {{ $candidate->last_name }} {{ $user->email }} @if($candidate->phone) {{ $candidate->phone }} @else {{ __('Non disponibile') }} @endif @if($age) {{ $age }} {{ __('anni') }} @else {{ __('N/D') }} @endif @if($candidate->refResidentAddress && $candidate->refResidentAddress->city) {{ $candidate->refResidentAddress->city }} @if($candidate->refResidentAddress->refLocationCountry)
{{ $candidate->refResidentAddress->refLocationCountry->name }} @endif @else {{ __('Non disponibile') }} @endif
{{ $application->created_at->format('d/m/Y H:i') }}
{{ $application->created_at->diffForHumans() }}
@if($cv && $cv->refFile) {{ __('Scarica CV') }} @else {{ __('CV non disponibile') }} @endif {{ __('Messaggio') }}
@else
{{ __('Nessuna candidatura ricevuta') }}

{{ __('Non hai ancora ricevuto candidature per questa offerta di lavoro.') }}

@endif
@if($applications->hasPages())
@endif
@endsection