@extends('layouts.navigation') @section('styles') @endsection @section('content')
@php $cv_info = $info['cvinfo']; @endphp
@php $id_user_candidate = auth()->user()->user_candidate_id; $candidate = \App\Models\CandidatesDocumentation::where("candidate_id", $id_user_candidate)->where("type", 'profile_image')->first(); @endphp @if(!is_null($candidate))
@endif

{{$cv_info->firstname." ".$cv_info->lastname." ".$cv_info->mother_lastname}}

{{ !is_null($cv_info->title) ? $cv_info->title : "" }}

Información básica

@php $cumpleanos = new DateTime($cv_info->borndate); $hoy = new DateTime(); $edad = $hoy->diff($cumpleanos); @endphp
@if(!is_null($cv_info->area))
@php if(!is_null($cv_info->area)){ $area = \App\Models\JobsAreas::where("id",$cv_info->area)->first(); if(!is_null($area)){ $area_name = $area->name; } } @endphp
@endif @if(!is_null($cv_info->subarea))
@php if(!is_null($cv_info->subarea)){ $subarea = \App\Models\JobsSubareas::where("id",$cv_info->subarea)->first(); if(!is_null($subarea)){ $subarea_name = $subarea->name; } } @endphp
@endif @if(!is_null($cv_info->salary))
@endif
@if(!is_null($cv_info->goal))

Acerca de mi

{{ $cv_info->goal }}

@endif @if(!is_null($info['cvexperience']))

Experiencia laboral

@foreach ($info['cvexperience'] as $cexp) @php $end_date = ''; if($cexp->actual_working == '1'){ $end_date = 'Actual trabajo'; }else{ $end_date = $cexp->date_end; } @endphp
{{$cexp->date_start." / ".$end_date}}

{{$cexp->title}}

{{$cexp->company.". ".$cexp->locality.", ".$cexp->state}}

{{$cexp->description}}

@endforeach
@endif @if(!is_null($info['cveducation']))

Preparación académica

@foreach ($info['cveducation'] as $cedu) @php $end_date = ''; if($cedu->actual_study == '1'){ $end_date = 'Sigo estudiando'; }else{ $end_date = $cedu->date_end; } @endphp
{{$cedu->date_start." / ".$end_date}}

{{$cedu->degree}}

{{$cedu->school.". ".$cedu->locality.", ".$cedu->state}}

@php $lvl = \App\Models\CandidatesDegrees::where("id",$cedu->career)->first()->name; @endphp

{{$lvl}}

@endforeach
@endif @if(!is_null($info['cvskills']))

Habilidades

@foreach ($info['cvskills'] as $cski) @php $txt = ''; $calculo = 0; if($cski->years<1){ $txt='Menos de 1 año' ; $calculo = .5*10; }else if($cski->years==10){ $txt = '10 años o más'; $calculo = intval($cski->years)*10; }else{ if($cski->years>1){ $txt = $cski->years.' años'; }else{ $txt = $cski->years.' año'; } $calculo = intval($cski->years)*10; } @endphp {{$cski->skill." / ". $txt}}
{{$txt}}
@endforeach
@endif @if(!is_null($info['cvlanguages']))

Idiomas

@foreach ($info['cvlanguages'] as $clan) @php $txt = ''; $valor = 0; switch ($clan->nivel) { case 1: $txt='Nativo' ; $valor = 100; break; case 2: $txt='Básico' ; $valor = 30; break; case 3: $txt='Intermedio' ; $valor = 70; break; case 4: $txt='Avanzado' ; $valor = 100; break; } @endphp {{$clan->language." / ". $txt}}
{{$txt}}
@endforeach
@endif @if(!is_null($info['cvcertificates']))

Certificados / Diplomados

@foreach ($info['cvcertificates'] as $ccert) @php $end_date = ''; if($ccert->validity == '1'){ $end_date = 'Sin fecha de vencimiento'; }else{ $end_date = $ccert->date_end; } @endphp
{{$ccert->date_start." / ".$end_date}}

{{$ccert->title}}

{{$ccert->description}}

@endforeach
@endif
@endsection @section('scripts') @endsection