@extends('setting.nav') @section('title', 'Lead Types') @section('content')
The buying signals the classifier may detect in a mail, and how urgently each one is to be treated. These rows drive the AI prompt, the Lead and Priority columns on the mail list, the Leads filter menu and the dashboard card. The list is shared by everyone — a type an administrator adds here is detected on every user's mail, not just their own.
| {{-- Floors, not widths. The Priority column made this the eighth in a card that is not eight columns wide, and without a minimum the browser reclaims the space from the two cells carrying sentences — which then wrap to six lines each. The wrapper scrolls sideways instead. --}} | Lead type | AI code | Floor | Priority | {{-- Counted across every mailbox, because deactivating a type affects every mailbox. The link opens your own listing. --}}Mail (all users) | Active | Actions |
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} |
{{ $type->name }}
@if ($type->description)
{{ \Illuminate\Support\Str::limit($type->description, 120) }}
@endif
@if ($type->ai_aliases)
also matches: {{ $type->ai_aliases }}
@endif
|
{{ $type->code }}
/mails/{{ $type->filter_slug }}
|
{{ (int) $type->min_score }} |
@php
$band = $type->priorityBand();
$bandDef = $priorities[$band];
$fallsTo = \App\Models\LeadType::demote($band);
@endphp
{{ $bandDef['label'] }}
@if ($fallsTo !== $band)
{{-- The floor and the band interact, so the row says how,
rather than leaving it to be worked out from two
columns. --}}
under {{ \App\Models\LeadType::confidenceThresholdFor($type) }}:
{{ strtolower($priorities[$fallsTo]['label']) }}
@endif
|
@php $used = $countFor($type); @endphp @if ($used > 0) {{ number_format($used) }} @else 0 @endif | @if ($isAdmin) @else {{ $type->is_active ? 'Active' : 'Inactive' }} @endif | @if ($isAdmin) {{-- Order is the buying-signal ranking: the prompt prefers the type nearest the top when two of them fit. --}} @endif |
| {{ $loop->iteration }} |
{{ $type->name }}
@if ($type->description)
{{ \Illuminate\Support\Str::limit($type->description, 120) }}
@endif
|
{{ $type->code }}
/mails/{{ $type->filter_slug }}
|
{{ (int) $type->min_score }} | {{ $priorities[$type->priorityBand()]['label'] }} | {{ number_format($countFor($type)) }} | Built in | not editable yet |