whoami7 - Manager
:
/
home
/
kckglobal
/
public_html
/
portal
/
storage
/
framework
/
views
/
Upload File:
files >> /home/kckglobal/public_html/portal/storage/framework/views/33ff754b0f7e0feea37140fd16d5b88a.php
<div class="table-responsive p-20"> <div id="update-area" class="mt-20 mb-20 col-md-12 white-box d-none"> <?php echo e(__('app.loading')); ?> </div> <div class="alert alert-danger d-none" id="custom-module-alert"></div> <?php if(session('subdomain_module_activated') == 'activated'): ?> <div class="alert bg-light-warning border-0 rounded-lg shadow-sm p-4 mb-3"> <div class="d-flex"> <div class="mr-3 pt-1"> <i class="fas fa-shield-alt text-warning f-24"></i> </div> <div class="flex-grow-1"> <h4 class="text-warning font-weight-bold mb-3">Security Configuration Required</h4> <div class="bg-white rounded p-3 mb-3"> <h6 class="font-weight-bold mb-2">Required Actions:</h6> <ul class="list-unstyled mb-0"> <li class="d-flex align-items-start mb-2"> <i class="fas fa-check-circle text-success mr-2 mt-1"></i> <div class="d-flex align-items-center flex-wrap"> <span class="mr-2">Configure wildcard subdomains on your server</span> <a href="https://www.youtube.com/watch?v=0KOHj4a2Sek" class="btn btn-sm btn-warning" target="_blank"> <i class="fab fa-youtube mr-1"></i> Watch Guide </a> </div> </li> <li class="d-flex align-items-center"> <i class="fas fa-check-circle text-success mr-2"></i> <span>Update DNS settings appropriately</span> </li> </ul> </div> <div class="bg-white rounded p-3"> <h6 class="font-weight-bold mb-2">Important Changes:</h6> <ul class="list-unstyled mb-0"> <li class="d-flex align-items-center mb-2"> <i class="fas fa-link text-primary mr-2"></i> <div> <span class="mr-2">New Superadmin Login:</span> <code class="bg-light-primary px-2 py-1 rounded"><?php echo e(url('/')); ?>/super-admin-login</code> </div> </li> <li class="d-flex align-items-center mb-2"> <i class="fas fa-lock text-danger mr-2"></i> <span>Public login page is now disabled</span> </li> <li class="d-flex align-items-center"> <i class="fas fa-building text-success mr-2"></i> <span>Companies now have dedicated subdomain login pages</span> </li> </ul> </div> </div> </div> </div> <?php endif; ?> <?php if ($__env->exists('languagepack::module-activated-alert')) echo $__env->make('languagepack::module-activated-alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo $__env->make('custom-modules.sections.universal-bundle', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php if (isset($component)) { $__componentOriginal7d9f6e0b9001f5841f72577781b2d17f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal7d9f6e0b9001f5841f72577781b2d17f = $attributes; } ?> <?php $component = App\View\Components\Table::resolve(['headType' => 'thead-light'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('table'); ?> <?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\Table::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'table-bordered table-hover custom-modules-table']); ?> <?php $__env->slot('thead', null, []); ?> <th><?php echo app('translator')->get('app.name'); ?></th> <?php if(!$universalBundle): ?> <th><?php echo app('translator')->get('app.purchaseCode'); ?></th> <?php endif; ?> <th><?php echo app('translator')->get('app.moduleVersion'); ?></th> <?php if(!$universalBundle): ?> <th class="text-right"><?php echo app('translator')->get('app.notify'); ?></th> <?php endif; ?> <th class="text-right"><?php echo app('translator')->get('app.status'); ?></th> <?php $__env->endSlot(); ?> <?php $__empty_1 = true; $__currentLoopData = $allModules; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$module): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <?php $fetchSetting = null; if (in_array($module, $worksuitePlugins) && config(strtolower($module) . '.setting')) { $fetchSetting = config(strtolower($module) . '.setting')::first(); } ?> <tr> <td><span><?php echo e($key); ?></span> <?php if(module_enabled('UniversalBundle') && isInstallFromUniversalBundleModule($key)): ?> <i class="icon text-info fas fa-info-circle cursor-pointer" data-toggle="tooltip" data-original-title="<?php echo e(__('universalbundle::app.moduleInfo')); ?>"></i> <?php else: ?> <?php endif; ?> </td> <?php if(!$universalBundle): ?> <td> <?php if($fetchSetting): ?> <?php if(config(strtolower($module) . '.verification_required')): ?> <?php echo $__env->make('custom-modules.sections.purchase-code', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php endif; ?> <?php endif; ?> </td> <?php endif; ?> <td> <?php if(config(strtolower($module) . '.setting')): ?> <?php echo $__env->make('custom-modules.sections.version', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php if($plugins->where('envato_id', config(strtolower($module) . '.envato_item_id'))->first() && !(module_enabled('UniversalBundle') && isInstallFromUniversalBundleModule($key))): ?> <?php echo $__env->make('custom-modules.sections.module-update', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php endif; ?> <?php endif; ?> </td> <?php if(!$universalBundle): ?> <td class="text-right"> <?php if($fetchSetting): ?> <div class="custom-control custom-switch ml-2 d-inline-block" data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('app.moduleNotifySwitchMessage', ['name' => $module]); ?>"> <input type="checkbox" class="custom-control-input change-module-notification" <?php if($fetchSetting->notify_update): echo 'checked'; endif; ?> id="module-notification-<?php echo e($key); ?>" data-module-name="<?php echo e($module); ?>"> <label class="custom-control-label cursor-pointer" for="module-notification-<?php echo e($key); ?>"></label> </div> <?php endif; ?> </td> <?php endif; ?> <td class="text-right"> <div class="custom-control custom-switch ml-2 d-inline-block" data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('app.moduleSwitchMessage', ['name' => $module]); ?>"> <input type="checkbox" <?php if(in_array($module, $worksuitePlugins)): ?> checked <?php endif; ?> class="custom-control-input change-module-status" id="module-<?php echo e($key); ?>" data-module-name="<?php echo e($module); ?>"> <label class="custom-control-label cursor-pointer" for="module-<?php echo e($key); ?>"></label> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr> <td colspan="5"> <?php if (isset($component)) { $__componentOriginal269164c77d9d34462c34359c03da6a68 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal269164c77d9d34462c34359c03da6a68 = $attributes; } ?> <?php $component = App\View\Components\Cards\NoRecord::resolve(['icon' => 'calendar','message' => __('messages.noRecordFound')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.no-record'); ?> <?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\Cards\NoRecord::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($__attributesOriginal269164c77d9d34462c34359c03da6a68)): ?> <?php $attributes = $__attributesOriginal269164c77d9d34462c34359c03da6a68; ?> <?php unset($__attributesOriginal269164c77d9d34462c34359c03da6a68); ?> <?php endif; ?> <?php if (isset($__componentOriginal269164c77d9d34462c34359c03da6a68)): ?> <?php $component = $__componentOriginal269164c77d9d34462c34359c03da6a68; ?> <?php unset($__componentOriginal269164c77d9d34462c34359c03da6a68); ?> <?php endif; ?> </td> </tr> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal7d9f6e0b9001f5841f72577781b2d17f)): ?> <?php $attributes = $__attributesOriginal7d9f6e0b9001f5841f72577781b2d17f; ?> <?php unset($__attributesOriginal7d9f6e0b9001f5841f72577781b2d17f); ?> <?php endif; ?> <?php if (isset($__componentOriginal7d9f6e0b9001f5841f72577781b2d17f)): ?> <?php $component = $__componentOriginal7d9f6e0b9001f5841f72577781b2d17f; ?> <?php unset($__componentOriginal7d9f6e0b9001f5841f72577781b2d17f); ?> <?php endif; ?> <?php echo $__env->make('vendor.froiden-envato.update.plugins', ['allModules' => $allModules], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> <script> $('body').on('change', '.change-module-status', function () { let moduleStatus; const module = $(this).data('module-name'); if ($(this).is(':checked')) { moduleStatus = 'active'; if(module === 'Subdomain') { Swal.fire({ title: '<i class="fas fa-exclamation-triangle text-warning"></i> Important Configuration Required', html: ` <div class="text-left"> <div class="alert alert-warning mb-3" style="line-height: 1.6;"> Please ensure you have properly configured wildcard subdomains on your server before proceeding. <div class="mt-2"> <a href="https://www.youtube.com/watch?v=0KOHj4a2Sek" class="btn btn-sm btn-warning" target="_blank"> <i class="fab fa-youtube mr-1"></i> Watch Configuration Guide </a> </div> </div> <div class="card border mb-3"> <div class="card-header bg-light"> <strong>Changes After Activation:</strong> </div> <div class="card-body"> <ul class="mb-0 pl-3" style="line-height: 1.8;"> <li class="mb-2">New Superadmin Login URL:<br> <code class="bg-light px-2 py-1 d-inline-block mt-1">${window.location.origin}/super-admin-login</code> </li> <li class="mb-2">Public login page will be disabled</li> <li>Each company will have a dedicated login page on their subdomain</li> </ul> </div> </div> <p class="mb-0" style="line-height: 1.6;">Are you sure you want to proceed with activation?</p> </div> `, showCancelButton: true, confirmButtonText: '<i class="fas fa-check-circle"></i> Yes, activate', cancelButtonText: '<i class="fas fa-times-circle"></i> No, cancel', confirmButtonColor: '#0d6efd', // Changed to Bootstrap primary blue cancelButtonColor: '#6c757d', // Changed to Bootstrap gray customClass: { confirmButton: 'btn btn-primary ml-2 mr-2', // Added ml-2 to move activate button to right cancelButton: 'btn btn-secondary' // Changed to secondary style }, buttonsStyling: false }).then((result) => { if (!result.isConfirmed) { $('#module-' + module).prop('checked', false); return; } updateModuleStatus(module, moduleStatus); }); return; } } else { moduleStatus = 'inactive'; } updateModuleStatus(module, moduleStatus); }); function updateModuleStatus(module, moduleStatus) { let url = "<?php echo e(route('custom-modules.update', ':module')); ?>"; url = url.replace(':module', module); $('#custom-module-alert').addClass('d-none'); $.easyAjax({ url: url, type: "POST", disableButton: true, buttonSelector: ".change-module-status", container: '.custom-modules-table', blockUI: true, data: { 'id': module, 'status': moduleStatus, '_method': 'PUT', '_token': '<?php echo e(csrf_token()); ?>' }, error: function (response) { if (response.responseJSON) { $('#custom-module-alert').html(response.responseJSON.message).removeClass('d-none'); $('#module-' + module).prop('checked', false); } } }); } $('body').on('click', '.verify-module', function () { const module = $(this).data('module'); let url = "<?php echo e(route('custom-modules.show', ':module')); ?>"; url = url.replace(':module', module); $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); }); </script> <?php if ($__env->exists('vendor.froiden-envato.update.update_module')) echo $__env->make('vendor.froiden-envato.update.update_module', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php /**PATH /home/kckglobal/public_html/portal/resources/views/custom-modules/ajax/custom.blade.php ENDPATH**/ ?>
Copyright ©2021 || Defacer Indonesia