@extends('setting.nav') @section('title', 'Auto Reply Categories') @section('content')
@include('auto_reply._tabs') @php $isAdmin = auth()->check() && auth()->user()->auth_id == 0; @endphp
Categories
@if ($isAdmin && $canSeed)
@csrf
@endif
@forelse ($categories as $category) @php $template = $category->template_id ? $templates->firstWhere('id', $category->template_id) : null; $sendable = $template && $template->status === \App\Models\EmailTemplate::STATUS_APPROVED; @endphp @empty @endforelse
Category Code Template Auto reply Active Actions
{{ $category->name }}
@if ($category->description)
{{ \Illuminate\Support\Str::limit($category->description, 90) }}
@endif @if ($category->confidence_threshold !== null) min confidence {{ number_format($category->confidence_threshold, 2) }} @endif
{{ $category->code }} @if (!$template) None assigned @else {{ $template->name }} {{ $template->statusLabel() }} @endif @if ($isAdmin)
@csrf
@else {{ $category->auto_reply_enabled ? 'On' : 'Off' }} @endif
{{ $category->is_active ? 'Active' : 'Inactive' }} @if ($isAdmin)
@csrf @method('DELETE')
@endif
No categories yet. Without one, no mail can ever be auto-replied.
@if ($categories->isNotEmpty()) @endif
@if ($isAdmin)
Add category
@csrf @include('auto_reply._category_fields', [ 'category' => null, 'templates' => $templates, ])
@endif
{{-- Edit dialogs, one per row. --}} @if ($isAdmin) @foreach ($categories as $category) @endforeach @endif
@endsection