@php $lasthistory = json_decode($lasthistories); $antecedants_data = json_decode($lasthistory->antecedants_data); $candidate_data = json_decode($lasthistory->candidate_data); $candidate_document_number = ''; if(isset($candidate_data->document_number)){ $candidate_document_number = $candidate_data->document_number; } $candidate_name_as_per_document = ''; if(isset($candidate_data->name_as_per_document)){ $candidate_name_as_per_document = $candidate_data->name_as_per_document; } $dob_as_per_document = ''; if(isset($candidate_data->dob_as_per_document)){ $dob_as_per_document = $candidate_data->dob_as_per_document; } if(isset($candidate_data->document_front_file)){ $document_front_file_url = $candidate_data->document_front_file; } else { $document_front_file_url = ''; } if(isset($candidate_data->document_back_file)){ $document_back_file_url = $candidate_data->document_back_file; } else { $document_back_file_url = ''; } if(isset($antecedants_data->verification_date)){ $verification_date = $antecedants_data->verification_date; } else { $verification_date = ''; } if(isset($antecedants_data->fileNumber->value)){ $fileNumber = $antecedants_data->fileNumber->value; } else { $fileNumber = ''; } if(isset($antecedants_data->fileNumber->match_status)){ $fileNumber_match_status = $antecedants_data->fileNumber->match_status; } else { $fileNumber_match_status = 'MATCHED'; } if(isset($antecedants_data->dob->value)){ $dob = $antecedants_data->dob->value; } else { $dob = ''; } if(isset($antecedants_data->dob->match_status)){ $dob_match_status = $antecedants_data->dob->match_status; } else { $dob_match_status = 'MATCHED'; } if(isset($antecedants_data->candidate_name->value)){ $candidate_name = $antecedants_data->candidate_name->value; } else { $candidate_name = ''; } if(isset($antecedants_data->candidate_name->match_status)){ $candidate_name_match_status = $antecedants_data->candidate_name->match_status; } else { $candidate_name_match_status = 'MATCHED'; } 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->passport_number->value)){ $passport_number = $antecedants_data->passport_number->value; } else { $passport_number = ''; } if(isset($antecedants_data->passport_number->match_status)){ $passport_number_match_status = $antecedants_data->passport_number->match_status; } else { $passport_number_match_status = 'MATCHED'; } if(isset($antecedants_data->document_number->match_status)){ $document_number_match_status = $antecedants_data->document_number->match_status; } else { $document_number_match_status = 'MATCHED'; } if(isset($antecedants_data->severity_messages_id)){ $severity_messages_id = $antecedants_data->severity_messages_id; } else { $severity_messages_id = ''; } @endphp