@extends('layouts.admin') @section('title') {{ __('Notification Template') }} @endsection @section('action-button')
{{ ucfirst($languages[$curr_noti_tempLang->lang]) }}
@foreach ($languages as $code =>$lang)
{{ ucfirst($lang) }}
@endforeach
{{ __('Template: ') }} {{ $notification_template->name }}
@foreach ($notification_templates as $notification_template)
{{ $notification_template->name }}
@endforeach
@endsection @section('content')
{{ __('Placeholders') }}
{{ __('Generate with AI') }}
{{ __('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', $curr_noti_tempLang->parent_id], 'method' => 'PUT']) }}
{{ Form::label('content', __('Notification Message'), ['class' => 'form-label text-dark ']) }} {{ Form::textarea('content', $curr_noti_tempLang->content, ['class' => 'form-control', 'required' => 'required', 'rows' => '04', 'placeholder' => 'EX. Hello, {app_name}']) }}
{{ __('A variable is to be used in such a way.') }}
{{ __('Ex. TaskGo, {app_name}') }}
{{ Form::hidden('lang', null) }} {{ Form::submit(__('Save changes'), ['class' => 'btn btn-sm btn-print-invoice btn-primary rounded-pill']) }}
{{ Form::close() }}
@endsection