@extends('layouts.dashboard') @section('header')

{{ __('Lead Details: ') . $lead->name }}

@endsection @section('content')

Lead Information

Detailed information about the lead including contact details, status, and associated notes.

Basic Details

Name: {{ $lead->name }}
Email: {{ $lead->email }}
Phone: {{ $lead->phone ?: 'N/A' }}
Source: {{ $lead->source ?: 'N/A' }}
Status: {{ ucfirst($lead->status) }}
Assigned To: {{ $lead->assignedTo ? $lead->assignedTo->name : 'Unassigned' }}
Next Follow Up: {{ $lead->next_follow_up_date ? \Carbon\Carbon::parse($lead->next_follow_up_date)->format('M d, Y') : 'N/A' }}

Notes

@if($lead->notes()->with('user')->get()->isEmpty())

No notes available.

@else
@foreach($lead->notes()->with('user')->get() as $note)
{{ substr($note->user->name ?? 'U', 0, 1) }}

{{ $note->user->name ?? 'Unknown' }}

{{ $note->created_at->format('M d, Y \a\t g:i A') }}

{{ $note->content }}

@endforeach
@endif
@csrf
@endsection