{{ $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($template->variables && count($template->variables) > 0)
@foreach($template->variables as $variable)
{ {{ $variable }} }
@endforeach
@else
No se han definido variables personalizadas
@endif