{{-- Header --}}
|
{{-- Title strip --}}
|
// Lead Summary
{{ $lead->full_name }}
Ref: {{ $lead->reference_number ?: '—' }} · Status: {{ $statusLabel }}
|
{{-- Personal message --}}
@if(trim($messageBody) !== '')
|
{!! nl2br(e($messageBody)) !!}
|
|
@endif
{{-- Details table --}}
@php
$rows = [
['Email', $lead->email],
['Phone', $lead->phone],
['Address', trim(($lead->address_line ? $lead->address_line.', ' : '').($lead->town ? $lead->town.', ' : '').$lead->zip_code, ', ')],
['Property Type', $propertyLabel],
['Roof Age', $lead->roof_age],
['Monthly Bill', $lead->monthly_bill !== null ? '£'.number_format((float)$lead->monthly_bill) : null],
['After-Hours Contact', $lead->after_hours_contact ? 'Yes' : 'Working hours only'],
['Est. Monthly Savings', $lead->estimated_savings !== null ? '£'.number_format((float)$lead->estimated_savings) : null],
['Notes', $lead->notes],
];
@endphp
@foreach($rows as [$label, $value])
| {{ $label }} |
{{ ($value === null || $value === '') ? '—' : $value }} |
@endforeach
|
{{-- Attachment note --}}
|
📎 A full lead sheet (PDF) is attached to this email.
|
{{-- Footer --}}
|
SolarConnectUK · {{ now()->format('d M Y, H:i') }} · Sent from the admin panel
|
|