{{-- The next-action form, shared by the "add" card and every "edit" dialog. Expects: $action — the row being edited, or null when adding $colours — the palette tokens an action may use --}} @php $prefix = $action ? 'a' . $action->id . '_' : 'new_'; @endphp
Shown in the Next Action column and the filter menu. Write it as an instruction.
The exact word the AI returns and the mail is stored with. Lowercase letters, digits and underscores.
Sent to the AI word for word. Be concrete, and say what separates this action from the ones next to it — this text is the whole of what the classifier knows about it.
The dot and pill on the mail list. Use red for "drop everything", amber for "on the list", green for "nothing to do" — the colour is how the column is read at a glance.
The URL segment for this action's mail listing. Leave blank when adding and it is derived from the code. Changing it breaks any bookmark to the old one.
Comma separated. Other words that should count as this action — useful for mail already stored under an older name. Renaming a code adds the old one here for you.
is_active : old('is_active', true))>
An inactive action leaves the prompt and the filter menu. Mail already recommending it keeps it.