@extends('layouts.app') @section('title', 'Site Visit History') @section('page-title', 'Site Visit History') @section('content') {{-- Filters --}}
| Date & Time | Client | Requirement | Stage at Visit | Property | Accompanying Staff | Notes | Logged By |
|---|---|---|---|---|---|---|---|
| {{ $visit->formattedVisitDateTime() }} |
@if($vClient)
{{ $vClient->full_name }}
{{ $vClient->mobile }}
@else
—
@endif
|
@if($vReq) @php $reqLabel = (\App\Models\ClientRequirement::INTEREST_TYPES[$vReq->interest_type] ?? $vReq->interest_type) . ($vReq->property_type ? ' · ' . ($propertyTypes[$vReq->property_type] ?? $vReq->property_type) : ''); @endphp @if($vClient) {{ $reqLabel }} @else {{ $reqLabel }} @endif @if($vLead) @endif @else — @endif | @if($visit->stageSnapshot) {{ $visit->stageSnapshot->name }} @else — @endif |
@if($visit->property && !$visit->property->trashed())
{{ $visit->property->title }}
@if($visit->property->city)
{{ $visit->property->city }}
@endif
@elseif($visit->property)
{{ $visit->property->title }}
@if($visit->property->city)
{{ $visit->property->city }}
@endif
@else
—
@endif
|
{{ $visit->accompanying_staff }} | {{ $visit->notes ?: '—' }} | {{ optional($visit->loggedBy)->name ?? '—' }} |