@extends('layouts.app') @section('title', $lead->lead_number) @section('breadcrumb')Leads {{ $lead->lead_number }}@endsection @section('content')
{{ $lead->contact?->initials ?? '??' }}

{{ $lead->contact?->full_name ?? 'Unknown Contact' }}

{{ $lead->lead_number }} {{ $lead->statusLabel() }} {{ ucfirst($lead->priority) }} Priority

Lead Progress

@foreach([['New', 'new'], ['Consult Booked', 'consult_booked'], ['On Hold / Lost', 'on_hold'], ['Sold', 'sold']] as $i => [$label, $key])
@php $active = $lead->status === $key; $done = in_array($lead->status, array_slice(['new','consult_booked','on_hold','sold'], $i+1)); @endphp
@if($done)@else{{ $i+1 }}@endif
{{ $label }}
@if($i < 3)
@endif @endforeach

Lead Information

Source
{{ $lead->source ?? '—' }}
Enquiry Date
{{ $lead->enquiry_date?->format('d M Y') ?? '—' }}
Preferred Contact
{{ $lead->preferred_contact ?? '—' }}
Assigned To
{{ $lead->assignedTo?->name ?? '—' }}

Project Overview

Type
{{ $lead->project_type ? ucfirst($lead->project_type) : '—' }}
Budget
{{ $lead->budget_range ?? '—' }}
Expected Start
{{ $lead->expected_start?->format('M Y') ?? '—' }}
@if($lead->description)

Description

{{ $lead->description }}

@endif @if($lead->notes)

Notes

{{ $lead->notes }}

@endif
@if($lead->contact)

Contact Summary

@if($lead->contact->email) {{ $lead->contact->email }} @endif @if($lead->contact->phone) {{ $lead->contact->phone }} @endif @if($lead->site_address)
{{ $lead->site_address }}
{{ $lead->site_suburb }} {{ $lead->site_state }}
@endif
@endif

Actions

Edit Lead Convert to Job
@csrf @method('DELETE')
@endsection