@extends('setting.nav') @section('title', 'Auto Reply Templates') @section('content')
| Template | Category | Subject | Status | Last updated | Actions |
|---|---|---|---|---|---|
| {{ $template->name }} | @if ($template->category_id && isset($categories[$template->category_id])) {{ $categories[$template->category_id]->name }} @else — @endif | {{ \Illuminate\Support\Str::limit($template->subject, 60) }} | @php $colour = match ($template->status) { \App\Models\EmailTemplate::STATUS_APPROVED => 'success', \App\Models\EmailTemplate::STATUS_DRAFT => 'warning text-dark', default => 'secondary', }; @endphp {{ $template->statusLabel() }} | {{ optional($template->updated_at)->format('d M Y, H:i') }} | @if ($isAdmin) Edit @if ($template->status !== \App\Models\EmailTemplate::STATUS_APPROVED) @else @endif @else View only @endif |
| No templates yet. A category cannot auto-reply without an approved template. | |||||