@extends('layouts.app') @section('title', $lead->customer->name) @section('heading', 'Lead: '.$lead->customer->name) @section('content') @php $c = $lead->customer; @endphp
{{ $lead->stage->label() }}
Owner: {{ $lead->assignee?->name ?? 'Unassigned' }} @if (! $lead->assignee) @can('leads.edit')
@endcan @endifWon on {{ $lead->won_at->format('d M Y') }}: {{ $lead->wonVehicle?->display_name }} ({{ $lead->wonVehicle?->stock_id }}) for KSh {{ number_format((float) $lead->won_price) }}.
@elseLost on {{ $lead->lost_at->format('d M Y') }}: {{ config('crm.lost_reasons')[$lead->lost_reason] ?? $lead->lost_reason }}{{ $lead->lost_note ? ' – '.$lead->lost_note : '' }}.
@endif