@php $lead = $req->lead; $stage = $lead ? $lead->currentStage : null; $isActive = $req->isActive(); $budget = \App\Services\ClientRequirementService::formatBudget($req->min_budget, $req->max_budget); $size = \App\Services\ClientRequirementService::formatSize($req->min_size, $req->max_size); $shortlistCount = $lead ? ($lead->shortlisted_properties_count ?? $lead->shortlistedProperties()->count()) : 0; @endphp
{{-- Left: title + meta --}}
{{ $req->title }} {{ $isActive ? 'Active' : 'Closed' }} @if($stage) {{ $stage->name }} @endif @if($shortlistCount > 0) {{ $shortlistCount }} shortlisted @endif
{{ $budget }} {{ $size }} {{ $req->preferred_location ?: 'Any Location' }} {{ $req->created_at->format('d M Y') }}
@if($req->notes)
"{{ $req->notes }}"
@endif @if(!$isActive && $req->closed_at)
Closed on {{ $req->closed_at->format('d M Y') }} @if($req->closedBy) by {{ $req->closedBy->name }} @endif
@endif
{{-- Right: actions --}}
@if($lead) Lead @endif View @if($isActive) @endif