@extends('layouts.app') @section('title', 'Lead — ' . ($lead->requirement ? $lead->requirement->title : 'Detail')) @section('page-title', 'Lead Detail') @push('styles') @endpush @section('content') @php $req = $lead->requirement; $client = $req ? $req->client : null; $shortlisted = $lead->shortlistedProperties; $removalReasons = \App\Models\PropertyShortlist::REMOVAL_REASONS; $siteVisits = $lead->siteVisits; $pendingReminders = $lead->reminders->where('is_done', false); $quotes = $lead->quotes; $agreement = $lead->agreement; $defaultDealType = ($req && $req->interest_type === 'rent') ? 'rental' : 'sale'; @endphp
| From | To | Changed By | Note | Date / Time |
|---|---|---|---|---|
| @if($transition->fromStage) {{ $transition->fromStage->name }} @else — (Created) @endif | {{ $transition->toStage->name }} | {{ $transition->changedBy ? $transition->changedBy->name : '—' }} | {{ $transition->note }} | {{ $transition->created_at->format('d M Y, h:i A') }} |
| No stage transitions recorded. | ||||
| Property | Type | Location | Price | Added By | Added On | @if($lead->isOpen())@endif |
|---|---|---|---|---|---|---|
| {{ $sl->property->title }} | {{ (\App\Models\Property::typeLabels())[$sl->property->type] ?? $sl->property->type }} | {{ $sl->property->city ?: $sl->property->location }} | {{ $sl->property->formattedPrice() }} | {{ optional($sl->shortlistedBy)->name ?? '—' }} | {{ $sl->created_at->format('d M Y') }} | @if($lead->isOpen())@endif |
| Property | Date & Time | Stage at Visit | Accompanying Staff | Notes | Logged By |
|---|---|---|---|---|---|
| {{ $visit->property->title }} | {{ $visit->formattedVisitDateTime() }} | @if($visit->stageSnapshot) {{ $visit->stageSnapshot->name }} @else — @endif | {{ $visit->accompanying_staff }} | {{ $visit->notes ?: '—' }} | {{ optional($visit->loggedBy)->name ?? '—' }} |
| Property | Quoted Price | Date | Shared By | Notes | Logged By |
|---|---|---|---|---|---|
| {{ optional($quote->property)->title ?? '—' }} | ₹ {{ number_format((float)$quote->quoted_price, 0) }} | {{ $quote->quote_date ? $quote->quote_date->format('d M Y') : '—' }} | {{ $quote->shared_by }} | {{ $quote->notes ?: '—' }} | {{ optional($quote->createdBy)->name ?? '—' }} |