@props(['lead']) @php $make = trim((string) ($lead->vehicle_make ?? '')); $model = trim((string) ($lead->vehicle_model ?? '')); $variant = trim((string) ($lead->vehicle_variant ?? '')); $year = $lead->vehicle_preferred_year; $hasStructured = $make !== '' || $model !== ''; $legacy = ! $hasStructured ? trim((string) ($lead->vehicle_interest ?? '')) : ''; @endphp @if ($hasStructured)
{{ $make }} {{ $model }} @if ($variant !== '') {{ $variant }} @endif @if ($year) {{ $year }} @endif
@elseif ($legacy !== '') {{ $legacy }} @else @endif