{{ __('Admin · Support · Agents') }}

{{ __('Support') }} {{ __('agents') }}

{{ __('Promote any platform user to a support agent. Active agents appear in the ticket-assign dropdown and rotate into auto-assignment.') }}

@if (session('success'))
{{ session('success') }}
@endif
@foreach ([['Total agents', $kpi['total'], 'paper-200'], ['Active', $kpi['active'], 'wa-green/40'], ['Open tickets', $kpi['open_total'], 'paper-200'], ['Unassigned', $kpi['unassigned'], 'accent-coral/40']] as [$label, $val, $border])
{{ $label }}
{{ $val }}
@endforeach

{{ __('Agent roster') }}

@forelse ($agents as $a) @empty @endforelse
{{ __('Name') }} {{ __('Specialty') }} {{ __('Open') }} {{ __('Resolved 30d') }} {{ __('Avg 1st reply') }} {{ __('Active') }}
{{ $a->user?->name ?? 'User #' . $a->user_id }}
{{ $a->user?->email }}
{{ $a->specialty ?: '—' }} {{ $a->open_count }} {{ $a->resolved_30d }} {{ $a->avg_first_response_min ? $a->avg_first_response_min . 'm' : '—' }}
@csrf
@csrf @method('DELETE')
{{ __('No agents yet. Add one on the right.') }}