@php $lasthistory = json_decode($lasthistories); $candidate_data = json_decode($lasthistory->candidate_data); $antecedants_data = json_decode($lasthistory->antecedants_data); if(isset($candidate_data->current_temprature)){ $ccurrent_temprature = $candidate_data->current_temprature; } else { $ccurrent_temprature = ''; } if(isset($candidate_data->had_symptoms)){ $chad_symptoms = $candidate_data->had_symptoms; } else { $chad_symptoms = ''; } if(isset($candidate_data->tested_positive)){ $ctested_positive = $candidate_data->tested_positive; } else { $ctested_positive = ''; } if(isset($candidate_data->proximate_contact)){ $cproximate_contact = $candidate_data->proximate_contact; } else { $cproximate_contact = ''; } if(isset($candidate_data->confirm_answer)){ $cconfirm_answer = $candidate_data->confirm_answer; } else { $cconfirm_answer = ''; } if(isset($antecedants_data->verification_date)){ $verification_date = $antecedants_data->verification_date; } else { $verification_date = ''; } if(isset($antecedants_data->verification_time)){ $verification_time = $antecedants_data->verification_time; } else { $verification_time = ''; } if(isset($antecedants_data->severity)){ $severity = $antecedants_data->severity; } else { $severity = ''; } if(isset($antecedants_data->current_temprature->value)){ $current_temprature = $antecedants_data->current_temprature->value; } else { $current_temprature = $ccurrent_temprature; } if(isset($antecedants_data->had_symptoms)){ $had_symptoms = $antecedants_data->had_symptoms; } else { $had_symptoms = $chad_symptoms; } if(isset($antecedants_data->tested_positive)){ $tested_positive = $antecedants_data->tested_positive; } else { $tested_positive = $ctested_positive; } if(isset($antecedants_data->proximate_contact)){ $proximate_contact = $antecedants_data->proximate_contact; } else { $proximate_contact = $cproximate_contact; } if(isset($antecedants_data->confirm_answer)){ $confirm_answer = $antecedants_data->confirm_answer; } else { $confirm_answer = $cconfirm_answer; } if(isset($antecedants_data->conclusion)){ $conclusion = $antecedants_data->conclusion; } else { $conclusion = ''; } @endphp Verification Date * Verification Time * Current Temprature * Have you been diagnosed with or had symptoms of COVID-19 in the past 14 days? COVID-19 symptoms include: cough, difficulty breathing or shortness of breath, fever or chills, new loss of taste or smell, muscle or body aches, fatigue, headache, sore throat, congestion or runny nose, nausea, vomiting, or diarrhea. * Have you tested positive for COVID-19 within the past 14 days?* Have you tested positive for COVID-19 within the past 14 days?* I confirm the answer to all the above questions is “YES/NO” for me on this date. * Severity * Conclusion *