@extends('layouts.admin') @section('page-title') {{$notification_template->name}} @endsection @section('breadcrumb') @endsection @php $chatgpt = App\Models\Utility::getValByName('enable_chatgpt'); $languages = \App\Models\Utility::languages(); $lang = isset($curr_noti_tempLang->lang) ? $curr_noti_tempLang->lang : 'en'; if ($lang == null) { $lang = 'en'; } @endphp @section('content') @if ($chatgpt == 'on')
{{ __(' Generate With AI') }}
@endif
{{ __('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 $key => $lang) {{ Str::ucfirst($lang) }} @endforeach
{{ Form::model($curr_noti_tempLang, ['route' => ['notification-templates.update', $curr_noti_tempLang->parent_id], 'method' => 'PUT']) }}
{{ Form::label('name', __('Name'), ['class' => 'col-form-label text-dark']) }} {{ Form::text('name', $notification_template->name, ['class' => 'form-control font-style', 'disabled' => 'disabled']) }}
{{ Form::label('content', __('Notification Message'), ['class' => 'col-form-label text-dark']) }} {{ Form::textarea('content', $curr_noti_tempLang->content, ['class' => 'form-control font-style', 'required' => 'required','cols'=>50,'rows'=>10]) }}
{{ Form::hidden('lang', null) }}
{{ Form::close() }}
@endsection