Linked Contacts

@if (isset($data) && count($data->get_all_matching_contacts()) > 0) @foreach ($data->get_all_matching_contacts() as $match_contact) @php $other_contact = $match_contact->get_other_matched_contact( $data->id, ); @endphp @if (isset($other_contact)) @php $contact_to_addresses = $other_contact->contacts_to_addresses; $other_contacts_relations = $other_contact->new_contacts_relations; @endphp @else
No match found
@endif @endforeach
Matched with % Match Action

Personal

@if (isset($other_contact->date_of_birth))

{{ Carbon\Carbon::parse($other_contact->date_of_birth)->format('Y-m-d') }}

@endif @if (isset($other_contact->nhs_no))

{{ $other_contact->nhs_no }}

@if ($other_contact->nhs_no === $data->nhs_no) @endif
@endif @if (isset($other_contact->ethnicity))

{{ $other_contact->ethnicity }}

@if ($other_contact->ethnicity === $data->ethnicity) @endif
@endif @if (isset($other_contact->sexual_orientation))

{{ $other_contact->sexual_orientation }}

@if ($other_contact->sexual_orientation === $data->sexual_orientation) @endif
@endif @if (isset($other_contact->marital_status))

@if ($other_contact->marital_status == 'single') Single @elseif($other_contact->marital_status == 'married') Married @elseif($other_contact->marital_status == 'separated') Separated @elseif ($other_contact->marital_status == 'divorced') Divorced @endif

@if ($other_contact->marital_status === $data->marital_status) @endif
@endif @if (isset($other_contact->gender))

@if ($other_contact->gender == 'male') Male @elseif($other_contact->gender == 'female') Female @elseif ($other_contact->gender == 'other') Other @endif

@if ($other_contact->gender === $data->gender) @endif
@endif @if (isset($other_contact->pronoun))

{{ $other_contact->pronoun }}

@if ($other_contact->pronoun === $data->pronoun) @endif
@endif @if (isset($other_contact->religion))

{{ $other_contact->religion }}

@if ($other_contact->religion === $data->religion) @endif
@endif @if (isset($other_contact->passport_no))

{{ $other_contact->passport_no }}

@if ($other_contact->passport_no === $data->passport_no) @endif
@endif @if (isset($other_contact->driver_license_no))

{{ $other_contact->driver_license_no }}

@if ($other_contact->driver_license_no === $data->driver_license_no) @endif
@endif @if (isset($other_contact->profession))

{{ $other_contact->profession }}

@if ($other_contact->profession === $data->profession) @endif
@endif @if (isset($other_contact->registration_no))

{{ $other_contact->registration_no }}

@if ($other_contact->registration_no === $data->registration_no) @endif
@endif @if (isset($other_contact->other))

{{ $other_contact->other }}

@if ($other_contact->other === $data->other) @endif
@endif

Contact Info

@if (isset($other_contact->work_emails) && json_decode($other_contact->work_emails, true) != null && count(json_decode($other_contact->work_emails, true)) > 0)
@foreach (json_decode($other_contact->work_emails, true) as $work_email)

{{ $work_email }}

@endforeach
@endif @if (isset($other_contact->personal_emails) && json_decode($other_contact->personal_emails, true) != null && count(json_decode($other_contact->personal_emails, true)) > 0)
@foreach (json_decode($other_contact->personal_emails, true) as $personal_email)

{{ $personal_email }}

@endforeach
@endif @if (isset($other_contact->work_mobiles) && json_decode($other_contact->work_mobiles, true) != null && count(json_decode($other_contact->work_mobiles, true)) > 0)
@foreach (json_decode($other_contact->work_mobiles, true) as $work_mobile)
@endforeach
@endif @if (isset($other_contact->personal_mobiles) && json_decode($other_contact->personal_mobiles, true) != null && count(json_decode($other_contact->personal_mobiles, true)) > 0)
@foreach (json_decode($other_contact->personal_mobiles, true) as $personal_mobile)
@endforeach
@endif @if (isset($other_contact->home_telephones) && json_decode($other_contact->home_telephones, true) != null && count(json_decode($other_contact->home_telephones, true)) > 0)
@foreach (json_decode($other_contact->home_telephones, true) as $home_telephone)
@endforeach
@endif @if (isset($other_contact->work_telephones) && json_decode($other_contact->work_telephones, true) != null && count(json_decode($other_contact->work_telephones, true)) > 0)
@foreach (json_decode($other_contact->work_telephones, true) as $work_telephone)
@endforeach
@endif @if (isset($other_contact->facebook)) @endif @if (isset($other_contact->instagram)) @endif @if (isset($other_contact->twitter)) @endif @if (isset($other_contact->other_link)) @endif

Address

@if (isset($contact_to_addresses) && count($contact_to_addresses) > 0) @foreach ($contact_to_addresses as $contact_to_address) @endforeach @endif

Associations

@if (isset($other_contacts_relations) && count($other_contacts_relations) > 0) @foreach ($other_contacts_relations as $index => $other_contacts_relation) @endforeach @endif
{{ $match_contact->match }}%
Merge | Different Person
@else

No matching contacts yet!

@endif