���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/zhaagvlk/web.zhaap.com/resources__1b5d5ff/views/notification_templates/index.blade.php
���ѧ٧ѧ�
@extends('layouts.admin') @php $users = \Auth::user(); $notification = $notification_template->name; $lang = isset($curr_noti_tempLang->lang) ? $curr_noti_tempLang->lang : 'en'; if ($lang == null) { $lang = 'en'; } $LangName = \App\Models\Language::where('code', $lang)->first(); $plan = \App\Models\Utility::getChatGPTSettings(); @endphp @section('page-title') {{ $notification_template->name }} @endsection @section('breadcrumb') <li class="breadcrumb-item"><a href="{{ route('dashboard') }}">{{ __('Dashboard') }}</a></li> <li class="breadcrumb-item active" aria-current="page">{{ __('Notification Template') }}</li> @endsection @push('css-page') <link rel="stylesheet" href=" {{ Module::asset('LandingPage:Resources/assets/css/summernote/summernote-bs4.css')}}" /> @endpush @push('script-page') <script src="{{ Module::asset('LandingPage:Resources/assets/js/plugins/summernote-bs4.js')}}" referrerpolicy="origin"></script> <script> $(document).ready(function() { $('.summernote-simple').summernote({ toolbar: [ ['style', ['style']], ['font', ['bold', 'italic', 'underline', 'strikethrough']], ['list', ['ul', 'ol', 'paragraph']], ['insert', ['link', 'unlink']], ], height: 200, }); }); </script> @endpush @section('action-btn') <div class="row"> <div class="text-end mb-3"> <div class="text-end"> <div class="d-flex justify-content-end drp-languages"> <ul class="list-unstyled mb-0 m-2"> <li class="dropdown dash-h-item drp-language"> <a class="dash-head-link dropdown-toggle arrow-none me-0" data-bs-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false" id="dropdownLanguage"> <span class="drp-text hide-mob text-primary">{{ ucFirst(isset($LangName->fullName) ? $LangName->fullName : 'English') }}</span> <i class="ti ti-chevron-down drp-arrow nocolor"></i> </a> <div class="dropdown-menu dash-h-dropdown dropdown-menu-end" aria-labelledby="dropdownLanguage"> @foreach ($languages as $code => $lang) <a href="{{ route('notification-templates.index', [$notification_template->id, $code]) }}" class="dropdown-item {{ $curr_noti_tempLang->lang == $lang ? 'text-primary' : '' }}">{{ ucFirst($lang) }}</a> @endforeach </div> </li> </ul> <ul class="list-unstyled mb-0 m-2"> <li class="dropdown dash-h-item drp-language"> <a class="dash-head-link dropdown-toggle arrow-none me-0" data-bs-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false" id="dropdownLanguage"> <span class="drp-text hide-mob text-primary">{{ __('Template: ') }}{{ $notification_template->name }}</span> <i class="ti ti-chevron-down drp-arrow nocolor"></i> </a> <div class="dropdown-menu dash-h-dropdown dropdown-menu-end" aria-labelledby="dropdownLanguage"> @foreach ($notification_templates as $notification_template) <a href="{{ route('notification-templates.index', [$notification_template->id, Request::segment(3) ? Request::segment(3) : \Auth::user()->lang]) }}" class="dropdown-item {{ $notification_template->name == $notification ? 'text-primary' : '' }}">{{ $notification_template->name }} </a> @endforeach </div> </li> </ul> @if ($plan->enable_chatgpt == 'on') <div class="mb-0 m-2"> <a href="#" data-size="md" class="btn btn-primary " data-ajax-popup-over="true" data-url="{{ route('generate', ['notification template']) }}" data-bs-placement="top" data-title="{{ __('Generate content with AI') }}"> <i class="fas fa-robot"></i> <span>{{ __('Generate with AI') }}</span> </a> </div> @endif </div> </div> </div> </div> </div> @endsection @section('content') <div class="row"> <div class="col-xl-12"> <div class="card"> <div class="card-body"> <h5 class="font-weight-bold pb-3">{{ __('Placeholders') }}</h5> <div class="col-lg-12 col-md-12 col-sm-12"> <div class="card"> <div class="card-header card-body"> <div class="row text-xs"> <h6 class="font-weight-bold mb-4">{{ __('Variables') }}</h6> @php $variables = json_decode($curr_noti_tempLang->variables); @endphp @if (!empty($variables) > 0) @foreach ($variables as $key => $var) <div class="col-6 pb-1"> <p class="mb-1">{{ __($key) }} : <span class="pull-right text-primary">{{ '{' . $var . '}' }}</span></p> </div> @endforeach @endif </div> </div> </div> </div> {{ Form::model($curr_noti_tempLang, ['route' => ['notification-templates.update', $curr_noti_tempLang->parent_id], 'method' => 'PUT']) }} <div class="row"> <div class="form-group col-12"> {{ Form::label('content', __('Notification Message'), ['class' => 'form-label text-dark']) }} {{ Form::textarea('content', $curr_noti_tempLang->content, ['class' => 'summernote-simple form-control', 'required' => 'required', 'rows' => '3', 'placeholder' => 'EX. Hello, {company_name}']) }} <small>{{ __('A variable is to be used in such a way.') }} <span class="text-primary">{{ __('Ex. Hello, {company_name}') }}</span></small> </div> </div> <hr> <div class="col-md-12 text-end"> {{ Form::hidden('lang', null) }} <input type="submit" value="{{ __('Save Changes') }}" class="btn btn-print-invoice btn-primary m-r-10"> </div> {{ Form::close() }} </div> </div> </div> </div> @endsection
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.08 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�