@extends('layouts.admin') @section('style') @endSection @section('script') @endSection @section('content') @php $page_title = $template? __('admin_dashboard.titleEditNotificationTemplate'). ' '. $template->slug.'' : __('admin_dashboard.titleCreateNotificationTemplate'); $parent = 'admin.notification.template.list'; @endphp @csrf Details Type * @foreach($types as $type => $label) type ?? $old['type'])) ? 'selected' : '' }} >{{ $label }} @endforeach @if ($errors->has('type')) {{ $errors->first('type') }} @endif Language * @foreach($locales as $locale) language ?? $old['language'])) ? 'selected' : '' }} >{{ $locale }} @endforeach @if ($errors->has('language')) {{ $errors->first('language') }} @endif Subject * @if($errors->has('subject')) {{ $errors->first('subject') }} @endif Content * {{ old('content') ?? $template->content }} @if($errors->has('content')) {{ $errors->first('content') }} @endif Status * @foreach($statuses as $status => $label) status ?? $old['status'])) ? 'selected' : '' }} >{{ $label }} @endforeach @if ($errors->has('status')) {{ $errors->first('status') }} @endif @endsection