ok
Direktori : /home2/selectio/www/3-idiots/storage/framework/views/ |
Current File : //home2/selectio/www/3-idiots/storage/framework/views/f00deb9cae6e892c79053355b483e898a0337f25.php |
<?php $__env->startSection('title', \App\CPU\translate('software_update')); ?> <?php $__env->startPush('css_or_js'); ?> <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>"> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="content container-fluid"> <!-- Page Title --> <div class="mb-4 pb-2"> <h2 class="h1 mb-0 text-capitalize d-flex align-items-center gap-2"> <img src="<?php echo e(asset('/public/assets/back-end/img/system-setting.png')); ?>" alt=""> <?php echo e(\App\CPU\translate('software_update')); ?> </h2> </div> <!-- End Page Title --> <!-- Inlile Menu --> <?php echo $__env->make('admin-views.business-settings.system-settings-inline-menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <!-- End Inlile Menu --> <div class="row"> <div class="col-12"> <div class="card"> <div class="border-bottom px-4 py-3"> <h5 class="mb-0 text-capitalize d-flex align-items-center gap-2"> <img width="20" src="<?php echo e(asset('/public/assets/back-end/img/environment.png')); ?>" alt=""> <?php echo e(\App\CPU\translate('upload_the_updated_file')); ?> <span class="ml-2" data-toggle="tooltip" data-placement="top" title="" data-original-title="<?php echo e(\App\CPU\translate('this_module_will_run_for_updates_after_version_13.1')); ?>"> <img class="info-img w-200" src="http://localhost/6valley/public/assets/back-end/img/info-circle.svg" alt="img"> </span> </h5> </div> <div class="card-body"> <form action="<?php echo e(route('admin.system-settings.software-update')); ?>" method="post" enctype="multipart/form-data" id="software_update_form_"> <?php echo csrf_field(); ?> <div class="progress mb-5 d-none" style="height: 30px;"> <div class="progress-bar progress-bar-animated" style="width:0%">0%</div> </div> <div class="row"> <div class="col-6"> <div class="form-group"> <label for="purchase_code"><?php echo e(\App\CPU\translate('codecanyon_username')); ?></label> <input type="text" class="form-control" id="username" value="<?php echo e(env('BUYER_USERNAME')); ?>" name="username" required> </div> </div> <div class="col-6"> <div class="form-group"> <label for="purchase_code"><?php echo e(\App\CPU\translate('purchase_code')); ?></label> <input type="text" class="form-control" id="purchase_key" value="<?php echo e(env('PURCHASE_CODE')); ?>" name="purchase_key" required> </div> </div> </div> <div class="row"> <div class="col-12 mb-3"> <div class="custom-file text-left"> <input type="file" name="update_file" class="custom-file-input form-control" accept=".zip" required> <label class="custom-file-label" for="customFileUpload"><?php echo e(\App\CPU\translate('choose_updated_file')); ?></label> </div> </div> </div> <?php ($condition_one=str_replace('M','',ini_get('upload_max_filesize'))>=180 && str_replace('M','',ini_get('upload_max_filesize'))>=180); ?> <?php ($condition_two=str_replace('M','',ini_get('post_max_size'))>=200 && str_replace('M','',ini_get('post_max_size'))>=200); ?> <?php if($condition_one && $condition_two): ?> <div class="d-flex align-items-center justify-content-end flex-wrap gap-10"> <button type="submit" class="btn btn--primary px-4"> <?php echo e(\App\CPU\translate('upload_&_update')); ?> </button> </div> <?php else: ?> <div class="row"> <div class="col-12"> <div class="alert alert-soft-<?php echo e(($condition_one)?'success':'danger'); ?>" role="alert"> 1. Please make sure, your server php "upload_max_filesize" value is grater or equal to 180M. Current value is - <?php echo e(ini_get('upload_max_filesize')); ?> </div> <div class="alert alert-soft-<?php echo e(($condition_two)?'success':'danger'); ?>" role="alert"> 2. Please make sure, your server php "post_max_size" value is grater or equal to 200M. Current value is - <?php echo e(ini_get('post_max_size')); ?> </div> </div> </div> <?php endif; ?> </form> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('script'); ?> <script> $('#software_update_form').on('submit', function (e) { e.preventDefault(); var formData = new FormData(document.getElementById('software_update_form')); $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $.ajax({ type: "POST", url: "<?php echo e(route('admin.system-settings.software-update')); ?>", data: formData, cache: false, contentType: false, processData: false, beforeSend: function () { $('.progress').removeClass('d-none'); $('#product_form').find('.submit').text('submitting...'); }, xhr: function () { let xhr = new window.XMLHttpRequest(); xhr.upload.addEventListener("progress", (evt) => { if (evt.lengthComputable) { let percentage = (evt.loaded / evt.total) * 100 let percentageFormatted = percentage.toFixed(0) $('.progress-bar').css('width', `${percentageFormatted}%`).text(`${percentageFormatted}%`); } }, false); return xhr; }, success: function (response) { }, complete: function () { location.href = '<?php echo e(route('home')); ?>/' + $('#update_key').val() }, error: function (xhr, ajaxOption, thrownError) { console.log(thrownError + '\r\n' + xhr.statusText + '\r\n' + xhr.responseText); } }); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.back-end.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/romeojul/public_html/a1tex.in/resources/views/admin-views/system-settings/software-update.blade.php ENDPATH**/ ?>