@extends('layouts.app')
@section('title', $contact->full_name)
@section('content')
@can('update', $contact)
Edit
@endcan
@can('delete', $contact)
@endcan
| Email | @if ($contact->email){{ $contact->email }}@else — @endif |
| Phone | {{ $contact->phone ?? '—' }} |
| Company | @if ($contact->company){{ $contact->company->name }}@else — @endif |
| Type | {{ ucfirst($contact->contact_type) }} |
| Owner | {{ $contact->owner?->name ?? '—' }} |
| Last contact | {{ $contact->last_contacted_at?->diffForHumans() ?? 'Never' }} |
| Location | {{ collect([$contact->city, $contact->country])->filter()->join(', ') ?: '—' }} |
@if ($contact->do_not_email || $contact->do_not_call)
| Contact rules |
@if ($contact->do_not_email)No email@endif
@if ($contact->do_not_call)No calls@endif
|
@endif
@if ($contact->description)
{{ $contact->description }}
@endif
@if ($deals->isNotEmpty() || $leads->isNotEmpty())
@foreach ($leads as $lead)
@endforeach
@foreach ($deals as $deal)
{{ $deal->name }}
{{ money((float) $deal->amount, (string) $deal->currency) }}
{{ $deal->stage?->name }}
@endforeach
@endif
@if ($tasks->isNotEmpty())
@foreach ($tasks as $task)
{{ $task->title }}
{{ $task->due_at?->diffForHumans() ?? 'No due date' }}
@endforeach
@endif
@include('partials.notes', ['type' => 'contacts', 'record' => $contact, 'notes' => $notes])
@include('partials.log-activity', ['type' => 'contacts', 'record' => $contact])
@include('partials.timeline', ['timeline' => $timeline])
@endsection