@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'; $agreementIsExpired = $agreement && $agreement->isActive() && $agreement->isRental() && $agreement->agreement_end_date && $agreement->agreement_end_date->lt(\Carbon\Carbon::today()); @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 | Purpose | Area | Price | Status | Added By | Added On | |
|---|---|---|---|---|---|---|---|---|
| Property no longer available | {{ optional($sl->shortlistedBy)->name ?? '—' }} | {{ $sl->created_at->format('d M Y') }} | ||||||
|
{{-- Thumbnail --}}
@if($prop->trashed())
{{ $prop->title }}
@if($prop->city)
{{ $prop->city }}
@endif
@else
{{ $prop->title }}
@if($prop->city)
{{ $prop->city }}
@endif
@endif
|
{{ (\App\Models\Property::typeLabels())[$prop->type] ?? $prop->type }} | {{ $purposeLabel }} | {{ $areaStr }} | {{ $prop->formattedPrice() }} | {{ $statusLabel }} @if($propAvail === 'sold') Sold @elseif($propAvail === 'rented') Rented @endif | {{ optional($sl->shortlistedBy)->name ?? '—' }} | {{ $sl->created_at->format('d M Y') }} | @if(!$prop->trashed()) @endif @if($lead->isOpen()) @endif |
| Property | Date & Time | Stage at Visit | Accompanying Staff | Notes | Logged By |
|---|---|---|---|---|---|
| @if($visit->property && !$visit->property->trashed()) {{ $visit->property->title }} @elseif($visit->property) {{ $visit->property->title }} @else Property no longer available @endif | {{ $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, H:i') : '—' }} | {{ $quote->shared_by }} | {{ $quote->notes ?: '—' }} | {{ optional($quote->createdBy)->name ?? '—' }} |