관리-도구
편집 파일: 3a00e397626b01c3e0e4702b5214108c.php
<?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 $button = $slider['buttons'] ?? []; $slider = $slider ?? null; $locale = request()->locale ?? app()->getLocale(); $translations = parse_translation($slider, $locale); ?> <?php $__env->slot('title', null, []); ?> <?php echo e(translate('Edit Page')); ?> <?php $__env->endSlot(); ?> <?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('slider.index')).'','title' => ''.e(isset($slider) ? 'Edit' : 'Create').' Slider','pageTo' => 'Slider']] + (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('slider.index')).'','title' => ''.e(isset($slider) ? 'Edit' : 'Create').' Slider','page-to' => 'Slider']); ?> <?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('slider.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(isset($slider) ? route('slider.update', $slider->id) : route('slider.store')); ?>" method="post" class="form mb-4" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php if(isset($slider)): ?> <?php echo method_field('PUT'); ?> <input type="hidden" name="id" class="form-input" value="<?php echo e($slider->id ?? ''); ?>"> <input type="hidden" name="locale" class="form-input" value="<?php echo e($locale ?? ''); ?>"> <?php endif; ?> <div class="grid grid-cols-12 gap-x-4"> <div class="col-span-full lg:col-span-6 card"> <div class="leading-none"> <label for="title" class="form-label"><?php echo e(translate('Title')); ?></label> <input type="text" id="title" name="title" value="<?php echo e($translations['title'] ?? $slider->title ?? ''); ?>" class="form-input"> <span class="text-danger error-text title_err"></span> </div> <div class="leading-none mt-4"> <label class="form-label"><?php echo e(translate('Highlight Text')); ?></label> <input type="text" name="highlight_text" value="<?php echo e($translations['highlight_text'] ?? $slider->highlight_text ?? ''); ?>" class="form-input"> </div> <div class="leading-none mt-4"> <label for="sub_title" class="form-label"><?php echo e(translate('Sub Title')); ?></label> <input type="text" id="sub_title" name="sub_title" value="<?php echo e($translations['sub_title'] ?? $slider->sub_title ?? ''); ?>" class="form-input"> </div> <?php if(is_active('slider.translate') !== 'active'): ?> <div class="leading-none mt-4"> <label class="form-label"><?php echo e(translate('Hero')); ?> <span class="require-field"><b>*</b></span></label> <select name="hero_id" class="singleSelect"> <option selected disabled> <?php echo e(translate('Select Hero')); ?></option> <?php $__currentLoopData = get_heroes(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $hero): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($hero->id); ?>" <?php echo e(isset($slider) && $hero->id == $slider->hero_id ? 'selected' : ''); ?>> <?php echo e($hero->title); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <span class="text-danger error-text hero_id_err"></span> </div> <?php endif; ?> <div class="leading-none mt-4"> <label class="form-label"> <?php echo e(translate('Button')); ?></label> <div class="mb-4"> <input type="text" name="buttons[0][name]" value="<?php echo e($translations['buttons']['name'] ?? $button['name'] ?? ''); ?>" class="form-input" placeholder="<?php echo e(translate('Button Text')); ?>"> </div> <?php if(is_active('slider.translate') !== 'active'): ?> <input type="text" name="buttons[0][link]" value="<?php echo e($button['link'] ?? ''); ?>" class="form-input" placeholder="<?php echo e(translate('Button Link')); ?>"> <?php endif; ?> </div> <div class="leading-none mt-4"> <label for="description" class="form-label"><?php echo e(translate('Description')); ?></label> <textarea name="description" rows="5" class="form-input"><?php echo e(clean($translations['description'] ?? $slider->description ?? '')); ?></textarea> <span class="text-danger error-text description_err"></span> </div> <div class="leading-none mt-4"> <div class="flex items-center gap-2"> <input id="check-s-1" type="checkbox" name="status" class="check check-primary-solid" <?php echo e(isset($slider) && $slider->status ? 'checked' : ''); ?>> <label for="check-s-1" class="leading-none font-medium text-gray-500 dark:text-dark-text"> <?php echo e(translate('Enable')); ?></label> </div> </div> </div> <?php if(is_active('slider.translate') !== 'active'): ?> <div class="col-span-full lg:col-span-6 card"> <label for="imgage" class="dropzone-wrappe mb-4 file-container ac-bg text-xs leading-none font-semibold cursor-pointer w-full h-[200px] flex flex-col items-center justify-center gap-2.5 border border-dashed border-gray-900 rounded-10"> <input type="file" hidden name="slider_image" id="imgage" class="dropzone dropzone-image img-src peer/file"> <span class="flex-center flex-col peer-[.uploaded]/file:hidden"> <img src="<?php echo e(asset('lms/assets/images/icons/upload-file.svg')); ?>" alt="file-icon" class="size-8 lg:size-auto"> <div class="text-gray-500 dark:text-dark-text mt-2"> <?php echo e(translate('Choose file')); ?> </div> </span> <span class="text-danger error-text slider_image_err"></span> </label> <div class="preview-zone dropzone-preview"> <div class="box box-solid"> <div class="box-body flex items-center gap-2 flex-wrap"> <?php if(isset($slider) && fileExists($folder = 'lms/sliders', $fileName = $slider?->image) == true && $slider?->image !== ''): ?> <div class="img-thumb-wrapper"> <img class="img-thumb" width="100" src="<?php echo e(asset('storage/lms/sliders/' . $slider->image)); ?>" /> </div> <?php endif; ?> </div> </div> </div> </div> <?php endif; ?> <div class="col-span-full card flex justify-end"> <button type="submit" class="btn b-solid btn-primary-solid w-max dk-theme-card-square"> <?php echo e(isset($slider) ? translate('Update') : translate('Save')); ?> </button> </div> </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\slider\form.blade.php ENDPATH**/ ?>