@push('css') @endpush
contact image
{{-- {{ dd($contact); }} --}} {{ $contact['f_name'] }} {{ $contact['m_name'] }} {{ $contact['l_name'] }}

{{ $contact['assign_title'][0] ?? 'Developer' }}

{{ $contact['company'] }}

Converted to Lead: {{ $contact['is_lead'] ? "Yes" : "No" }}

  •   {{ $contact['email'] }}
  • @isset($contact['cell_phone'])
  •   {{ $contact['cell_phone'] }} @endisset @isset($contact['office_phone'])
  •  {{ $contact['office_phone'] }}{{ isset($contact['phone_extension']) ? '-' . $contact['phone_extension'] : '' }}
  • @if ($contact && isset($contact['phones'])) @foreach ($contact['phones'] as $item)
  • @if ($item['phone_type'] === 'phone')   {{ $item['phone_number'] }} @elseif($item['phone_type'] === 'office')   {{ $item['phone_number'] }}{{ isset($item['phone_extension']) ? '-' . $item['phone_extension'] : '' }} @endif
  • @endforeach @endif @endisset @if ($contact['street'] || $contact['city'] || $contact['state'])
  •   {{ trim(($contact['street'] ?? '') . ', ' . ($contact['city'] ?? '') . ', ' . ($contact['state'] ?? '') . ' ' . ($contact['zip'] ?? ''), ', ') }}
  • @endif @if (!empty($contact['website']))
  • {{ $contact['website'] }}
  • @endif

Lead Status {{ $contact['conact_pipeline_status'] }}

Source:

@php // Split the contact_source string by commas and trim whitespace $sourceTags = explode(',', $contact['contact_source'] ?? ''); $sourceTags = array_map('trim', $sourceTags); // Remove any extra whitespace $sourceTagsCount = count($sourceTags); // Count the total number of sources @endphp @foreach ($sourceTags as $index => $tag) @if ($index < 3 && $tag !=='' )
{{ ucfirst($tag) }}
@endif @endforeach @if ($sourceTagsCount > 3) @endif

{{-- Interested --}} @forelse ($contact['intrusted_in_properties'] as $index => $property) {{ $property }} @empty -- @endforelse

Tags: @php // Count the total number of tags $tagsCount = count($contact['tags'] ?? []); @endphp @if(isset($contact['tags'])) @forelse ($contact['tags'] as $index => $tag) @if ($index < 3 && $tag !=='' )
{{ str_replace('_', ' ', trim(ucfirst($tag))) }}
@endif @empty @endforelse @if ($tagsCount > 3) @endif @endif
Additional Details
Birthday: {{ $contact['birthday'] }}
Hobbies: @php $hobbies_list = !empty($contact['hobbies']) ? implode(', ', explode(',', $contact['hobbies'])) : ''; @endphp {{ $hobbies_list }}
Spouse: {{ $contact['spouce'] }}
Children Name: @php $childrenList = !empty($contact['children_name']) ? implode(', ', explode(',', $contact['children_name'])) : ''; @endphp {{ $childrenList }}
Anniversary of Purchase: {{ $contact['anniversary_date_of_purchase'] }}
Anniversary of Sale: {{ $contact['anniversary_date_of_sale'] }}

  • Coming Soon

Coming Soon

@forelse ($contact['socials'] as $social) @if (array_key_exists($social['type'], $socialIcons)) @endif @empty

Social Links Not Found

@endforelse
{{-- script for Tages to view more tags of Tags --}} {{-- script for Source to view More tags of Source --}}