@extends('admin::layouts.master') @section('title','E-SHOP || Email Templates') @section('content')
Email Templates
Add Template
@if(isset($templates) && $templates->count() > 0) @foreach($templates as $index => $template) @endforeach
@lang('partials.s_n') Name Subject Type Status Default Analytics @lang('partials.action')
{{$index + 1}} {{$template->name}} {{$template->subject}} {{ \Modules\Newsletter\Models\EmailTemplate::getTemplateTypes()[$template->template_type] ?? $template->template_type }} @if($template->is_active) Active @else Inactive @endif @if($template->is_default) Default @else - @endif Sent: {{ $template->emailAnalytics()->count() }}
Open: {{ $template->emailAnalytics()->whereNotNull('opened_at')->count() }}
Click: {{ $template->emailAnalytics()->whereNotNull('clicked_at')->count() }}
@csrf
@if(!$template->is_default)
@csrf
@endif
@csrf
@if(!$template->is_default)
@csrf @method('DELETE')
@endif
{{ $templates->links() }}
@else
No email templates found

Create your first email template to get started.

Create Template
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush