@can('update', $lead) Edit @endcan @can('create', \App\Models\Deal::class) @if ($lead->status !== \App\Enums\LeadStatus::Lost) @php $openDeal = $lead->openDeal(); @endphp @if ($openDeal) Open deal @else
@csrf
@endif @endif @endcan @if ($lead->status === \App\Enums\LeadStatus::Won && auth()->user()->can('convert', $lead))
@csrf
@endif
{{ $lead->company_name ?: 'Individual' }}

{{ $lead->name }}

{{ $lead->status->label() }}
Email
{{ $lead->email ?: '—' }}
Phone
{{ $lead->phone ?: '—' }}
Service
{{ $lead->service_interest ?: '—' }}
Source
{{ $lead->source?->label() }}
Value
{{ $lead->estimated_value ? money($lead->estimated_value) : '—' }}
Assigned
{{ $lead->assignee?->name ?? 'Unassigned' }}
@if ($lead->client)
Client
{{ $lead->client->company_name }}
@endif @if ($lead->deals->isNotEmpty())
Deals
@foreach ($lead->deals as $linkedDeal)
@can('view', $linkedDeal) {{ $linkedDeal->title }} @else {{ $linkedDeal->title }} @endcan {{ $linkedDeal->stage->label() }}
@endforeach
@endif @if ($lead->notes)
Notes
{{ $lead->notes }}
@endif
@can('updateStatus', $lead) @endcan
@can('delete', $lead)
@csrf @method('DELETE')
@endcan
Log interaction
@csrf
@error('interaction_date')
{{ $message }}
@enderror
@error('type')
{{ $message }}
@enderror
@error('next_followup_date')
{{ $message }}
@enderror
@error('details')
{{ $message }}
@enderror
Activity
@forelse ($lead->interactions as $interaction)
{{ $interaction->type->label() }} · {{ $interaction->interaction_date?->format('d M Y') }}
{{ $interaction->creator?->name }}
{{ $interaction->details }}
@if ($interaction->next_followup_date)
Next follow-up {{ $interaction->next_followup_date->format('d M Y') }}
@endif
@empty
No interactions yet.
@endforelse