@extends('layouts.head_office_app') @section('title', 'Head office Settings') @section('sub-header')
Details Timeline Intelligence Coming Soon Matches History Coming Soon
@endsection @section('content') @php $custom_data_types = get_active_contact_data_types(); $fieldTypeMap = [ 'gender' => 'radio', 'marital_status' => 'radio', 'sexual_orientation' => 'text', 'ethnicity' => 'text', 'date_of_birth' => 'date', ]; @endphp @if (isset($new_contact))
@csrf

Personal

@if (isset($new_contact->date_of_birth))
@endif @if (isset($new_contact->nhs_no))
@endif @if (isset($new_contact->ethnicity))
@endif @if (isset($new_contact->sexual_orientation))
@endif @if (isset($new_contact->marital_status))
marital_status == 'single') checked @endif>
marital_status == 'married') checked @endif>
marital_status == 'separated') checked @endif>
marital_status == 'divorced') checked @endif>
@endif @if (isset($new_contact->gender))
gender == 'male') checked @endif>
gender == 'female') checked @endif>
gender == 'other') checked @endif>
@endif @if (isset($new_contact->pronoun))
@endif @if (isset($new_contact->religion))
@endif @if (isset($new_contact->passport_no))
@endif @if (isset($new_contact->driver_license_no))
@endif @if (isset($new_contact->profession))
@endif @if (isset($new_contact->registration_no))
@endif @if (isset($new_contact->other))
@endif

Contact Info

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

Address

Associations

@if (isset($new_contacts_relations) && count($new_contacts_relations) > 0) @foreach ($new_contacts_relations as $index => $new_contacts_relation)
@endforeach @endif

Group

Tags

Groups

@livewire('contact-tags', ['contact_id' => $new_contact->id])

Assign To

@if (!empty($new_contacts)) @foreach ($new_contacts as $contact) @if ($new_contact->id != $contact->id) @endif @endforeach @endif
@php $comments = $new_contact_comments; @endphp @foreach ($comments as $key => $comment) @include('head_office.contacts.view_comments', compact('comment')) @endforeach
@include('head_office.contacts.contact_comments', [ 'comment' => null, 'parent' => null, 'remove_backdrop' => true, ])
@endif {{-- --}} @endsection @section('scripts') @if (Session::has('success')) @elseif(Session::has('error')) @endif @endsection