Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/storage/framework/views/197db9cb37d14aff6ae715bc544ef9c5.php
Назад
<?php $__env->startSection('title'); ?> <title><?php echo e(__('Edit Custom Page')); ?></title> <?php $__env->stopSection(); ?> <?php $__env->startSection('admin-content'); ?> <div class="main-content"> <section class="section"> <?php if (isset($component)) { $__componentOriginaldbbc880c47f621cda59b70d6eb356b2f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaldbbc880c47f621cda59b70d6eb356b2f = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.breadcrumb','data' => ['title' => ''.e(__('Edit Custom Page')).'','list' => [ __('Dashboard') => route('admin.dashboard'), __('Custom Page') => route('admin.custom-page.index'), __('Edit Custom Page') => '#', ]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.breadcrumb'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['title' => ''.e(__('Edit Custom Page')).'','list' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([ __('Dashboard') => route('admin.dashboard'), __('Custom Page') => route('admin.custom-page.index'), __('Edit Custom Page') => '#', ])]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaldbbc880c47f621cda59b70d6eb356b2f)): ?> <?php $attributes = $__attributesOriginaldbbc880c47f621cda59b70d6eb356b2f; ?> <?php unset($__attributesOriginaldbbc880c47f621cda59b70d6eb356b2f); ?> <?php endif; ?> <?php if (isset($__componentOriginaldbbc880c47f621cda59b70d6eb356b2f)): ?> <?php $component = $__componentOriginaldbbc880c47f621cda59b70d6eb356b2f; ?> <?php unset($__componentOriginaldbbc880c47f621cda59b70d6eb356b2f); ?> <?php endif; ?> <div class="section-body row"> <div class="col-12"> <div class="card"> <div class="card-header gap-3 justify-content-between align-items-center"> <h5 class="m-0 service_card"><?php echo e(__('Available Translations')); ?></h5> <?php if(auth()->guard('admin')->user()->can('custom.page.translate')): ?> <?php if($code !== $languages->first()->code): ?> <?php if (isset($component)) { $__componentOriginal60a020e5340f3f52bbc4501dc9f93102 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal60a020e5340f3f52bbc4501dc9f93102 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.button','data' => ['onclick' => 'translateAll()','id' => 'translate-btn','text' => __('Translate')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.button'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['onclick' => 'translateAll()','id' => 'translate-btn','text' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Translate'))]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal60a020e5340f3f52bbc4501dc9f93102)): ?> <?php $attributes = $__attributesOriginal60a020e5340f3f52bbc4501dc9f93102; ?> <?php unset($__attributesOriginal60a020e5340f3f52bbc4501dc9f93102); ?> <?php endif; ?> <?php if (isset($__componentOriginal60a020e5340f3f52bbc4501dc9f93102)): ?> <?php $component = $__componentOriginal60a020e5340f3f52bbc4501dc9f93102; ?> <?php unset($__componentOriginal60a020e5340f3f52bbc4501dc9f93102); ?> <?php endif; ?> <?php endif; ?> <?php endif; ?> </div> <div class="card-body"> <div class="lang_list_top"> <ul class="lang_list"> <?php $__currentLoopData = $languages = allLanguages(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li><a id="<?php echo e(request('code') == $language->code ? 'selected-language' : ''); ?>" href="<?php echo e(route('admin.custom-page.edit', ['custom_page' => $custom_page->id, 'code' => $language->code])); ?>"><i class="fas <?php echo e(request('code') == $language->code ? 'fa-eye' : 'fa-edit'); ?>"></i> <?php echo e($language->name); ?></a></li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> </div> <div class="mt-2 alert alert-danger" role="alert"> <?php $current_language = $languages->where('code', request()->get('code'))->first(); ?> <p><?php echo e(__('Your editing mode')); ?>:<b> <?php echo e($current_language?->name); ?></b></p> </div> </div> </div> </div> </div> <div class="section-body"> <div class="mt-4 row"> <div class="col-12"> <div class="card"> <div class="card-header d-flex justify-content-between"> <?php if (isset($component)) { $__componentOriginalf4c3b1ff82926c29625e584896e80d5a = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalf4c3b1ff82926c29625e584896e80d5a = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-title','data' => ['text' => __('Edit Custom Page')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-title'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['text' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Edit Custom Page'))]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalf4c3b1ff82926c29625e584896e80d5a)): ?> <?php $attributes = $__attributesOriginalf4c3b1ff82926c29625e584896e80d5a; ?> <?php unset($__attributesOriginalf4c3b1ff82926c29625e584896e80d5a); ?> <?php endif; ?> <?php if (isset($__componentOriginalf4c3b1ff82926c29625e584896e80d5a)): ?> <?php $component = $__componentOriginalf4c3b1ff82926c29625e584896e80d5a; ?> <?php unset($__componentOriginalf4c3b1ff82926c29625e584896e80d5a); ?> <?php endif; ?> <div> <?php if (isset($component)) { $__componentOriginal17c557c70b1fe4c4647ae4b30eca9298 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal17c557c70b1fe4c4647ae4b30eca9298 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.back-button','data' => ['href' => route('admin.custom-page.index')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.back-button'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('admin.custom-page.index'))]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal17c557c70b1fe4c4647ae4b30eca9298)): ?> <?php $attributes = $__attributesOriginal17c557c70b1fe4c4647ae4b30eca9298; ?> <?php unset($__attributesOriginal17c557c70b1fe4c4647ae4b30eca9298); ?> <?php endif; ?> <?php if (isset($__componentOriginal17c557c70b1fe4c4647ae4b30eca9298)): ?> <?php $component = $__componentOriginal17c557c70b1fe4c4647ae4b30eca9298; ?> <?php unset($__componentOriginal17c557c70b1fe4c4647ae4b30eca9298); ?> <?php endif; ?> </div> </div> <div class="card-body"> <form action="<?php echo e(route('admin.custom-page.update', [ 'custom_page' => $custom_page->id, 'code' => $code, ])); ?>" method="POST" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="row"> <div class="form-group col-md-8 offset-md-2"> <?php if (isset($component)) { $__componentOriginal63bead4e908ebc125014a497e80acb69 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal63bead4e908ebc125014a497e80acb69 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-input','data' => ['id' => 'title','name' => 'page_name','label' => ''.e(__('Page name')).'','dataTranslate' => 'true','placeholder' => ''.e(__('Page name')).'','value' => ''.e(old('page_name', $custom_page->getTranslation($code)->page_name)).'','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'title','name' => 'page_name','label' => ''.e(__('Page name')).'','data-translate' => 'true','placeholder' => ''.e(__('Page name')).'','value' => ''.e(old('page_name', $custom_page->getTranslation($code)->page_name)).'','required' => 'true']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $attributes = $__attributesOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__attributesOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> <?php if (isset($__componentOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $component = $__componentOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__componentOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> </div> <?php if($code == $languages->first()->code): ?> <div class="form-group col-md-8 offset-md-2"> <?php if (isset($component)) { $__componentOriginal63bead4e908ebc125014a497e80acb69 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal63bead4e908ebc125014a497e80acb69 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-input','data' => ['id' => 'slug','name' => 'slug','label' => ''.e(__('Slug')).'','placeholder' => ''.e(__('Enter Slug')).'','value' => ''.e(old('slug', $custom_page->slug)).'','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'slug','name' => 'slug','label' => ''.e(__('Slug')).'','placeholder' => ''.e(__('Enter Slug')).'','value' => ''.e(old('slug', $custom_page->slug)).'','required' => 'true']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $attributes = $__attributesOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__attributesOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> <?php if (isset($__componentOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $component = $__componentOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__componentOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> </div> <?php endif; ?> <div class="form-group col-md-8 offset-md-2"> <?php if (isset($component)) { $__componentOriginal9f0e5ab70d2157b06099864da1513098 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9f0e5ab70d2157b06099864da1513098 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-editor','data' => ['dataTranslate' => 'true','name' => 'description','label' => ''.e(__('Description')).'','value' => ''.old('description', $custom_page->getTranslation($code)->description).'','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-editor'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['data-translate' => 'true','name' => 'description','label' => ''.e(__('Description')).'','value' => ''.old('description', $custom_page->getTranslation($code)->description).'','required' => 'true']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9f0e5ab70d2157b06099864da1513098)): ?> <?php $attributes = $__attributesOriginal9f0e5ab70d2157b06099864da1513098; ?> <?php unset($__attributesOriginal9f0e5ab70d2157b06099864da1513098); ?> <?php endif; ?> <?php if (isset($__componentOriginal9f0e5ab70d2157b06099864da1513098)): ?> <?php $component = $__componentOriginal9f0e5ab70d2157b06099864da1513098; ?> <?php unset($__componentOriginal9f0e5ab70d2157b06099864da1513098); ?> <?php endif; ?> </div> </div> <div class="row"> <div class="text-center col-md-8 offset-md-2"> <?php if (isset($component)) { $__componentOriginalf3ad9c349c70d58844f8581b0990debd = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalf3ad9c349c70d58844f8581b0990debd = $attributes; } ?> <?php $component = App\View\Components\Admin\UpdateButton::resolve(['text' => __('Update')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.update-button'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Admin\UpdateButton::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalf3ad9c349c70d58844f8581b0990debd)): ?> <?php $attributes = $__attributesOriginalf3ad9c349c70d58844f8581b0990debd; ?> <?php unset($__attributesOriginalf3ad9c349c70d58844f8581b0990debd); ?> <?php endif; ?> <?php if (isset($__componentOriginalf3ad9c349c70d58844f8581b0990debd)): ?> <?php $component = $__componentOriginalf3ad9c349c70d58844f8581b0990debd; ?> <?php unset($__componentOriginalf3ad9c349c70d58844f8581b0990debd); ?> <?php endif; ?> </div> </div> </form> </div> </div> </div> </div> </div> </section> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('css'); ?> <style> .image-preview label, #callback-preview label { top: 170px !important; color: white !important; background-color: black !important; } </style> <?php $__env->stopPush(); ?> <?php $__env->startPush('js'); ?> <?php if($code == $languages->first()->code): ?> <script src="<?php echo e(asset('backend/js/jquery.uploadPreview.min.js')); ?>"></script> <script> $.uploadPreview({ input_field: "#image-upload", preview_box: "#image-preview", label_field: "#image-label", label_default: "<?php echo e(__('Choose Icon')); ?>", label_selected: "<?php echo e(__('Change Icon')); ?>", no_label: false, success_callback: null }); </script> <?php else: ?> <script> var isTranslatingInputs = true; function translateOneByOne(inputs, index = 0) { if (index >= inputs.length) { if (isTranslatingInputs) { isTranslatingInputs = false; translateAllTextarea(); } $('#translate-btn').prop('disabled', false); $('#update-btn').prop('disabled', false); return; } var $input = $(inputs[index]); var inputValue = $input.val(); if (inputValue) { $.ajax({ url: "<?php echo e(route('admin.languages.update.single')); ?>", type: "POST", data: { lang: '<?php echo e($code); ?>', text: inputValue, _token: '<?php echo e(csrf_token()); ?>' }, dataType: 'json', beforeSend: function() { $input.prop('disabled', true); iziToast.show({ timeout: false, close: true, theme: 'dark', icon: 'loader', iconUrl: 'https://hub.izmirnic.com/Files/Images/loading.gif', title: "<?php echo e(__('Translation Processing, please wait...')); ?>", position: 'center', }); }, success: function(response) { $input.val(response); if ($input.hasClass('summernote')) { console.log($input); var inputId = $input.attr('id'); tinymce.get(inputId).setContent(response); } $input.prop('disabled', false); iziToast.destroy(); toastr.success("<?php echo e(__('Translated Successfully')); ?>"); translateOneByOne(inputs, index + 1); }, error: function(jqXHR, textStatus, errorThrown) { console.error(textStatus, errorThrown); iziToast.destroy(); toastr.error('Error', 'Error'); } }); } else { translateOneByOne(inputs, index + 1); } } function translateAll() { iziToast.question({ timeout: 20000, close: false, overlay: true, displayMode: 'once', id: 'question', zindex: 999, title: "<?php echo e(__('This will take a while!')); ?>", message: "<?php echo e(__('Are you sure?')); ?>", position: 'center', buttons: [ ["<button><b><?php echo e(__('YES')); ?></b></button>", function(instance, toast) { var isDemo = "<?php echo e(env('APP_MODE') ?? 'LIVE'); ?>"; if (isDemo == 'DEMO') { instance.hide({ transitionOut: 'fadeOut' }, toast, 'button'); toastr.error("<?php echo e(__('This Is Demo Version. You Can Not Change Anything')); ?>"); return; } $('#translate-btn').prop('disabled', true); $('#update-btn').prop('disabled', true); instance.hide({ transitionOut: 'fadeOut' }, toast, 'button'); var inputs = $('input[data-translate="true"]').toArray(); translateOneByOne(inputs); }, true], ["<button><?php echo e(__('NO')); ?></button>", function(instance, toast) { instance.hide({ transitionOut: 'fadeOut' }, toast, 'button'); }], ], onClosing: function(instance, toast, closedBy) {}, onClosed: function(instance, toast, closedBy) {} }); }; function translateAllTextarea() { var inputs = $('textarea[data-translate="true"]').toArray(); if (inputs.length === 0) { return; } translateOneByOne(inputs); } $(document).ready(function() { var selectedTranslation = $('#selected-language').text(); var btnText = "<?php echo e(__('Translate to')); ?> " + selectedTranslation; $('#translate-btn').text(btnText); }); </script> <?php endif; ?> <script> (function($) { "use strict"; $(document).ready(function() { $("#title").on("keyup", function(e) { $("#slug").val(convertToSlug($(this).val())); }) }); })(jQuery); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('admin.master_layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/lekhnath/silverray.com.au/Modules/CustomPage/resources/views/edit.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0.11 |
proxy
|
phpinfo
|
Настройка