Lead'ler

Çağrı merkezi arama listesi — durumları buradan güncelleyin.

@foreach (\App\Models\Lead::STATUSES as $key => $label) @endforeach
@foreach (['whatsapp' => 'WhatsApp', 'messenger' => 'Messenger', 'instagram' => 'Instagram', 'form' => 'Form'] as $ch => $chLabel) @endforeach
@forelse ($leads as $lead) @php // Telefon zaten ayrı kolonda — isimsiz hastada adı tekrar telefon gösterme $patientName = $lead->contact->name ?: $lead->contact->channelLabel().' Hastası #'.substr(preg_replace('/\D/', '', (string) $lead->phone), -4); @endphp @empty @endforelse
Hasta Telefon Kanal Reklam Tarih Durum Not
{{ $patientName }} {{ $lead->phone }} {{ $lead->contact->channelLabel() }} @if ($lead->adAttribution) {{ $lead->adAttribution->headline ?? $lead->adAttribution->ad_id }} @if ($lead->capi_sent_at) Meta @endif @else Organik @endif {{ $lead->created_at->timezone('Europe/Istanbul')->format('d.m.Y H:i') }}
Bot bir hastanın telefon numarasını aldığında lead otomatik olarak burada listelenir.
{{ $leads->links() }}
{{-- Lead detay çekmecesi --}} @if ($detail) @endif