Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/storage/framework/views/11d5867b09e23f4399f7be7d3bb80ad2.php
Назад
<?php $__env->startSection('title'); ?> <title><?php echo e(__('Edit Post')); ?></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 Post')).'','list' => [ __('Dashboard') => route('admin.dashboard'), __('Blog List') => route('admin.blogs.index'), __('Edit Post') => '#', ]]] + (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 Post')).'','list' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([ __('Dashboard') => route('admin.dashboard'), __('Blog List') => route('admin.blogs.index'), __('Edit Post') => '#', ])]); ?> <?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('blog.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.blogs.edit', ['blog' => $blog->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 Post')]] + (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 Post'))]); ?> <?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.blogs.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.blogs.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.blogs.update', [ 'blog' => $blog->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-12"> <?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','dataTranslate' => 'true','name' => 'title','label' => ''.e(__('Title')).'','placeholder' => ''.e(__('Enter Title')).'','value' => ''.e($blog->getTranslation($code)->title).'','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','data-translate' => 'true','name' => 'title','label' => ''.e(__('Title')).'','placeholder' => ''.e(__('Enter Title')).'','value' => ''.e($blog->getTranslation($code)->title).'','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"> <?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($blog->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($blog->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> <div class="form-group col-md-4"> <?php if (isset($component)) { $__componentOriginal60bcc951c550d5b77fb7cdd189e510ca = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal60bcc951c550d5b77fb7cdd189e510ca = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-select','data' => ['name' => 'blog_category_id','id' => 'blog_category_id','class' => 'select2','label' => ''.e(__('Category')).' ','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-select'); ?> <?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' => 'blog_category_id','id' => 'blog_category_id','class' => 'select2','label' => ''.e(__('Category')).' ','required' => 'true']); ?> <?php if (isset($component)) { $__componentOriginalb806ea0630d83bcbe8e487a031fcf0fb = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalb806ea0630d83bcbe8e487a031fcf0fb = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.select-option','data' => ['value' => '','text' => ''.e(__('Select Category')).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.select-option'); ?> <?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(['value' => '','text' => ''.e(__('Select Category')).'']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalb806ea0630d83bcbe8e487a031fcf0fb)): ?> <?php $attributes = $__attributesOriginalb806ea0630d83bcbe8e487a031fcf0fb; ?> <?php unset($__attributesOriginalb806ea0630d83bcbe8e487a031fcf0fb); ?> <?php endif; ?> <?php if (isset($__componentOriginalb806ea0630d83bcbe8e487a031fcf0fb)): ?> <?php $component = $__componentOriginalb806ea0630d83bcbe8e487a031fcf0fb; ?> <?php unset($__componentOriginalb806ea0630d83bcbe8e487a031fcf0fb); ?> <?php endif; ?> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if (isset($component)) { $__componentOriginalb806ea0630d83bcbe8e487a031fcf0fb = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalb806ea0630d83bcbe8e487a031fcf0fb = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.select-option','data' => ['selected' => $category->id == old('blog_category_id', $blog->blog_category_id),'value' => ''.e($category->id).'','text' => ''.e($category->title).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.select-option'); ?> <?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(['selected' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($category->id == old('blog_category_id', $blog->blog_category_id)),'value' => ''.e($category->id).'','text' => ''.e($category->title).'']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalb806ea0630d83bcbe8e487a031fcf0fb)): ?> <?php $attributes = $__attributesOriginalb806ea0630d83bcbe8e487a031fcf0fb; ?> <?php unset($__attributesOriginalb806ea0630d83bcbe8e487a031fcf0fb); ?> <?php endif; ?> <?php if (isset($__componentOriginalb806ea0630d83bcbe8e487a031fcf0fb)): ?> <?php $component = $__componentOriginalb806ea0630d83bcbe8e487a031fcf0fb; ?> <?php unset($__componentOriginalb806ea0630d83bcbe8e487a031fcf0fb); ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal60bcc951c550d5b77fb7cdd189e510ca)): ?> <?php $attributes = $__attributesOriginal60bcc951c550d5b77fb7cdd189e510ca; ?> <?php unset($__attributesOriginal60bcc951c550d5b77fb7cdd189e510ca); ?> <?php endif; ?> <?php if (isset($__componentOriginal60bcc951c550d5b77fb7cdd189e510ca)): ?> <?php $component = $__componentOriginal60bcc951c550d5b77fb7cdd189e510ca; ?> <?php unset($__componentOriginal60bcc951c550d5b77fb7cdd189e510ca); ?> <?php endif; ?> </div> <?php endif; ?> <div class="form-group col-md-12"> <?php if (isset($component)) { $__componentOriginala3483b1c5df3fe2b85e4d068c44e8362 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-textarea','data' => ['id' => 'short_description','name' => 'short_description','label' => ''.e(__('Short Description')).'','placeholder' => ''.e(__('Enter Short Description')).'','dataTranslate' => 'true','value' => ''.e($blog->getTranslation($code)->short_description).'','maxlength' => '2000','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(['id' => 'short_description','name' => 'short_description','label' => ''.e(__('Short Description')).'','placeholder' => ''.e(__('Enter Short Description')).'','data-translate' => 'true','value' => ''.e($blog->getTranslation($code)->short_description).'','maxlength' => '2000','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 col-md-12"> <?php if (isset($component)) { $__componentOriginal9f0e5ab70d2157b06099864da1513098 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9f0e5ab70d2157b06099864da1513098 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-editor','data' => ['id' => 'description','dataTranslate' => 'true','name' => 'description','label' => ''.e(__('Description')).'','value' => ''.$blog->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(['id' => 'description','data-translate' => 'true','name' => 'description','label' => ''.e(__('Description')).'','value' => ''.$blog->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> <?php if($code == $languages->first()->code): ?> <div class="form-group col-md-4"> <?php if (isset($component)) { $__componentOriginal3ca2e2bd90d344b6948d77ba703b0222 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal3ca2e2bd90d344b6948d77ba703b0222 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-switch','data' => ['name' => 'show_homepage','label' => ''.e(__('Show on homepage')).'','checked' => $blog->show_homepage == 1]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-switch'); ?> <?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' => 'show_homepage','label' => ''.e(__('Show on homepage')).'','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($blog->show_homepage == 1)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal3ca2e2bd90d344b6948d77ba703b0222)): ?> <?php $attributes = $__attributesOriginal3ca2e2bd90d344b6948d77ba703b0222; ?> <?php unset($__attributesOriginal3ca2e2bd90d344b6948d77ba703b0222); ?> <?php endif; ?> <?php if (isset($__componentOriginal3ca2e2bd90d344b6948d77ba703b0222)): ?> <?php $component = $__componentOriginal3ca2e2bd90d344b6948d77ba703b0222; ?> <?php unset($__componentOriginal3ca2e2bd90d344b6948d77ba703b0222); ?> <?php endif; ?> </div> <div class="form-group col-md-4"> <?php if (isset($component)) { $__componentOriginal3ca2e2bd90d344b6948d77ba703b0222 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal3ca2e2bd90d344b6948d77ba703b0222 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-switch','data' => ['name' => 'is_popular','label' => ''.e(__('Mark as Popular')).'','checked' => $blog->is_popular == 1]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-switch'); ?> <?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' => 'is_popular','label' => ''.e(__('Mark as Popular')).'','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($blog->is_popular == 1)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal3ca2e2bd90d344b6948d77ba703b0222)): ?> <?php $attributes = $__attributesOriginal3ca2e2bd90d344b6948d77ba703b0222; ?> <?php unset($__attributesOriginal3ca2e2bd90d344b6948d77ba703b0222); ?> <?php endif; ?> <?php if (isset($__componentOriginal3ca2e2bd90d344b6948d77ba703b0222)): ?> <?php $component = $__componentOriginal3ca2e2bd90d344b6948d77ba703b0222; ?> <?php unset($__componentOriginal3ca2e2bd90d344b6948d77ba703b0222); ?> <?php endif; ?> </div> <div class="form-group col-md-4"> <?php if (isset($component)) { $__componentOriginal3ca2e2bd90d344b6948d77ba703b0222 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal3ca2e2bd90d344b6948d77ba703b0222 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-switch','data' => ['name' => 'status','label' => ''.e(__('Status')).'','checked' => $blog->status == 1]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-switch'); ?> <?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' => 'status','label' => ''.e(__('Status')).'','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($blog->status == 1)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal3ca2e2bd90d344b6948d77ba703b0222)): ?> <?php $attributes = $__attributesOriginal3ca2e2bd90d344b6948d77ba703b0222; ?> <?php unset($__attributesOriginal3ca2e2bd90d344b6948d77ba703b0222); ?> <?php endif; ?> <?php if (isset($__componentOriginal3ca2e2bd90d344b6948d77ba703b0222)): ?> <?php $component = $__componentOriginal3ca2e2bd90d344b6948d77ba703b0222; ?> <?php unset($__componentOriginal3ca2e2bd90d344b6948d77ba703b0222); ?> <?php endif; ?> </div> <?php endif; ?> <div class="form-group col-md-12"> <?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' => 'seo_title','name' => 'seo_title','label' => ''.e(__('SEO Title')).'','placeholder' => ''.e(__('Enter SEO Title')).'','dataTranslate' => 'true','value' => ''.e($blog->getTranslation($code)->seo_title).'']] + (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' => 'seo_title','name' => 'seo_title','label' => ''.e(__('SEO Title')).'','placeholder' => ''.e(__('Enter SEO Title')).'','data-translate' => 'true','value' => ''.e($blog->getTranslation($code)->seo_title).'']); ?> <?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> <div class="form-group col-md-12"> <?php if (isset($component)) { $__componentOriginala3483b1c5df3fe2b85e4d068c44e8362 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginala3483b1c5df3fe2b85e4d068c44e8362 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-textarea','data' => ['id' => 'seo_description','name' => 'seo_description','label' => ''.e(__('SEO Description')).'','placeholder' => ''.e(__('Enter SEO Description')).'','dataTranslate' => 'true','value' => ''.e($blog->getTranslation($code)->seo_description).'','maxlength' => '2000']] + (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(['id' => 'seo_description','name' => 'seo_description','label' => ''.e(__('SEO Description')).'','placeholder' => ''.e(__('Enter SEO Description')).'','data-translate' => 'true','value' => ''.e($blog->getTranslation($code)->seo_description).'','maxlength' => '2000']); ?> <?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 if($code == $languages->first()->code): ?> <div class="form-group col-md-12"> <?php if (isset($component)) { $__componentOriginalf3bb4560a8dbbb737e6056a1bec3127d = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalf3bb4560a8dbbb737e6056a1bec3127d = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-image-preview','data' => ['image' => $blog->image]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-image-preview'); ?> <?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(['image' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($blog->image)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalf3bb4560a8dbbb737e6056a1bec3127d)): ?> <?php $attributes = $__attributesOriginalf3bb4560a8dbbb737e6056a1bec3127d; ?> <?php unset($__attributesOriginalf3bb4560a8dbbb737e6056a1bec3127d); ?> <?php endif; ?> <?php if (isset($__componentOriginalf3bb4560a8dbbb737e6056a1bec3127d)): ?> <?php $component = $__componentOriginalf3bb4560a8dbbb737e6056a1bec3127d; ?> <?php unset($__componentOriginalf3bb4560a8dbbb737e6056a1bec3127d); ?> <?php endif; ?> </div> <?php endif; ?> </div> <div class="row"> <div class="col-md-12"> <?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('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 Image')); ?>", label_selected: "<?php echo e(__('Change Image')); ?>", no_label: false, success_callback: null }); </script> <script> (function($) { "use strict"; $(document).ready(function() { $("#title").on("keyup", function(e) { $("#slug").val(convertToSlug($(this).val())); }) }); })(jQuery); function convertToSlug(Text) { return Text .toLowerCase() .replace(/[^\w ]+/g, '') .replace(/ +/g, '-'); } </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; ?> <?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/Blog/resources/views/Post/edit.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка