@props(['plan', 'readOnly' => true]) @php $salesperson = trim(($plan->user?->name ?? '').' '.($plan->user?->surname ?? '')); $submittedTo = trim(($plan->submittedTo?->name ?? '').' '.($plan->submittedTo?->surname ?? '')); @endphp

{{ $plan->title }}

Period: {{ $plan->periodLabel() }}

{{ $plan->statusDisplayForSalesman() }}
@if ($plan->isRejected() && filled($plan->rejection_reason))
Rejection reason: {{ $plan->rejection_reason }}
@endif
Salesperson
{{ $salesperson !== '' ? $salesperson : '—' }}
Submitted at
{{ $plan->submitted_at?->format('d M Y H:i') ?? '—' }}
Submitted to
{{ $submittedTo !== '' ? $submittedTo : 'All managers' }}
@if ($plan->reviewed_at !== null) @php $reviewedBy = trim(($plan->reviewedBy?->name ?? '').' '.($plan->reviewedBy?->surname ?? '')); @endphp
Reviewed at
{{ $plan->reviewed_at->format('d M Y H:i') }}
Reviewed by
{{ $reviewedBy !== '' ? $reviewedBy : '—' }}
@endif
Notes
{{ $plan->notes ?? '—' }}

Planned visits ({{ $plan->items->count() }})

@forelse ($plan->items as $item) @empty @endforelse
Prospect (from pipeline) Company Contact When Location Purpose Notes
{{ $item->displayProspectLabel() }} {{ $item->company_name ?? '—' }}
{{ $item->contact_person ?? '—' }}
@if ($item->phone)
{{ $item->phone }}
@endif @if ($item->email)
{{ $item->email }}
@endif
{{ $item->formattedVisitSchedule() }} {{ $item->location ?? '—' }} {{ $item->purpose ?? '—' }} {{ $item->notes ?? '—' }}
No planned visits.