관리-도구
편집 파일: 00263d94dfc0a6d5088c0962c8b2503f.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 $__env->slot('title', null, []); ?> <?php echo e(translate('Manage Theme')); ?> <?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' => ['title' => 'Theme','pageTo' => 'Theme']] + (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(['title' => 'Theme','page-to' => 'Theme']); ?> <?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; ?> <!-- Start Main Content --> <div class="grid grid-cols-12 gap-x-4"> <!-- Themes --> <div class="col-span-full"> <div class="card p-4 md:p-6"> <div class="grid grid-cols-12 gap-4"> <?php if(is_array($themes) && count($themes) > 0): ?> <?php $__currentLoopData = $themes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $theme): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <!-- Single Theme 01 --> <div class="col-span-full lg:col-span-6 3xl:col-span-4"> <div class="relative bg-[#F7F4FF] dark:bg-dark-card-shade p-6 pt-10 dk-border-one rounded-10 dk-theme-card-square group/theme <?php echo e($theme['is_activated'] ? 'active' : ''); ?>"> <span class="absolute top-4 left-6"> <svg xmlns="http://www.w3.org/2000/svg" width="35" height="9" viewBox="0 0 35 9" fill="none"> <circle cx="4.28516" cy="4.26611" r="4" fill="#E8504B" /> <circle cx="17.6172" cy="4.26611" r="4" fill="#F1B12D" /> <circle cx="30.9531" cy="4.26611" r="4" fill="#2ACC38" /> </svg> </span> <div class="absolute top-2 left-1/2 -translate-x-1/2"> <h6 class="card-title text-base text-primary-600 uppercase"> <?php echo e($theme['name'] ?? $theme['slug']); ?> </h6> </div> <div class="flex flex-col gap-7"> <div data-modal-id="theme-preview-modal<?php echo e($theme['id'] ?? null); ?>" class="min-h-[200px] relative before:absolute before:size-full before:inset-0 before:bg-black/20 before:z-[1] before:translate-y-5 before:invisible before:opacity-0 group-hover/theme:before:visible group-hover/theme:before:opacity-100 group-hover/theme:before:translate-y-0 before:duration-300 overflow-hidden cursor-pointer"> <img src="<?php echo e(theme_asset($theme['slug'] . '/thumbnail.png')); ?>" alt="theme" class="self-start"> <div class="position-center z-[2] invisible opacity-0 translate-y-5 group-hover/theme:visible group-hover/theme:opacity-100 group-hover/theme:translate-y-0 duration-300"> <button class="btn b-solid btn-primary-solid rounded-md"> <?php echo e(translate('Preview')); ?> </button> </div> </div> <?php if($theme['is_installed'] && !$theme['is_activated']): ?> <form method="post" action="<?php echo e(route('theme.activate')); ?>"> <?php echo csrf_field(); ?> <input type="hidden" name="name" value="<?php echo e($theme['name'] ?? $theme['slug']); ?>" /> <input type="hidden" name="slug" value="<?php echo e($theme['slug']); ?>" /> <input type="hidden" name="id" value="<?php echo e($theme['id']); ?>" /> <button type="submit" class="btn b-outline btn-primary-outline w-full text-gray-500 dark:text-dark-text hover:!text-white group-[.active]/theme:bg-primary-600 group-[.active]theme:!text-white"> <?php echo e(translate('Activate')); ?> </button> </form> <?php elseif($theme['is_activated']): ?> <button type="button" class="btn b-outline btn-primary-outline w-full text-gray-500 dark:text-dark-text hover:!text-white group-[.active]/theme:bg-primary-600 group-[.active]/theme:!text-white" disabled> <?php echo e(translate('Activated')); ?> </button> <?php else: ?> <form method="post" action="<?php echo e(route('theme.install')); ?>"> <?php echo csrf_field(); ?> <input type="hidden" name="name" value="<?php echo e($theme['name'] ?? $theme['slug']); ?>" /> <input type="hidden" name="slug" value="<?php echo e($theme['slug']); ?>" /> <button type="submit" class="btn b-outline btn-primary-outline w-full text-gray-500 dark:text-dark-text hover:!text-white group-[.active]/theme:bg-primary-600 group-[.active]/theme:!text-white"> <?php echo e(translate('Install')); ?> </button> </form> <?php endif; ?> </div> <?php if (isset($component)) { $__componentOriginal810a2d3d6298f5849b067f9afee24b72 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal810a2d3d6298f5849b067f9afee24b72 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => '7ee9c4f86007ba41bc79bbfab1cd8a68::theme.preview','data' => ['theme' => $theme]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('portal::theme.preview'); ?> <?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(['theme' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($theme)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal810a2d3d6298f5849b067f9afee24b72)): ?> <?php $attributes = $__attributesOriginal810a2d3d6298f5849b067f9afee24b72; ?> <?php unset($__attributesOriginal810a2d3d6298f5849b067f9afee24b72); ?> <?php endif; ?> <?php if (isset($__componentOriginal810a2d3d6298f5849b067f9afee24b72)): ?> <?php $component = $__componentOriginal810a2d3d6298f5849b067f9afee24b72; ?> <?php unset($__componentOriginal810a2d3d6298f5849b067f9afee24b72); ?> <?php endif; ?> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> </div> </div> </div> <!-- Theme Preview Modal --> <?php $__env->startPush('js'); ?> <script src="<?php echo e(edulab_asset('lms/assets/js/component/modal.js')); ?>"></script> <?php $__env->stopPush(); ?> <?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\theme\index.blade.php ENDPATH**/ ?>