Select document types to automatically attach when this template is sent. The latest document of each type on the client will be used.
@if($documentTypes->isEmpty())| Event | Applies to | Condition | Dedupe | Active | |
|---|---|---|---|---|---|
| {{ $trig->trigger_type->label() }} | {{ $availableModels[$trig->model_type] ?? class_basename($trig->model_type ?? 'Any') }} | @php $parts = []; $resolveNames = fn($ids, $map) => collect((array)$ids) ->map(fn($id) => $map[$id] ?? "#{$id}") ->implode(', '); if (!empty($trig->conditions['to_status_id'])) { $parts[] = 'To: ' . $resolveNames($trig->conditions['to_status_id'], $statusMap); } if (!empty($trig->conditions['from_status_id'])) { $parts[] = 'From: ' . $resolveNames($trig->conditions['from_status_id'], $statusMap); } if (!empty($trig->conditions['tag_id'])) { $parts[] = 'Tag: ' . $resolveNames($trig->conditions['tag_id'], $tagMap); } @endphp {{ implode(' · ', $parts) ?: '—' }} | {{ $trig->dedupe_window_minutes }}m | @if($trig->is_active) on @else off @endif | @can('communications.triggers.manage') @endcan |
From status
To status
No conditions available for this trigger type.
@endif @if($triggerShowAdvancedConditions) @error('triggerForm.conditions') {{ $message }} @enderror Editing JSON directly overrides the checkboxes above when saving. @endif{{ $displayToken }}
@if($p->description)
{{ $previewBodyText }}
{{ $previewBodyText ?: '—' }}
{{ $token }} |
{{ $value !== '' ? $value : '(empty)' }} |