Overview

Lead Title {{ ucfirst($lead->lead_title) }}
Expected Close {{ \Carbon\Carbon::create($lead->closing_date)->format('d M, Y') }}
Lead Time {{ (int) \Carbon\Carbon::parse($lead->created_at)->diffInDays(now()) }} days
Lead Channel {{ $lead->lead_channel ?? '-' }}
Channel Area {{ $lead->lead_channel_area ?? '-' }}

Contact Information

@if($lead->contact->profile_picture) @else {{ strtoupper(substr($lead->contact->first_name, 0, 1)) }} @endif

{{ $lead->contact->first_name }} {{ $lead->contact->last_name }}

{{ $lead->contact->email_address }}

Phone

{{ $lead->contact->phone_number ?? '-' }}

Company

@if ($lead->contact->contact_type === 'Individual') - @else {{ $lead->contact->company->name }} @endif

Assigned To

@if($lead->assignedUser)
@if($lead->assignedUser->profile_picture) @else {{ strtoupper(substr($lead->assignedUser->name, 0, 1)) }} @endif

{{ $lead->assignedUser->name }}

{{ $lead->assignedUser->email }}

@else

No assignee

@endif

Lead Products

@if($lead->leadProducts->count()) @foreach($lead->leadProducts as $product) @endforeach
Product Quantity Unit Cost Total
{{ $product->product->name }} {{ $product->count }} {{$currency->symbol}} {{ number_format($product->product->price, 2) }} {{$currency->symbol}} {{ number_format($product->cost, 2) }}
Total Value: {{$currency->symbol}} {{ number_format($lead->leadProducts->sum('cost'), 2) }}
@else

No products linked to this lead.

@endif

Lead Notes

@forelse($lead->notes()->latest()->get() as $note)
{{ $note->user->name ?? 'System' }} {{ $note->created_at->diffForHumans() }}

{{ $note->message }}

@empty

No notes yet.

@endforelse