@extends('layouts.app') @push('styles') @endpush @section('content') @php $translationLanguages = ($appLanguages ?? collect()) ->filter(fn ($language) => filled($language->code)) ->values(); $notificationTranslations = $notification->translations->keyBy(fn ($translation) => strtolower($translation->locale)); $shortCodesDisplay = implode(', ', $notification->short_code ?? []); @endphp {{-- --}}
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
Edit Email Notification Template
@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
Snake case key (locked, not editable).
@error('event')
{{ $message }}
@enderror
Locked; cannot be edited.
@error('short_code')
{{ $message }}
@enderror
@error('status')
{{ $message }}
@enderror
@error('subject_title')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
Default message for this notification type.
@error('content')
{{ $message }}
@enderror
@if($translationLanguages->count())
Translations

Manual translation fields. Default locale: {{ strtoupper($defaultTranslationLocale) }}.

@include('includes.partial.auto_translate.edit_toggle')
@foreach($translationLanguages as $language) @php $translationLanguageName = $language->language->name ?? ($language->data['name'] ?? strtoupper($language->code)); $translation = $notificationTranslations->get(strtolower($language->code)); @endphp
@error('translations.' . $language->code . '.subject_title')
{{ $message }}
@enderror
@error('translations.' . $language->code . '.content')
{{ $message }}
@enderror
@endforeach
@endif
Back
@endsection @push('scripts') @endpush