Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/storage/framework/views/dfe6288f8c261321d2810bf24e65fdf8.php
Назад
<?php $__env->startSection('title'); ?> <title><?php echo e(__('Contact Us Page')); ?></title> <?php $__env->stopSection(); ?> <?php $__env->startSection('admin-content'); ?> <!-- Main 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(__('Contact Us Page')).'','list' => [ __('Dashboard') => route('admin.dashboard'), __('Contact Us 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(__('Contact Us Page')).'','list' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([ __('Dashboard') => route('admin.dashboard'), __('Contact Us 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('contact.us.translate')): ?> <hr> <?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.contact-us-page.index', ['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="row"> <div class="col-12"> <div class="card"> <div class="card-body"> <form action="<?php echo e(route('admin.contact-us-page.update', $contactUsPage->id)); ?>" method="POST" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="row"> <div class="col-md-12"> <input type="hidden" name="code" value="<?php echo e($code); ?>"> <?php if($code == $languages->first()->code): ?> <div class="form-group"> <?php if (isset($component)) { $__componentOriginala3483b1c5df3fe2b85e4d068c44e8362 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-textarea','data' => ['name' => 'phones','label' => ''.e(__('Phone')).'','value' => ''.old('phones', $contactUsPage->phones).'','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-textarea'); ?> <?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(['name' => 'phones','label' => ''.e(__('Phone')).'','value' => ''.old('phones', $contactUsPage->phones).'','required' => 'true']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362)): ?> <?php $attributes = $__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362; ?> <?php unset($__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362); ?> <?php endif; ?> <?php if (isset($__componentOriginala3483b1c5df3fe2b85e4d068c44e8362)): ?> <?php $component = $__componentOriginala3483b1c5df3fe2b85e4d068c44e8362; ?> <?php unset($__componentOriginala3483b1c5df3fe2b85e4d068c44e8362); ?> <?php endif; ?> </div> <div class="form-group"> <?php if (isset($component)) { $__componentOriginala3483b1c5df3fe2b85e4d068c44e8362 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-textarea','data' => ['name' => 'emails','label' => ''.e(__('Email')).'','value' => ''.old('emails', $contactUsPage->emails).'','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-textarea'); ?> <?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(['name' => 'emails','label' => ''.e(__('Email')).'','value' => ''.old('emails', $contactUsPage->emails).'','required' => 'true']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362)): ?> <?php $attributes = $__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362; ?> <?php unset($__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362); ?> <?php endif; ?> <?php if (isset($__componentOriginala3483b1c5df3fe2b85e4d068c44e8362)): ?> <?php $component = $__componentOriginala3483b1c5df3fe2b85e4d068c44e8362; ?> <?php unset($__componentOriginala3483b1c5df3fe2b85e4d068c44e8362); ?> <?php endif; ?> </div> <div class="form-group"> <?php if (isset($component)) { $__componentOriginala3483b1c5df3fe2b85e4d068c44e8362 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-textarea','data' => ['name' => 'map_embed_code','label' => ''.e(__('Google Map Embed Code')).'','value' => ''.old('map_embed_code', $contactUsPage->map_embed_code).'','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-textarea'); ?> <?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(['name' => 'map_embed_code','label' => ''.e(__('Google Map Embed Code')).'','value' => ''.old('map_embed_code', $contactUsPage->map_embed_code).'','required' => 'true']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362)): ?> <?php $attributes = $__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362; ?> <?php unset($__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362); ?> <?php endif; ?> <?php if (isset($__componentOriginala3483b1c5df3fe2b85e4d068c44e8362)): ?> <?php $component = $__componentOriginala3483b1c5df3fe2b85e4d068c44e8362; ?> <?php unset($__componentOriginala3483b1c5df3fe2b85e4d068c44e8362); ?> <?php endif; ?> </div> <?php endif; ?> <div class="form-group"> <?php if (isset($component)) { $__componentOriginala3483b1c5df3fe2b85e4d068c44e8362 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-textarea','data' => ['name' => 'address','dataTranslate' => 'true','label' => ''.e(__('Address')).'','value' => ''.$contactUsPage->getTranslation($code)->address.'','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-textarea'); ?> <?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(['name' => 'address','data-translate' => 'true','label' => ''.e(__('Address')).'','value' => ''.$contactUsPage->getTranslation($code)->address.'','required' => 'true']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362)): ?> <?php $attributes = $__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362; ?> <?php unset($__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362); ?> <?php endif; ?> <?php if (isset($__componentOriginala3483b1c5df3fe2b85e4d068c44e8362)): ?> <?php $component = $__componentOriginala3483b1c5df3fe2b85e4d068c44e8362; ?> <?php unset($__componentOriginala3483b1c5df3fe2b85e4d068c44e8362); ?> <?php endif; ?> </div> </div> </div> <?php if(auth()->guard('admin')->user()->can('contact.us.update')): ?> <?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; ?> <?php endif; ?> </form> </div> </div> </div> </div> </div> </section> </div> <?php $__env->stopSection(); ?> <?php if($code != $languages->first()->code): ?> <?php $__env->startPush('js'); ?> <script> "use strict"; 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 $__env->stopPush(); ?> <?php endif; ?> <?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/ContactUs/resources/views/contactuspage/index.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка