Communication Templates @canany(['templates.view', 'templates.create', 'templates.edit']) @endcanany @can('templates.create') New template @endcan @if($showCategoryForm)
Add New Category
@can('templates.create') @endcan
@error('newCategoryName') {{ $message }} @enderror
@endif {{-- Categories offcanvas --}} @if($showCategoryPanel)
Manage categories
@error('categoryName')
{{ $message }}
@enderror @if($editingCategoryId === null) @can('templates.create') @endcan @else
{{ $editingCategoryId ? 'Edit category' : 'New category' }}
@endif
@forelse($categories as $cat)
{{ $cat->name }}
{{ $cat->templates_count }} template{{ $cat->templates_count === 1 ? '' : 's' }}
@can('templates.edit') @endcan @can('templates.delete') @endcan
@empty
No categories yet.
@endforelse
@endif {{-- Filters --}}
{{ $templates->total() }} total
@forelse($templates as $template) @empty @endforelse
Template Channel Category Default sender Flags Triggers Updated Actions
{{ $template->name }} @if(!$template->is_active) inactive @endif
@if($template->subject) {{ $template->subject }} @endif @if($template->key) {{ $template->key }} @endif
@if($template->channel) {{ $template->channel->label() }} @endif @if($template->category) {{ $template->category->name }} @endif @if($template->defaultSenderEmail) {{ $template->defaultSenderEmail->email_address }} @elseif($template->defaultSmsSender) {{ $template->defaultSmsSender->label() }} @else — @endif @if($template->allow_manual_send) @endif @if($template->allow_automatic_send) @endif @if($template->triggers_count > 0) {{ $template->triggers_count }} @else @endif {{ $template->updated_at?->diffForHumans() }} @can('templates.edit') Edit @endcan @can('templates.delete') @endcan
No templates found.
@can('templates.create') Create your first template @endcan