관리-도구
편집 파일: 4a66659f87b1c94fb00afe037437a9f4.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([]); ?> <div class="card overflow-hidden"> <a href="<?php echo e(route('site.language')); ?>" class="size-7 flex-center bg-gray-200 dark:bg-dark-icon rounded-sm dk-theme-card-square"> <i class="ri-arrow-left-line text-[18px]"></i> </a> <?php $__env->slot('title', null, []); ?> <?php echo e(translate('Language Manage')); ?> <?php $__env->endSlot(); ?> <div class="flex items-center justify-end gap-4"> <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 font-semibold bg-transparent 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->id); ?>" <?php echo e(request()->id == $lang->id ? 'selected' : ''); ?>> <?php echo e($lang->name); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </form> <form method="GET"> <div class="flex items-center justify-end gap-2"> <div class="w-56 md:w-72 leading-none text-sm relative text-gray-900 dark:text-dark-text hidden sm:block"> <span class="absolute top-1/2 -translate-y-[40%] left-3.5"> <i class="ri-search-line text-gray-900 dark:text-dark-text text-[14px]"></i> </span> <input type="text" name="search" id="header-search" placeholder="<?php echo e(translate('Search here')); ?> ..." class="form-input border-gray-200 dark:border-dark-border pl-[36px] pr-12 py-4 rounded-full dk-theme-card-square"> <span class="absolute top-1/2 -translate-y-[40%] right-4 hidden lg:flex lg:items-center lg:gap-0.5 select-none"> <i class="ri-command-line text-[12px]"></i><span>+</span><span><?php echo e(translate('k')); ?></span> </span> </div> <button type="submit" class="btn b-solid btn-primary-solid"> <?php echo e(translate('Search')); ?> </button> </div> </form> </div> <form action="<?php echo e(route('translate.store', $language->id)); ?>" method="POST"> <?php echo csrf_field(); ?> <div class="overflow-x-auto"> <table class="table-auto border-collapse w-full text-wrap whitespace-nowrap text-left text-gray-500 dark:text-dark-text text-sm leading-none"> <thead> <tr> <th class="px-3 py-2 w-10">#</th> <th class="px-3 py-2 w-1/2"><?php echo e(translate('Key')); ?></th> <th class="px-3 py-2"><?php echo e(translate('Value')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $langKeys; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $translation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td class="px-3 py-2" data-label="Serial"> <?php echo e(($langKeys->currentpage() - 1) * $langKeys->perpage() + $key + 1); ?> </td> <td class="px-3 py-2" data-label="Lang_Key"><?php echo e($translation->lang_value); ?></td> <td class="px-3 py-2" data-label="Value"> <input type="text" class="form-input w-full" name="values[<?php echo e($translation->lang_key); ?>]" value="<?php echo e(translate_value($language->code, $translation->lang_key)); ?>"> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> <div class="justify-content-center"> <?php echo e($langKeys->appends(['search' => $searchKey])->links('portal::admin.pagination.paginate')); ?> </div> </div> <div class="flex justify-end"> <button type="submit" class="btn b-solid btn-primary-solid w-max mt-5"> <?php echo e(translate('Save')); ?> </button> </div> </form> </div> <?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\setting-option\language\translate.blade.php ENDPATH**/ ?>