if ($total_cv <= 0) {
        $session->message("<div class='error'>" . format_lang('error', 'cv_zero') . "</div>");
        redirect_to(BASE_URL . "employer/credits/");
        die;
    }
}
$id = $_GET['id'];
$smarty->assign('id', $id);
$employee_id = $_GET['u'];
$smarty->assign('employee_id', $employee_id);
$cv_setting = new CVSetting();
$cv_setting->id = $cv_id = $id;
$cv_setting->fk_employee_id = $employee_id;
/** update cv views */
$cv_setting->update_no_views();
$cv_details = $cv_setting->cv_review_by_employer();
$cv_status = $cv_details->cv_status;
$smarty->assign('cv_status', $cv_status);
if (empty($cv_details->year_experience) || $cv_details->year_experience == 0) {
    $cv_details->year_experience = 0;
}
$experiences = Experience::find_by_id($cv_details->year_experience);
$exper = !empty($experiences) ? $experiences->experience_name : format_lang('none');
$smarty->assign('exper', $exper);
$educations = Education::find_by_id($cv_details->highest_education);
$educ = !empty($educations) ? $educations->education_name : format_lang('none');
$smarty->assign('educ', $educ);
$get_salary = format_lang('select', 'salary');
$salary = !empty($cv_details->salary_range) ? $get_salary[$cv_details->salary_range] : format_lang('none');
$smarty->assign('salary', $salary);
$get_NoYes = format_lang('select', 'NoYes');