@php $lasthistory = json_decode($lasthistories); $antecedants_data = json_decode($lasthistory->antecedants_data); if(isset($antecedants_data->verification_date)){ $verification_date = $antecedants_data->verification_date; } else { $verification_date = ''; } $candidate_data = json_decode($lasthistory->candidate_data); if(isset($candidate_data->latitude)){ $candidate_latitude = $candidate_data->latitude; } else { $candidate_latitude = ''; } if(isset($candidate_data->longitude)){ $candidate_longitude = $candidate_data->longitude; } else { $candidate_longitude = ''; } if(isset($candidate_data->full_address)){ $candidate_full_address = $candidate_data->full_address; } else { $candidate_full_address = ''; } if(isset($candidate_data->stayed_from)){ $candidate_stayed_from = $candidate_data->stayed_from; } else { $candidate_stayed_from = ''; } if(isset($candidate_data->stayed_to)){ $candidate_stayed_to = $candidate_data->stayed_to; } else { $candidate_stayed_to = ''; } if(isset($antecedants_data->severity)){ $severity = $antecedants_data->severity; } else { $severity = ''; } if(isset($antecedants_data->conclusion)){ $conclusion = $antecedants_data->conclusion; } else { $conclusion = ''; } if(isset($antecedants_data->lat)){ $lat = $antecedants_data->lat; } else { $lat = ''; } if(isset($antecedants_data->long)){ $long = $antecedants_data->long; } else { $long = ''; } if(isset($antecedants_data->address->value)){ $address = $antecedants_data->address->value; } else { $address = ''; } if(isset($antecedants_data->address->match_status)){ $address_match_status = $antecedants_data->address->match_status; } else { $address_match_status = 'MATCHED'; } @endphp