@extends('layouts.app') @section('content') @php $translationLanguages = ($appLanguages ?? collect()) ->filter(fn ($language) => filled($language->code)) ->values(); @endphp
Create Notification Template

Add name, event key, type, placeholders and message.

@csrf
@error('name')
{{ $message }}
@enderror
@error('notification_type')
{{ $message }}
@enderror
Snake case key, e.g. order_created.
@error('event')
{{ $message }}
@enderror
Comma separated placeholders that appear in content.
@error('short_code')
{{ $message }}
@enderror
@error('subject_title')
{{ $message }}
@enderror
@error('status')
{{ $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.create_toggle')
@foreach($translationLanguages as $language) @php $translationLanguageName = $language->language->name ?? ($language->data['name'] ?? strtoupper($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