@extends('candidate.account')
@php
$myJobs = \App\Models\jobs_applicants::where("user_id",auth()->user()->id)
->get();
$jobs = \App\Models\Jobs::where("quantity",">",0)->whereRAW("STR_TO_DATE(hire_date,'%d-%m-%Y') >= now() ")->get();
@endphp
@section('cv_content')
@if ($myJobs->count() == 0)
@include('users.candidate.jobs.anotherjobs')
@else
Mis postulaciones
@endif
@foreach ($myJobs as $item)
@php
$job = ($item->job) ? $item->job : $item->last_requisition;
@endphp
@include('users.candidate.jobs.myjobgrid',["applicant" => $item,"job" => $job])
@endforeach
@endsection