@extends(request()->routeIs('admin.*') ? 'layouts.admin' : 'layouts.user') @section('content')
Current Status @php $colors = [ 'new' => 'bg-blue-100 text-blue-700', 'contacted' => 'bg-amber-100 text-amber-700', 'matured' => 'bg-purple-100 text-purple-700', 'proposal' => 'bg-indigo-100 text-indigo-700', 'won' => 'bg-emerald-100 text-emerald-700', 'lost' => 'bg-gray-100 text-gray-500', 'disqualified' => 'bg-red-100 text-red-700', ]; @endphp {{ ucfirst($lead->status) }}
@csrf @method('PUT')

Client Details

{{ $lead->name }}
{{ $lead->job_title }}
{{ $lead->company_name ?? 'N/A' }}
@if($lead->email) @endif @if($lead->phone) @endif
{{ $lead->site_location ?? 'N/A' }}
{{ $lead->property_type }}
@csrf @method('PUT')
{{ substr($lead->assignee->name ?? '?', 0, 1) }}

Plan Next Step

@csrf @method('PUT')

Log Activity

@csrf
@forelse($lead->remarks as $remark)
@if($remark->type == 'call')
@elseif($remark->type == 'email')
@elseif($remark->type == 'meeting')
@else
@endif
{{ ucfirst($remark->type) }} @if($remark->disposition) {{ ucfirst(str_replace('_', ' ', $remark->disposition)) }} @endif
{{ $remark->created_at->diffForHumans() }}
{{ $remark->content }}
@if($remark->attachment_path) @endif
Logged by {{ $remark->user->name ?? 'System' }}
@empty

No activity logged yet.

@endforelse
@endsection