{{ strtoupper(substr($lead->name, 0, 1)) }}

{{ $lead->name }}

@if($lead->company) {{ $lead->company }} @endif @php $statusName = $lead->leadStatus->name ?? 'Unknown'; $statusColor = $lead->leadStatus->color ?? '#3498db'; if ($lead->lost == 1) { $statusName = 'Lost'; $statusColor = '#e74c3c'; } elseif ($lead->junk == 1) { $statusName = 'Junk'; $statusColor = '#95a5a6'; } @endphp {{ $statusName }}
Edit ← Back

Contact Information

@php $fields = [ ['Email', $lead->email, 'mailto:' . $lead->email], ['Phone', $lead->phonenumber, 'tel:' . $lead->phonenumber], ['Position', $lead->title, null], ['Website', $lead->website, $lead->website], ]; @endphp @foreach($fields as $f) @if($f[1])
{{ $f[0] }} @if($f[2]) {{ $f[1] }} @else {{ $f[1] }} @endif
@endif @endforeach @if(!$lead->email && !$lead->phonenumber && !$lead->title && !$lead->website)

No contact info

@endif

Lead Details

@php $details = [ ['Source', $lead->leadSource->name ?? '-'], ['Assigned To', $lead->assignedUser->name ?? '-'], ['Product Type', $lead->productType->name ?? '-'], ['Lead Value', $lead->lead_value > 0 ? '₹' . number_format($lead->lead_value, 2) : '-'], ['Created', $lead->created_at ? $lead->created_at->format('d M Y, h:i A') : '-'], ]; @endphp @foreach($details as $d)
{{ $d[0] }} {{ $d[1] }}
@endforeach

Address & Location

@php $addr = collect([$lead->address, $lead->city, $lead->state, $lead->zip, $lead->country])->filter()->implode(', '); @endphp @if($addr)

{{ $addr }}

@endif @if($lead->location_name)
📍 {{ $lead->location_name }} @if($lead->location_url) Open Map → @endif
@endif @if(!$addr && !$lead->location_name)

No address info

@endif

Description

@if($lead->description)

{{ $lead->description }}

@else

No description

@endif
@forelse($lead->notes as $note)
{{ strtoupper(substr($note->admin->name ?? 'A', 0, 1)) }}
{{ $note->admin->name ?? 'Unknown' }}
{{ $note->created_at->format('d M Y, h:i A') }} @if(auth()->guard('admin')->id() == $note->admin_id || auth()->guard('admin')->user()->is_admin == 1) @endif

{{ $note->content }}

@empty

No notes yet. Add the first one!

@endforelse