@extends('setting.nav') @section('title', 'Sentiment Labels') @section('content')
The labels the classifier may return. These rows drive the AI prompt, the mail list pills, the Sentiment filter menu and the dashboard breakdown. The list is shared by everyone — a label an administrator adds here is in force for every user's mail, not just their own.
| Label | AI code | {{-- Counted across every mailbox, because deactivating a label affects every mailbox. The link opens your own listing. --}}Mail (all users) | Active | Actions | |
|---|---|---|---|---|---|
| {{ $loop->iteration }} |
{{ $sentiment->name }}
@if ($sentiment->description)
{{ \Illuminate\Support\Str::limit($sentiment->description, 120) }}
@endif
@if ($sentiment->ai_aliases)
also matches: {{ $sentiment->ai_aliases }}
@endif
|
{{ $sentiment->code }}
/mails/{{ $sentiment->filter_slug }}
|
@php $used = $counts[(int) $sentiment->legacy_code] ?? 0; @endphp @if ($used > 0) {{ number_format($used) }} @else 0 @endif | @if ($isAdmin) @else {{ $sentiment->is_active ? 'Active' : 'Inactive' }} @endif | @if ($isAdmin) {{-- Order is what the prompt uses to break ties between two labels that both fit a mail. --}} @endif |
| {{ $loop->iteration }} |
{{ $sentiment->name }}
@if ($sentiment->description)
{{ \Illuminate\Support\Str::limit($sentiment->description, 120) }}
@endif
|
{{ $sentiment->code }}
/mails/{{ $sentiment->filter_slug }}
|
{{ number_format($counts[(int) $sentiment->legacy_code] ?? 0) }} | Built in | not editable yet |