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

{{ $template->name }}

Detalles de la plantilla de correo electrónico

Editar Volver

Detalles de la Plantilla

{{ $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

{{ $template->subject }}

@if($template->variables && count($template->variables) > 0)
@foreach($template->variables as $variable) { {{ $variable }} } @endforeach
@else

No se han definido variables personalizadas

@endif
{{ $template->body }}

Variables Disponibles

Variables predeterminadas para este tipo de plantilla

@foreach($template->getDefaultVariables() as $variable) { {{ $variable }} } @endforeach

Información de la Plantilla

Creada: {{ $template->created_at->format('d/m/Y H:i') }}
Actualizada: {{ $template->updated_at->format('d/m/Y H:i') }}
Longitud del contenido: {{ strlen($template->body) }} caracteres

Acciones Rápidas

Editar Plantilla @if(!in_array($template->slug, ['order_confirmation', 'user_registration', 'contact_form']))
@csrf @method('DELETE')
@endif
@endsection