@php use App\Support\ProspectingPlanStatuses; $teamPlansAlpineConfig = [ 'canReview' => (bool) ($canReviewPlans ?? false), 'filterSalesman' => $selectedSalesmanStr ?? '', 'filterMonth' => (string) (int) ($selectedMonth ?? now()->format('n')), 'filterYear' => (string) (int) ($selectedYear ?? now()->format('Y')), 'filterStatus' => $selectedStatusStr ?? ProspectingPlanStatuses::SUBMITTED, 'statusSubmitted' => ProspectingPlanStatuses::SUBMITTED, ]; @endphp {{ __('Team Prospecting Plans') }}

{{ number_format(count($plans ?? [])) }} plan(s)

Reject prospecting plan

@csrf
@forelse ($plans as $plan) @php $salesperson = trim(($plan->user?->name ?? '').' '.($plan->user?->surname ?? '')); $planLabel = trim(($salesperson !== '' ? $salesperson.' · ' : '').$plan->title); $showUrl = $plan->isLockedForSalesman() ? route('team-prospecting-plans.show', $plan) : ''; @endphp @empty @endforelse
Salesperson Title Period Visits Status Submitted at
{{ $salesperson !== '' ? $salesperson : '—' }} {{ $plan->title }} {{ $plan->periodLabel() }} {{ $plan->items_count }} @if ($plan->isRejected()) {{ $plan->statusDisplayForSalesman() }} @else {{ $plan->statusLabel() }} @endif {{ $plan->submitted_at?->format('d M Y H:i') ?? '—' }}
No prospecting plans match these filters.