{{-- The sentiment form, shared by the "add" card and every "edit" dialog. Expects: $sentiment — the row being edited, or null when adding $colours — the palette tokens a label may use --}} @php $prefix = $sentiment ? 's' . $sentiment->id . '_' : 'new_'; @endphp
Shown on the mail list, the filter menu and the dashboard.
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 label from the ones next to it — this text is the whole of what the classifier knows about it.
Used for the pill on the mail list and the dashboard slice.
The URL segment for this label'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 label — useful for mail already classified under an older name. Renaming a code adds the old one here for you.
is_active : old('is_active', true))>
An inactive label leaves the prompt and the filter menu. Mail already carrying it keeps it.