@extends('central.super.layout') @section('title', __('central.EditEmailTemplate') . ': ' . $template->name) @section('content') @php $defaultLocale = \App\Models\Central\CentralLanguage::defaultLocale(); $isTranslation = !empty($currentLocale); $editSubject = $isTranslation ? old('subject', $translation->subject ?? '') : old('subject', $template->subject); $editBody = $isTranslation ? old('body_html', $translation->body_html ?? '') : old('body_html', $template->body_html); $translatedLocales = $template->translations->pluck('locale')->toArray(); @endphp
{{ __('central.Trigger') }}: {{ $template->trigger_key }}
{{ __('central.EditingTranslation') }}: {{ $languages->firstWhere('locale', $currentLocale)->name ?? strtoupper($currentLocale) }}
{{ __('central.TranslationFallbackNotice') }}