@extends('layouts.app') @section('head') @endsection @section('content')

{{ $contact->first_name }} {{ $contact->last_name }}

Contact Details

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

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

Address: {{ $contact->street_address ?? 'N/A' }}, {{ $contact->city ?? '' }}, {{ $contact->state ?? '' }} {{ $contact->zip_code ?? '' }}

Linked Properties
@if ($contact->properties && $contact->properties->isNotEmpty())
    @foreach ($contact->properties as $property)
  • {{ $property->address }}
    {{ $property->city }}, {{ $property->state }} {{ $property->zip_code }}
  • @endforeach
@else

No linked properties

@endif
@if($contact->activities->isNotEmpty()) @foreach($contact->activities as $activity)
@switch($activity->type) @case('email') Email Activity @break @case('direct_mail') Direct Mail @break @case('note') Note Added @break @default {{ ucfirst($activity->type) }} @endswitch

{{ $activity->created_at->diffForHumans() }}

{!! nl2br(e($activity->details)) !!}

@endforeach @else

No activity recorded yet.

@endif
    @if(is_object($contact->notes) && method_exists($contact->notes, 'isNotEmpty') && $contact->notes->isNotEmpty()) @foreach($contact->notes as $note)
  • {{ $note->content }}
    Published on: {{ $note->created_at->format('M d, Y H:i:s') }}
  • @endforeach @else
  • No notes available.
  • @endif
@endsection @push('scripts') @endpush