ok
Direktori : /home2/selectio/www/fms-worksuite/storage/framework/views/ |
Current File : /home2/selectio/www/fms-worksuite/storage/framework/views/dae17a2246e9a979051203ec7eae7c40.php |
<?php $__env->startSection('content'); ?> <!-- SETTINGS START --> <div class="w-100 d-flex "> <?php echo $__env->make('sections.setting-sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php if (isset($component)) { $__componentOriginalcb8848b8ae159c08072bf1971fc3ca1f = $component; } ?> <?php $component = App\View\Components\SettingCard::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('setting-card'); ?> <?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\SettingCard::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php $__env->slot('header', null, []); ?> <div class="s-b-n-header" id="tabs"> <h2 class="mb-0 p-20 f-21 font-weight-normal text-capitalize border-bottom-grey"> <?php echo app('translator')->get($pageTitle); ?></h2> </div> <?php $__env->endSlot(); ?> <div class="col-lg-12 col-md-12 ntfcn-tab-content-left w-100 p-4 "> <?php if (isset($component)) { $__componentOriginal71c6471fa76ce19017edc287b6f4508c = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.alert','data' => ['type' => 'secondary']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('alert'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['type' => 'secondary']); ?> <ul> <li class="py-2"> • <b><?php echo app('translator')->get('app.storageSetting.local'); ?></b> <?php echo app('translator')->get('app.storageSetting.localStorageNote'); ?></li> <li> • <?php echo app('translator')->get('app.storageSetting.storageSuggestion'); ?></li> </ul> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal71c6471fa76ce19017edc287b6f4508c)): ?> <?php $component = $__componentOriginal71c6471fa76ce19017edc287b6f4508c; ?> <?php unset($__componentOriginal71c6471fa76ce19017edc287b6f4508c); ?> <?php endif; ?> <div class="row"> <div class="col-lg-12"> <?php if (isset($component)) { $__componentOriginal67cd5dc9866c6185ad92d933c387fa86 = $component; } ?> <?php $component = App\View\Components\Forms\Select::resolve(['fieldId' => 'storage','fieldLabel' => __('app.storageSetting.selectStorage'),'fieldName' => 'storage'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.select'); ?> <?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\Forms\Select::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <option value="local" <?php if(isset($localCredentials) && $localCredentials->status == 'enabled'): ?> selected <?php endif; ?>><?php echo app('translator')->get('app.storageSetting.local'); ?></option> <option value="aws_s3" data-content="<img src='<?php echo e(asset('img/aws_s3.svg')); ?>' width='20' height='20' /> <?php echo app('translator')->get('app.storageSetting.aws_s3'); ?>" <?php if(isset($awsCredentials) && $awsCredentials->status == 'enabled'): ?> selected <?php endif; ?>><?php echo app('translator')->get('app.storageSetting.aws_s3'); ?></option> <option value="digitalocean" data-content="<img src='<?php echo e(asset('img/digitalocean.svg')); ?>' width='20' height='20' /> <?php echo app('translator')->get('app.storageSetting.digitalocean'); ?>" <?php if(isset($digitalOceanCredentials) && $digitalOceanCredentials->status == 'enabled'): ?> selected <?php endif; ?>> <?php echo app('translator')->get('app.storageSetting.digitalocean'); ?> </option> <option value="wasabi" data-content="<img src='<?php echo e(asset('img/wasabi.svg')); ?>' width='20' height='20' /> <?php echo app('translator')->get('app.storageSetting.wasabi'); ?>" <?php if(isset($wasabiCredentials) && $wasabiCredentials->status == 'enabled'): ?> selected <?php endif; ?>> <?php echo app('translator')->get('app.storageSetting.wasabi'); ?> </option> <option value="minio" data-content="<img src='<?php echo e(asset('img/minio.svg')); ?>' width='20' height='10px' /> <?php echo app('translator')->get('app.storageSetting.minio'); ?>" <?php if(isset($minioCredentials) && $minioCredentials->status == 'enabled'): ?> selected <?php endif; ?>> <?php echo app('translator')->get('app.storageSetting.minio'); ?> </option> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal67cd5dc9866c6185ad92d933c387fa86)): ?> <?php $component = $__componentOriginal67cd5dc9866c6185ad92d933c387fa86; ?> <?php unset($__componentOriginal67cd5dc9866c6185ad92d933c387fa86); ?> <?php endif; ?> </div> <?php echo $__env->make('storage-settings.aws_s3', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo $__env->make('storage-settings.digitalocean', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo $__env->make('storage-settings.wasabi', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo $__env->make('storage-settings.minio', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> </div> <?php $__env->slot('action', null, []); ?> <!-- Buttons Start --> <div class="w-100 border-top-grey"> <?php if (isset($component)) { $__componentOriginal22960d0612890da31753448e47f28003 = $component; } ?> <?php $component = App\View\Components\SettingFormActions::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('setting-form-actions'); ?> <?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\SettingFormActions::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php if (isset($component)) { $__componentOriginalcf8d12533ff890e0d6573daf32b7618d = $component; } ?> <?php $component = App\View\Components\Forms\ButtonPrimary::resolve(['icon' => 'check'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.button-primary'); ?> <?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\Forms\ButtonPrimary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'save-form','class' => 'mr-3']); ?><?php echo app('translator')->get('app.save'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalcf8d12533ff890e0d6573daf32b7618d)): ?> <?php $component = $__componentOriginalcf8d12533ff890e0d6573daf32b7618d; ?> <?php unset($__componentOriginalcf8d12533ff890e0d6573daf32b7618d); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad = $component; } ?> <?php $component = App\View\Components\Forms\ButtonSecondary::resolve(['icon' => 'location-arrow'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.button-secondary'); ?> <?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\Forms\ButtonSecondary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'test-aws','class' => 'aws-form mr-3']); ?> <?php echo app('translator')->get('app.storageSetting.testAws'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $component = $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad = $component; } ?> <?php $component = App\View\Components\Forms\ButtonSecondary::resolve(['icon' => 'location-arrow'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.button-secondary'); ?> <?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\Forms\ButtonSecondary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'test-aws','class' => 'digitalocean-form mr-3']); ?> <?php echo app('translator')->get('app.storageSetting.testDigitalocean'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $component = $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad = $component; } ?> <?php $component = App\View\Components\Forms\ButtonSecondary::resolve(['icon' => 'location-arrow'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.button-secondary'); ?> <?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\Forms\ButtonSecondary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'test-aws','class' => 'wasabi-form mr-3']); ?> <?php echo app('translator')->get('app.storageSetting.testWasabi'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $component = $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad = $component; } ?> <?php $component = App\View\Components\Forms\ButtonSecondary::resolve(['icon' => 'location-arrow'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.button-secondary'); ?> <?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\Forms\ButtonSecondary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'test-aws','class' => 'minio-form mr-3']); ?> <?php echo app('translator')->get('app.storageSetting.testMinio'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $component = $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> <?php if($localFilesCount>0): ?> <?php if (isset($component)) { $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad = $component; } ?> <?php $component = App\View\Components\Forms\ButtonSecondary::resolve(['icon' => 'location-arrow'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.button-secondary'); ?> <?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\Forms\ButtonSecondary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'local-to-aws','class' => 'move-form']); ?> <?php echo app('translator')->get('app.moveFilesToCloud'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $component = $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal22960d0612890da31753448e47f28003)): ?> <?php $component = $__componentOriginal22960d0612890da31753448e47f28003; ?> <?php unset($__componentOriginal22960d0612890da31753448e47f28003); ?> <?php endif; ?> </div> <!-- Buttons End --> <?php $__env->endSlot(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalcb8848b8ae159c08072bf1971fc3ca1f)): ?> <?php $component = $__componentOriginalcb8848b8ae159c08072bf1971fc3ca1f; ?> <?php unset($__componentOriginalcb8848b8ae159c08072bf1971fc3ca1f); ?> <?php endif; ?> </div> <!-- SETTINGS END --> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script> let CHANGE_DETECTED = false; $('.field').each(function () { let elem = $(this); CHANGE_DETECTED = false // Look for changes in the value elem.bind("change keyup paste", function (event) { CHANGE_DETECTED = true; }); }); $(function () { const type = $('#storage').val(); toggleAwsLocal(type); }); function toggleAwsLocal(type) { if (type === 'aws_s3') { $('.aws-form').css('display', 'block'); $('.digitalocean-form').css('display', 'none'); $('.wasabi-form,.wasabi-form,.minio-form').css('display', 'none'); } else if (type === 'digitalocean') { $('.digitalocean-form').css('display', 'block'); $('.aws-form,.wasabi-form,.minio-form').css('display', 'none'); } else if (type === 'wasabi') { $('.wasabi-form').css('display', 'block'); $('.aws-form,.digitalocean-form,.minio-form').css('display', 'none'); } else if (type === 'minio') { $('.minio-form').css('display', 'block'); $('.aws-form,.digitalocean-form,.wasabi-form').css('display', 'none'); } else if (type === 'local') { $('.aws-form,.digitalocean-form,.wasabi-form,.move-form,.minio-form').css('display', 'none'); } } $('#storage').on('change', function (event) { event.preventDefault(); const type = $(this).val(); if (type === 'aws_s3') { CHANGE_DETECTED = true; } toggleAwsLocal(type); }); $('body').on('click', '#test-aws', function () { // Save the S# credentials when changed detected for test button click if (CHANGE_DETECTED) { submitForm(); } let url = "<?php echo e(route('storage-settings.aws_test_modal',':type')); ?>"; url = url.replace(':type', $('#storage').val()); $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); }); $('#save-form').click(function () { submitForm(); }); function submitForm() { CHANGE_DETECTED = false; const data = ($('#editSettings').serialize()).replace("_method=PUT", "_method=POST"); $.easyAjax({ url: "<?php echo e(route('storage-settings.store')); ?>", container: '#editSettings', type: "POST", disableButton: true, blockUI: true, buttonSelector: "#save-form", data: data, }) } $('body').on('click', '#local-to-aws', function () { if (CHANGE_DETECTED) { submitForm(); } const url = "<?php echo e(route('storage-settings.aws_local_to_aws_modal')); ?>"; $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); }); init() </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/selectio/public_html/fms-worksuite/resources/views/storage-settings/index.blade.php ENDPATH**/ ?>