@extends('layouts.dashboard') @section('title', __('Edit Lead')) @section('page_title', __('Edit Lead')) @section('content')
{{ __('Edit Lead') }} — {{ $lead->name }}
{{ __('Back') }}
{{ __('Lead Details') }}
@csrf @method('PUT') @include('admin.leads._form')
{{ __('Log Activity') }}
@csrf
@error('activity_type')
{{ $message }}
@enderror
@error('note')
{{ $message }}
@enderror
{{ __('Updates the lead\'s next follow-up date.') }}
@error('follow_up_at')
{{ $message }}
@enderror
{{ __('Activity Timeline') }}
@forelse($lead->activities->sortByDesc('created_at') as $activity)
{{ status_label($activity->activity_type) }} {{ $activity->created_at->diffForHumans() }}
{{ $activity->note }}
{{ __('by :name', ['name' => optional($activity->user)->name ?? __('System')]) }} @if($activity->follow_up_at) · {{ $activity->follow_up_at->format('d M Y, h:i A') }} @endif
@empty
{{ __('No activities logged yet.') }}
@endforelse
@endsection