@include('Partials.sidebar')
@include('Partials.header')

{{ $lead->company_name }}

{{ $lead->contact_name }} · {{ $lead->email }}

  1. ›
  2. Leads
  3. ›
  4. {{ $lead->company_name }}
@foreach(['success', 'error'] as $t) @if(session($t))
{{ session($t) }}
@endif @endforeach
{{-- ── Left: lead details + status ── --}}
Lead Details
{{ $lead->getStatusLabel() }}
@if($lead->status !== 'converted') @endif
@if($lead->utm_source) @endif
Company {{ $lead->company_name }}
Contact {{ $lead->contact_name }}
Email {{ $lead->email }}
Phone {{ $lead->phone ? $lead->country_code . ' ' . $lead->phone : '—' }}
City {{ $lead->city ?? '—' }}
Country {{ $lead->country ?? '—' }}
Projects {{ $lead->num_projects ?? '—' }}
Website {{ $lead->website ? '' . $lead->website . '' : '—' }}
Received {{ $lead->created_at->format('d M Y, h:i A') }}
Source {{ $lead->utm_source }}{{ $lead->utm_campaign ? ' / ' . $lead->utm_campaign : '' }}
@if($lead->message)
Message
{{ $lead->message }}
@endif @if($lead->convertedTenant)
Converted to tenant: {{ $lead->convertedTenant->name }}
@endif
{{-- ── Update status/notes ── --}}
Update Status
@csrf @method('PATCH')
@csrf @method('DELETE')
{{-- ── Right: follow-ups ── --}}
Log a Follow-Up
@csrf
Follow-Up History
@forelse($lead->followUps as $fu)
{{ $fu->type }} {{ $fu->created_at->format('d M Y, h:i A') }}
{{ $fu->note }}
by {{ $fu->admin->name ?? 'System' }} @if($fu->next_follow_up_at) · Next follow-up: {{ $fu->next_follow_up_at->format('d M Y, h:i A') }} @endif
@empty
No follow-ups logged yet.
@endforelse
@include('Partials.footer')