@extends('admin.layouts.app') @section('contentSection')
@if($contact->image) @else @endif

{{$contact->name}}

Contact Details:

Email: {{$contact->email ?? 'N/A'}}

Phone: {{$contact->phone ?? 'N/A'}}

Address: {{$contact->address ?? 'N/A'}}

Postal Address: {{$contact->postal_address ?? 'N/A'}}


Marketing:

Gender: @if($contact->gender == 1) Male @elseif($contact->gender == 2) Female @else N/A @endif

Date of Birth: {{$contact->dob ?? 'N/A'}}

Enquiry Source: {{$contact->enquiry_source ? $contact->enquiry_source->name : 'N/A'}}

Enquiry Method: {{$contact->enquiry_method ?? 'N/A'}}

Lead Source: {{$contact->source ? $contact->source->name : 'N/A'}}

Postcode: {{$contact->post_code ?? 'N/A'}}

Last Contact: {{$contact->last_contact ?? 'N/A'}}

@csrf
@foreach($contact->contact_documents as $document) @endforeach
File Name Date Uploaded Added By
{{$document->title}} {{Carbon\Carbon::parse($document->created_at)->format('F j, Y, g:i a')}} {{$document->user ? $document->user->name : 'N/A'}}
Related Properties

@foreach($contact->contact_listings as $cl) @endforeach
Property Assign To Relation
{{$cl->listing ? $cl->listing->title : 'N/A'}} {{$cl->assignee ? $cl->assignee->name : 'N/A'}} {{$cl->relation ?? 'N/A'}}
Related Contacts

@foreach($contact->contact_relations as $cr) @endforeach
Related Contact Relation
{{$cr->related_contact ? $cr->related_contact->name : 'N/A'}} {{$cr->relation ?? 'N/A'}}
Related Requirements

@foreach($contact->contact_reqs as $rr) @endforeach
Related Requirement
{{$rr->requirement ? $rr->requirement->title : 'N/A'}}
ID Verification Status

Fill out ID information before verifying ID. All fields marked with asterisk * are required to verify

@csrf
Basic Information:
Legal Address:
@csrf
Stream

@foreach($contact->contact_streams as $stream) @endforeach
Type Property Note
{{$stream->sub_type}} {{$stream->listing ? $stream->listing->title : 'N/A'}} {!! $stream->note ?? 'N/A' !!}
Appointments

@foreach($contact->appointments as $appointment) @endforeach
Title Start End
{{$appointment->title}} {{Carbon\Carbon::parse($appointment->start)->format('F j, Y, g:i a')}} {{Carbon\Carbon::parse($appointment->end)->format('F j, Y, g:i a')}}
Reminders

@foreach($contact->contact_reminders as $reminder) @endforeach
Type Due Date Priority Property Description
{{$reminder->sub_type}} {{$reminder->date ?? 'N/A'}} @if($reminder->priority == 1) High @endif @if($reminder->priority == 2) Medium @endif @if($reminder->priority == 3) Low @endif {{$reminder->listing ? $reminder->listing->title : 'N/A'}} {!! $reminder->note ?? 'N/A' !!}
Feedback

@foreach($contact->contact_feedbacks as $feedback) @endforeach
Type Date Agent Feedback
{{$feedback->sub_type}} {{$feedback->date ?? 'N/A'}} {{$feedback->agent ? $feedback->agent->name : 'N/A'}} {!! $feedback->note ?? 'N/A' !!}
Contact Logs

@foreach($contact->logs as $log) @endforeach
Log
{{$log->message}} by {{$log->user->name}}
@endsection @section('pageSpecificScripts') @include('admin.contacts.modals.editProfileModal') @include('admin.contacts.modals.editCDModal') @include('admin.contacts.modals.editMarketingModal') @include('admin.contacts.modals.addStreamModal') @include('admin.contacts.modals.addAppointmentModal') @include('admin.contacts.modals.addReminderModal') @include('admin.contacts.modals.addFeedbackModal') @include('admin.contacts.modals.addRpModal') @include('admin.contacts.modals.addRcModal') @include('admin.contacts.modals.addRrModal') @if (Session::has('success')) @endif @endsection