@extends('layouts.admin') @section('title', 'Plantillas de Correo') @section('content')

Plantillas de Correo

Nueva Plantilla

Gestiona las plantillas de correo electrónico del sistema

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@if($templates->count() > 0)
@foreach($templates as $template) @endforeach
Nombre Slug Tipo Estado Acciones
{{ $template->name }} {{ $template->slug }} @php $typeColors = [ 'order_status' => 'bg-blue-100 text-blue-800', 'order_confirmation' => 'bg-green-100 text-green-800', 'user_registration' => 'bg-purple-100 text-purple-800', 'contact_form' => 'bg-yellow-100 text-yellow-800' ]; $colorClass = $typeColors[$template->type] ?? 'bg-gray-100 text-gray-800'; @endphp {{ $template->getTypes()[$template->type] }} @if($template->is_active) Activa @else Inactiva @endif
@if(!in_array($template->slug, ['order_confirmation', 'user_registration', 'contact_form']))
@csrf @method('DELETE')
@endif
Mostrando {{ $templates->firstItem() }} a {{ $templates->lastItem() }} de {{ $templates->total() }} resultados
{{ $templates->links() }}
@else

No hay plantillas de correo

Comienza creando tu primera plantilla de correo electrónico.

Crear Primera Plantilla
@endif
@endsection