관리-도구
편집 파일: 6bee69d486dc849175d10d2bb91a0483.php
<?php $locale = request()->locale ?? app()->getLocale(); $translations = []; $page = $page ?? null; if ($page && $locale) { $translations = parse_translation($page, $locale); } ?> <?php if (isset($component)) { $__componentOriginald7f77a02f879fd4954ea3c39c4e952cb = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb = $attributes; } ?> <?php $component = Modules\LMS\View\Components\Dashboard\Layout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('dashboard-layout'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Modules\LMS\View\Components\Dashboard\Layout::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php $__env->slot('title', null, []); ?> <?php echo e(translate('Edit Page')); ?> <?php $__env->endSlot(); ?> <!-- BREADCRUMB --> <?php if (isset($component)) { $__componentOriginalcf27f2c2c873893339708d5fdeeb6984 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalcf27f2c2c873893339708d5fdeeb6984 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => '7ee9c4f86007ba41bc79bbfab1cd8a68::admin.breadcrumb','data' => ['backUrl' => ''.e(route('page.index')).'','title' => ''.e(isset($page) ? 'Page Edit' : 'Page Create').'','pageTo' => ' Page']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('portal::admin.breadcrumb'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes(['back-url' => ''.e(route('page.index')).'','title' => ''.e(isset($page) ? 'Page Edit' : 'Page Create').'','page-to' => ' Page']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalcf27f2c2c873893339708d5fdeeb6984)): ?> <?php $attributes = $__attributesOriginalcf27f2c2c873893339708d5fdeeb6984; ?> <?php unset($__attributesOriginalcf27f2c2c873893339708d5fdeeb6984); ?> <?php endif; ?> <?php if (isset($__componentOriginalcf27f2c2c873893339708d5fdeeb6984)): ?> <?php $component = $__componentOriginalcf27f2c2c873893339708d5fdeeb6984; ?> <?php unset($__componentOriginalcf27f2c2c873893339708d5fdeeb6984); ?> <?php endif; ?> <?php if(is_active('page.translate') === 'active'): ?> <div class="flex items-center justify-end gap-4 mb-2"> <h2 class="card-title"><?php echo e(translate('Translate Language')); ?></h2> <form method="GET" class="sm:block" id="change-translate-language"> <select onchange="window.location.href=this.options[this.selectedIndex].value" name="id" class="text-gray-500 dark:text-dark-text dark:bg-dark-card-shade font-semibold bg-white focus:outline-none cursor-pointer select-none text-sm border dk-border-one px-2 py-2 rounded-md dk-theme-card-square"> <?php $__currentLoopData = app('languages'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lang): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($lang->code); ?>" <?php echo e(isset($locale) && $locale == $lang->code ? 'selected' : ''); ?>> <?php echo e($lang->name); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </form> </div> <?php endif; ?> <form action="<?php echo e(route('page.update', $page->id)); ?>" method="post" class="form mb-4" enctype="multipart/form-data"> <?php if(isset($page)): ?> <?php echo method_field('PATCH'); ?> <?php endif; ?> <?php echo csrf_field(); ?> <input type="hidden" name="locale" class="form-input" value="<?php echo e($locale ?? ''); ?>"> <div class="card"> <div> <label for="title" class="form-label"><?php echo e(translate('Title')); ?> <span class="require-field">*</span></label> <input type="text" id="title" name="title" placeholder="<?php echo e(translate('Enter Title')); ?>" class="form-input" value="<?php echo e($translations['title'] ?? ($page->title ?? '')); ?>"> <span class="text-danger error-text title_err"></span> </div> <div class="mt-6"> <label for="content" class="form-label"> <?php echo e(translate('Content')); ?> <span class="require-field">*</span></label> <textarea name="content" class="summernote form-input"><?php echo clean($translations['content'] ?? ($page->content ?? '')); ?></textarea> <span class="text-danger error-text content_err"></span> </div> </div> <div class="card flex justify-end"> <button type="submit" class="btn b-solid btn-primary-solid dk-theme-card-square"> <?php echo e(isset($page) ? translate('Update') : translate('Save')); ?> </button> </div> </form> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb)): ?> <?php $attributes = $__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb; ?> <?php unset($__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb); ?> <?php endif; ?> <?php if (isset($__componentOriginald7f77a02f879fd4954ea3c39c4e952cb)): ?> <?php $component = $__componentOriginald7f77a02f879fd4954ea3c39c4e952cb; ?> <?php unset($__componentOriginald7f77a02f879fd4954ea3c39c4e952cb); ?> <?php endif; ?> <?php /**PATH D:\www\edulab\Modules\LMS\resources\views\portals\admin\page\form.blade.php ENDPATH**/ ?>