{{ __('Sequences') }} @php $statusColor = ['draft' => 'slate', 'active' => 'emerald', 'paused' => 'amber', 'archived' => 'slate']; @endphp {{ __(\App\Models\Crm\Sequence::STATUSES[$sequence->status] ?? $sequence->status) }} @if ($canEdit && $sequence->status !== 'active') {{ __('Start') }} @endif @if ($canEdit && $sequence->status === 'active') {{ __('Pause') }} @endif @if ($canEdit && $sequence->status !== 'archived') {{ __('Archive') }} @endif @if ($sequence->is_default_cadence)

{{ __('This is the portfolio contact cadence: call, email, LinkedIn message, follow-up call, over three weeks. Logging a touch on a work queue is unchanged and does not send this email or move these steps.') }}

@endif @php $tabMeta = [ 'steps' => ['label' => __('Steps'), 'icon' => 'queue-list'], 'people' => ['label' => __('People'), 'icon' => 'users'], ]; $stepIcon = ['email' => 'envelope', 'call' => 'phone', 'linkedin' => 'link', 'wait' => 'clock']; @endphp
@foreach ($tabMeta as $key => $meta) @endforeach
@if ($tab === 'steps' && $canEdit) {{ __('Add step') }} @endif @if ($tab === 'people' && $canEnrol) {{ __('Enrol a contact') }} @endif
@if ($tab === 'steps')
@forelse ($steps as $step) @empty @endforelse
{{ __('Order') }} {{ __('Step') }} {{ __('Wait') }} {{ __('Actions') }}
{{ $step->position }} {{ __(\App\Models\Crm\SequenceStep::TYPES[$step->type] ?? $step->type) }}

@if ($step->type === 'email') {{ $step->template?->name ?? __('No template') }} @else {{ $step->task_title }} @endif

{{ $step->delay_days === 0 ? __('Straight away') : trans_choice(':count day|:count days', $step->delay_days, ['count' => $step->delay_days]) }} @if ($canEdit)
@endif
@else
@forelse ($enrolments as $enrolment) @php $enrolmentColor = ['active' => 'emerald', 'paused' => 'amber', 'completed' => 'sky', 'stopped' => 'rose']; @endphp @empty @endforelse
{{ __('Contact') }} {{ __('Organisation') }} {{ __('Status') }} {{ __('Next step') }} {{ __('Actions') }}
{{ $enrolment->contact?->name ?? __('Contact removed') }} {{ $enrolment->customer?->name }} {{ __(\App\Models\Crm\SequenceEnrolment::STATUSES[$enrolment->status] ?? $enrolment->status) }} @if ($enrolment->stop_reason) {{ __(\App\Models\Crm\SequenceEnrolment::STOP_REASONS[$enrolment->stop_reason] ?? $enrolment->stop_reason) }} @endif {{ $enrolment->next_run_at?->timezone(config('app.display_timezone'))->format('j M Y, H:i') ?? __('Not scheduled') }} @if (in_array($enrolment->status, ['active', 'paused'], true)) @can('update', $enrolment)
@endcan @endif
{{ $enrolments->links() }}
@endif {{ $stepId ? __('Edit step') : __('Add step') }}
@if ($stepType === 'email')
@endif @if (in_array($stepType, ['call', 'linkedin'], true))
@endif
{{ __('Cancel') }} {{ __('Save') }} {{ __('Saving…') }}
{{ __('Enrol a contact') }}
@if ($picked)
{{ $picked->name }}
@else @if ($contactMatches->isNotEmpty())
    @foreach ($contactMatches as $match)
  • @endforeach
@endif @endif
@if ($picked && $opportunities->isNotEmpty())
@endif
{{ __('Cancel') }} {{ __('Enrol') }} {{ __('Enrolling…') }}