@php $main_other_contact = $main_other_contact; $main_new_contact = $main_new_contact; $contact_to_addresses = $main_other_contact->contacts_to_addresses; $main_other_contacts_relations = $main_other_contact->new_contacts_relations; $contactData = [ 'Title' => $main_other_contact->title, 'First Name' => $main_other_contact->first_name, 'Middle Name' => $main_other_contact->middle_name, 'Surname' => $main_other_contact->surname, 'Name' => $main_other_contact->name, 'Date of Birth' => $main_other_contact->date_of_birth ? Carbon\Carbon::parse($main_other_contact->date_of_birth)->format('Y-m-d') : null, 'Gender' => $main_other_contact->gender, 'Pronoun' => $main_other_contact->pronoun, 'Nationality' => $main_other_contact->nationality, 'Ethnicity' => $main_other_contact->ethnicity, 'Religion' => $main_other_contact->religion, 'Sexual Orientation' => $main_other_contact->sexual_orientation, 'Marital Status' => $main_other_contact->marital_status, 'Disability Status' => $main_other_contact->disability_status, 'Dietary Preferences' => $main_other_contact->dietary_preferences, 'Profession' => $main_other_contact->profession, 'Regulatory Body' => $main_other_contact->profession_regulatory_body, 'Professional Registration No' => $main_other_contact->professional_registration_no, 'Passport No' => $main_other_contact->passport_no, 'Driver’s License No' => $main_other_contact->driver_license_no, 'Patient ID No' => $main_other_contact->patient_identification_no, 'Personal Mobile No' => $main_other_contact->personal_mobile_no, 'Work Mobile No' => $main_other_contact->work_mobile_no, 'Home Telephone No' => $main_other_contact->home_telephone_no, 'Work Telephone No' => $main_other_contact->work_telephone_no, 'Fax No' => $main_other_contact->fax_no, 'Facebook' => $main_other_contact->facebook, 'Instagram' => $main_other_contact->instagram, 'Twitter' => $main_other_contact->twitter, 'LinkedIn' => $main_other_contact->linkedin, 'YouTube' => $main_other_contact->youtube, 'Home Address' => $main_other_contact->home_address, 'Work Address' => $main_other_contact->work_address, 'Temporary Address' => $main_other_contact->temporary_address, 'Billing Address' => $main_other_contact->billing_address, 'Shipping Address' => $main_other_contact->shipping_address, 'Alternate Address' => $main_other_contact->alternate_address, 'Work Emails' => $main_other_contact->work_emails ? json_decode($main_other_contact->work_emails, true) : [], 'Personal Emails' => $main_other_contact->personal_emails ? json_decode($main_other_contact->personal_emails, true) : [], 'Work Phones' => $main_other_contact->work_mobiles ? json_decode($main_other_contact->work_mobiles, true) : [], 'Personal Phones' => $main_other_contact->personal_mobiles ? json_decode($main_other_contact->personal_mobiles, true) : [], ]; @endphp
Personal
{{ $value }}
@endif @if ($matchFound) @endif{{ Carbon\Carbon::parse($main_other_contact->date_of_birth)->format('Y-m-d') }}
{{ $main_other_contact->nhs_no }}
@if ($main_other_contact->nhs_no === $main_new_contact->nhs_no) @endif{{ $main_other_contact->ethnicity }}
@if ($main_other_contact->ethnicity === $main_new_contact->ethnicity) @endif{{ $main_other_contact->sexual_orientation }}
@if ($main_other_contact->sexual_orientation === $main_new_contact->sexual_orientation) @endif@if ($main_other_contact->marital_status == 'single') Single @elseif ($main_other_contact->marital_status == 'married') Married @elseif ($main_other_contact->marital_status == 'separated') Separated @elseif ($main_other_contact->marital_status == 'divorced') Divorced @endif
@if ($main_other_contact->marital_status === $main_new_contact->marital_status) @endif@if ($main_other_contact->gender == 'male') Male @elseif ($main_other_contact->gender == 'female') Female @elseif ($main_other_contact->gender == 'other') Other @endif
@if ($main_other_contact->gender === $main_new_contact->gender) @endif{{ $main_other_contact->pronoun }}
@if ($main_other_contact->pronoun === $main_new_contact->pronoun) @endif{{ $main_other_contact->religion }}
@if ($main_other_contact->religion === $main_new_contact->religion) @endif{{ $main_other_contact->passport_no }}
@if ($main_other_contact->passport_no === $main_new_contact->passport_no) @endif{{ $main_other_contact->driver_license_no }}
@if ($main_other_contact->driver_license_no === $main_new_contact->driver_license_no) @endif{{ $main_other_contact->profession }}
@if ($main_other_contact->profession === $main_new_contact->profession) @endif{{ $main_other_contact->registration_no }}
@if ($main_other_contact->registration_no === $main_new_contact->registration_no) @endif{{ $main_other_contact->other }}
@if ($main_other_contact->other === $main_new_contact->other) @endifContact Info
{{ $work_email }}
@endforeach{{ $personal_email }}
@endforeach{{ $main_other_contact->other_link }}
Address
| Name | Adress | Tag |
|---|---|---|
| {{ $contact_to_address->new_contact_address->name }} | {{ $contact_to_address->new_contact_address->address }} | @if (isset($contact_to_address->new_contact_address->address_tag)) @if ($contact_to_address->new_contact_address->address_tag == 'current_address') Current address @elseif ($contact_to_address->new_contact_address->address_tag == 'past_address') Past address @elseif ($contact_to_address->new_contact_address->address_tag == 'work_address') Work address @elseif ($contact_to_address->new_contact_address->address_tag == 'home_address') Home address @endif @endif |
Associations
| Contact | Relation | Reverse Relation |
|---|---|---|
| {{ $main_other_contacts_relation->target_contact->name }} | {{ $main_other_contacts_relation->relation }} | {{ $main_other_contacts_relation->reverse_relation }} |