@extends('layouts.admin') @section('page-title') {{ __(' Notification Templates') }} @endsection @section('action-button') @if ($currentWorkspace->is_chagpt_enable()) {{ __('Generate with AI') }} @endif @endsection @section('links') @if (\Auth::guard('client')->check()) @else @endif @endsection @push('css-page') @endpush @push('scripts') @endpush @section('content')
{{ __('Variables') }}
@php $variables = json_decode($curr_noti_tempLang->variables); @endphp @if (!empty($variables) > 0) @foreach ($variables as $key => $var)

{{ __($key) }} : {{ '{' . $var . '}' }}

@endforeach @endif
@foreach ($languages as $langCode => $lang) {{ ucfirst(\App\Models\Utility::getlang_fullname($langCode)) }} @endforeach
{{ Form::model($curr_noti_tempLang, ['route' => ['notification-templates.update', [$currentWorkspace->slug, $curr_noti_tempLang->parent_id]], 'method' => 'PUT', 'class' => 'needs-validation', 'novalidate']) }}
{{ Form::label('name', __('Name'), ['class' => 'col-form-label text-dark']) }} {{ Form::text('name', $notification_template->name, ['class' => 'form-control font-style', 'required' => 'required', 'disabled' => 'disabled']) }}
{{ Form::label('content', __('Email Message'), ['class' => 'col-form-label text-dark']) }} {{ Form::textarea('content', $curr_noti_tempLang->content, ['class' => 'summernote-simple', 'id' => 'content', 'required' => 'required']) }}
{{ Form::hidden('lang', null) }}
{{ Form::close() }}
{{--
{{ __('Placeholders') }}
{{ __('Variables') }}
@php $variables = json_decode($curr_noti_tempLang->variables); @endphp @if (!empty($variables) > 0) @foreach ($variables as $key => $var)

{{ __($key) }} : {{ '{' . $var . '}' }}

@endforeach @endif
{{ Form::model($curr_noti_tempLang, ['route' => ['notification-templates.update', [$currentWorkspace->slug, $curr_noti_tempLang->parent_id]], 'method' => 'PUT', 'class' => 'needs-validation', 'novalidate']) }}
{{ Form::label('content', __('Notification Message'), ['class' => 'form-label text-dark']) }} {{ Form::textarea('content', $curr_noti_tempLang->content, ['class' => 'form-control summernote', 'id' => 'summernote', 'required' => 'required', 'rows' => '04', 'placeholder' => 'EX. Hello, {company_name}']) }} {{ __('A variable is to be used in such a way.') }} {{ __('Ex. Hello, {company_name}') }}

{{ Form::hidden('lang', null) }}
{{ Form::close() }}
--}}
@endsection