@props([ 'plan' => null, 'purposes' => [], 'prospectOptions' => [], 'defaultItems' => [], 'formAction' => '', 'formMethod' => 'POST', 'requiresResubmit' => false, ]) @php $isEdit = strtoupper($formMethod) === 'PATCH'; $titleValue = old('title', $plan?->title ?? ''); $planDateValue = old('plan_date', optional($plan?->plan_date)->format('Y-m-d') ?? ''); $weekStartValue = old('week_start', optional($plan?->week_start)->format('Y-m-d') ?? ''); $weekEndValue = old('week_end', optional($plan?->week_end)->format('Y-m-d') ?? ''); $notesValue = old('notes', $plan?->notes ?? ''); @endphp
@csrf @if ($isEdit) @method('PATCH') @endif

Plan details

Planned visits

Select a prospect from your pipeline for each visit. Add as many entries as needed.

@if (count($prospectOptions) === 0)
You have no prospects in your pipeline. Add prospects before creating a plan.
@endif @error('items')

{{ $message }}

@enderror
Cancel