{{ __('Lead Profile') }}: {{ $lead->name ?? 'Unknown' }}

@csrf
Created: {{ $lead->created_at->format('M d, Y') }}
Score
{{ $lead->conversion_probability ?? 0 }}/100
@if($lead->predicted_conversion_at)
Est. Close: {{ $lead->predicted_conversion_at->diffForHumans() }}
@endif
Status
{{ ucfirst($lead->status) }}
Source
{{ ucfirst($lead->source ?? 'Direct') }}
Contact
{{ $lead->phone ?? 'No Phone' }}
{{ $lead->email ?? 'No Email' }}

Tags

@csrf @method('PUT')
@foreach($lead->tags ?? [] as $tag) {{ $tag }} @endforeach

Bookings

@forelse($lead->bookings as $booking)
{{ $booking->trip->title ?? 'Trip' }}
{{ $booking->status }} - ${{ $booking->total_price }}
@empty

No bookings yet.

@endforelse

Scheduled Msg

@forelse($lead->scheduledMessages->where('status', 'pending') as $msg)
Sends {{ $msg->send_at->diffForHumans() }}
{{ $msg->message }}
@empty

No pending messages.

@endforelse

Timeline

@forelse($lead->conversations as $conv)
User {{ \Carbon\Carbon::parse($conv->created_at)->format('M d, H:i') }}

{{ $conv->text }}

@if($conv->detected_intent)
Intent: {{ $conv->detected_intent }}
@endif
@if($conv->ai_response)
Bot {{ $conv->provider_used ? '(' . $conv->provider_used . ')' : '' }} @if($conv->sent) ✓✓ @else @endif {{ \Carbon\Carbon::parse($conv->updated_at)->format('M d, H:i') }}

{{ $conv->ai_response }}

@endif @empty
💬

No conversations yet.

@endforelse

⚡ اختيار رد جاهز

جاري التحميل...
لا يوجد ردود مطابقة للبحث.
@csrf

Internal Notes

@forelse($lead->notes as $note)

{{ $note->content }}

{{ $note->user->name ?? 'System' }} {{ $note->created_at->format('M d H:i') }}
@empty

No notes added.

@endforelse
@csrf