@extends('layouts.app') @section('title', $lead->title) @section('content') @can('update', $lead) Edit @endcan @can('delete', $lead)
@csrf @method('DELETE')
@endcan
Stage{{ $lead->stage?->name }}
Status{{ ucfirst($lead->status) }}
Value{{ $lead->expected_value ? money((float) $lead->expected_value, (string) $lead->currency) : '—' }}
Probability{{ $lead->probability }}%
Expected close{{ $lead->expected_close_date?->format('d M Y') ?? '—' }}
Contact{{ trim($lead->first_name.' '.$lead->last_name) ?: '—' }}
Email{{ $lead->email ?? '—' }}
Phone{{ $lead->phone ?? '—' }}
Owner{{ $lead->owner?->name ?? '—' }}
In stage{{ $lead->stage_changed_at ? (int) $lead->stage_changed_at->diffInDays(now()).' days' : '—' }}
@if ($lead->description)

{{ $lead->description }}

@endif
@can('convert', $lead) @if ($lead->converted_opportunity_id === null)

The lead is kept and marked converted, so where a deal came from stays answerable later.

@csrf
@if ($lead->contact_id === null && $lead->email) @endif
@else
Converted to {{ $lead->convertedOpportunity->name }} {{ $lead->converted_at?->diffForHumans() }}.
@endif @endcan @include('partials.notes', ['type' => 'leads', 'record' => $lead, 'notes' => $notes])
@include('partials.log-activity', ['type' => 'leads', 'record' => $lead]) @include('partials.timeline', ['timeline' => $timeline])
@endsection