@php $badge = ['lead' => 'bg-amber-100 text-amber-700', 'prospect' => 'bg-blue-100 text-blue-700', 'client' => 'bg-green-100 text-green-700', 'inactive' => 'bg-gray-100 text-gray-600']; $s = $contact->social_links ?? []; @endphp @if(auth()->user()?->hasPermission('crm.contacts.edit')) Edit @endif Back
{{ ucfirst($contact->type) }}
Email
{{ $contact->email ?: '—' }}
Phone
{{ $contact->phone ?: '—' }}
Website
{{ $contact->website ?: '—' }}
Assigned To
{{ $contact->assignedTo?->name ?: '—' }}
Address
{{ $contact->address ?: '—' }}
@if(array_filter($s))
Social
@foreach(['linkedin','twitter','facebook'] as $net) @if(!empty($s[$net])){{ ucfirst($net) }}@endif @endforeach
@endif @if($contact->notes)
Notes
{{ $contact->notes }}
@endif
@forelse($contact->deals as $deal) {{ $deal->title }} {{ \Modules\CRM\Models\Deal::STAGES[$deal->stage] }} · {{ money($deal->value) }} @empty

No deals yet.

@endforelse
@forelse($activities as $a)
{{ \Modules\CRM\Models\DealActivity::TYPES[$a->type] }}

{{ $a->note }}

{{ $a->user?->name }} · {{ $a->created_at->diffForHumans() }}

@empty

No activity recorded.

@endforelse